Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes for Reviewers
This PR fixes adds REST APIs for events.
/api/v2/events
: Get all events belonging to the logged in user. (This particular API will be changed to /api/events once the UI is compeltely updated to use new events and SSE is tunred off, otherwise existing events will break.)Supported query params:
?page
: Defaults to page 1?pagesize
: Defaults to 25, to get all events set?pagesize=all
?sort
: Column to sort the results on, defaults toupdated_at
.?order
: Sort order for the results, defaults to ascending.?category
: Filter events based on event category, expects an array. eg:?category=[connection, application,...]
?severity
: Filter events based on event severity, expects an array. eg:?severity=[informational, error,...]
?action
: Filter events based on event action, expects an array. eg:?action=[create, delete,...]
?search
: Search based one event description. (Not requried now, but have added incase)API response:
page, pagesize, totalcount, count_by_severity_level
are always returned`./api/events/status/{id}
:Update event's status associated with
id
.Response: Updated event.
/api/events/{id}
:Delete event associated with id.
Signed commits