-
Story
-
Resolution: Done
-
Normal
-
None
-
None
Story (Required)
As a developer, I want to add more flexibility in the API. The consumers of the API should be able to pass the grouping strategy.
Background (Required)
Currently, the API grouping strategy is decided by the backend plugin logic based on the date range intervals, It would be good to have this control passed by consumers as well.
Out of scope
<Defines what is not included in this story>
Approach (Required)
1. Allow users to pass a query param called `grouping` based on that group the responses.
Dependencies
None.
Acceptance Criteria (Required)
- Introduce a new query param called `grouping` to allow the events API to be configured by the consumers.
- If the grouping strategy is set to `daily` then the data points in the response should be grouped in `hourly` basis.
Done Checklist
Code is completed, reviewed, documented and checked in
Unit and integration test automation have been delivered and running cleanly in continuous integration/staging/canary environment
Continuous Delivery pipeline(s) is able to proceed with new code included
Customer facing documentation, API docs, design docs etc. are produced/updated, reviewed and published
Acceptance criteria are met
If the Grafana dashboard is updated, ensure the corresponding SOP is updated as well
- links to