-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[RAM] Add window maintenance column to rule logs and rule tables #155333
[RAM] Add window maintenance column to rule logs and rule tables #155333
Conversation
.../triggers_actions_ui/public/application/sections/rule_details/components/rule_alert_list.tsx
Outdated
Show resolved
Hide resolved
...actions_ui/public/application/sections/rule_details/components/rule_event_log_list_table.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we show the MW name rather than the ID? (And not in the square brackets)
Or I suppose a more reasonable question, is the user able to select maintenance_window_name
rather than _id
?
we are going to have to keep the maintenance ids for 8.8, We need to keep the IDs and then we we will do like what we did for cases. Because, we will need to create a bulk_get API on the window maintenance and then we will be able to show the name of the window maintenance. For this feature, we took the same approach that we did for cases. At first, we only had the ids and then we work on showing the case name. We will have the same approach here and add this feature for 8.9. |
…/rule_details/components/rule_alert_list.tsx Co-authored-by: Lisa Cawley <lcawley@elastic.co>
…/rule_details/components/rule_event_log_list_table.tsx Co-authored-by: Lisa Cawley <lcawley@elastic.co>
@elasticmachine merge upstream |
Pinging @elastic/response-ops (Team:ResponseOps) |
top_hits: { | ||
size: 1, | ||
_source: { | ||
includes: MAINTENANCE_WINDOW_IDS_FIELD, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you just add MAINTENANCE_WINDOW_IDS_FIELD
to the other top_hits
aggregation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified I see the maintenance window ids show up in the various tables. Left one comment about optimizing the exec log aggregation but otherwise LGTM
I agree with @ymao1 on this, it seems weird because it is not representing what we do behind the scene. Honesty/Transparency is always the right answer ;) ( |
++ and we should double check that the same doesn't happen with snooze (separately or at the same time). |
@ymao1, @JiaweiWu, @mikecote and I have a discussion around The Decision is to move forward the way, it is and see if our assumption is correct! |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Resolves: #153775
This PR adds the
maintenance_window_id
column to the following tables:O11Y/Security solutions Alerts table
Rule details alerts table
Rule run event log
To test:
ENABLE_MAINTENANCE_WINDOWS
to true inx-pack/plugins/alerting/public/plugin.ts
maintenance window
column is there, and renders the maintenance window idsmaintenance window
column can enabled, and renders the maintenance window idsmaintenance_window_id
field can be enabled, and renders the maintenance window idsChecklist