-
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
[Metric threshold] Save the ECS group by fields at the AAD root level #188976
[Metric threshold] Save the ECS group by fields at the AAD root level #188976
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
/ci |
/ci |
/ci |
/ci |
/ci |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
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.
Obs Ux change LGTM
@@ -1622,25 +1622,6 @@ describe('The custom threshold alert type', () => { | |||
}); | |||
await execute(COMPARATORS.GREATER_THAN, [0.9]); | |||
const ISO_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/; | |||
expect(services.alertsClient.setAlertData).toBeCalledTimes(1); | |||
expect(services.alertsClient.setAlertData).toBeCalledWith({ |
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.
Removed as we don't need to provide the ECS groups for recovered alerts as the data is already in the alert document.
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.
infra/tsconfig.json
LGTM
.../infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts
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.
LGTM. Tested locally, everything worked as expected ✨
Left a question about InventoryMetricThresholdAlert
.
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
History
To update your PR or re-run it, just comment with: |
Related to #183220
Summary
This PR extracts
getEcsGroups
to a package to save ECS groups in the Alert As Data (AAD) document for the metric threshold rule.🧪 How to test