Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-RubrikEvent and EventSeriesId #580

Closed
mwpreston opened this issue Mar 6, 2020 · 1 comment
Closed

Get-RubrikEvent and EventSeriesId #580

mwpreston opened this issue Mar 6, 2020 · 1 comment

Comments

@mwpreston
Copy link
Contributor

Current Behavior:

Currently the only way to retrieve a list of events inside an eventSeries is to use Get-RubrikEvent, passing the eventseriesid parameter as well as setting ShowOnlyLatest to false.

This process takes a looong time to complete. This is caused by the API endpoint (/event) querying the event table and performing a full scan. Most the time this will simply error out.

Rather than using the /event api, the /event_series endpoint can be utilized. /event_series queries the events_by_series table which has the proper primary keys defined to make this search faster.

Would like to see a cmdlet created (Get-RubrikEventSeries) which will retrieve this information from the event_series endpoint. When Get-RubrikEvent is called with an eventSeriesId parameter, the cmdlet can simply call the Get-RubrikEventSeries to get the valid results.

@jaapbrasser
Copy link
Contributor

Fixed in #585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants