Add pagination support for Aodh¶
This BP proposed to add pagination support for Aodh. User can use this feature to set limit, marker and sort when they query their alarm and alarm history.
Currently when list alarm and alarm history, all the existed alarm and history will return at one time, and it is really not user friendly for users.
Allow Aodh user to use the general pagination mechanism with the help of limit, marker, sort_key, sort_dir optional parameters to list alarm and alarm history.
sort_key: Key used to determine sort order
sort_dir: Direction for with the associated sort key (“asc” or “desc”)
marker: The last alarm ID of the previous page. Displays list of alarms after “marker”.
limit: Maximum number of alarms to display. If limit == -1, all alarms will be displayed.
Keep the current anti-friendly situation.
Data model impact¶
REST API impact¶
New optional parameters limit, marker, sort_key, sort_dir will be added to GET /v2/alarms and GET /v2/query/alarms/history
Other end user impact¶
Other deployer impact¶
- Primary assignee:
- Other contributors:
Add pagination support for alarm and alarm history;
Add the related support in alarm client.
Related tests will be added.
References about how to use pagination will be added.