forked from ManageIQ/manageiq-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose MiqEvent/EmsEvent group/levels in event stream OPTIONS
The timeline_events key in the response body 'data' field contains information on the type of events, their descriptions, group levels, group names, etc. Currently, we only support EmsEvent and MiqEvent from event_streams. Part of ManageIQ#1090
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
module Api | ||
class EventStreamsController < BaseController | ||
def options | ||
render_options(@req.collection, build_additional_fields) | ||
end | ||
|
||
private | ||
|
||
def build_additional_fields | ||
{:timeline_events => EventStream.timeline_options} | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters