-
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
Custom interval per alert type #51203
Comments
Pinging @elastic/kibana-stack-services (Team:Stack Services) |
Use case from @darnautov to provide a default or recommended interval (#89880 (comment))
|
This makes sense to me. I guess the alert type would define some "default" values for things like interval and throttle (null might be appropriate for some, on-status-change for others). I think those are the two generic alert parameters that would make sense to allow an alert type to provide defaults for. This fits into my "default all the things" thoughts as well, where we should be allowing nullable values for config/params which could be filled in by alert/action types, out of the box. So we can also make use of these "defaults" for anyone using the HTTP APIs directly. But it has a lot more value just in the UI for now. |
This could work well with #51194 if it doesn't make sense to have alerts run so frequently. |
Ya, adding some constraints here like "minimum interval" sound good as well. But will then require the params validation to get tweaked - which could actually get complicated if it has to go in the config-schema validation. |
From issue #89898 (comment) Another type of rule-type validation of general rule params comes from the anomaly detection rule type - for that one, ML jobs are already configured with an interval of some sort, which should influence the rule interval itself. Specifically, there's no sense making it smaller than the interval in the ML job. In this case, we'd want to somehow allow the rule to override the interval, based on some other rule-specific application data. In the particular case of anomaly detection rules, each rule can deal with multiple ML jobs, so presumably we'd collect the minimum interval of those jobs, and use it to set the minimum interval in the rule itself. Not sure if this would just be a UI thing, or something lower-level, in the rule processing itself. But in any case, it needs to be "live", based on existing ES resources, and not just "static". |
Would be nice to be able to specify:
The text was updated successfully, but these errors were encountered: