-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[alerts] adds action group and date to mustache template variables for actions #83195
[alerts] adds action group and date to mustache template variables for actions #83195
Conversation
d515748
to
dd3fd9a
Compare
…r actions resolves: elastic#67389
dd3fd9a
to
c4543cc
Compare
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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
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.
Works as expected, so LGTM, my only concerns is with naming (always the easiest problem, ey?):
Shouldn't alertActionGroup
actually be alertInstanceActionGroup
? or perhaps instanceActionGroup
?
My vote is no. Here's the full list of top-level names we make available as variables: kibana/x-pack/plugins/alerts/server/task_runner/transform_action_params.ts Lines 47 to 59 in c4543cc
Aside - this list always bugs me, I feel like maybe it makes more sense to have an We do have A search through the code base doesn't find any references to It's also a mouthful. I guess my main argument against it would be that it's already implied that you're operating on an instance at this point, so it's not really needed. And it's a mouthful :-) I can be convinced otherwise :-) |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…r actions (elastic#83195) resolves: elastic#67389 Adds new variables to the existing set of variables that can be used in mustache templates to be used in action parameters when creating alerts. - `alertActionGroup` - the action group associated with the alert scheduling actions - `date` - the current date, in ISO format
* master: skip "Dashboards linked by a drilldown are both copied to a space" (elastic#83824) [alerts] adds action group and date to mustache template variables for actions (elastic#83195) skip flaky suite (elastic#79389) [DOCS] Reallocates limitations to point-of-use (elastic#79582) [Enterprise Search] Engine overview layout stub (elastic#83756) Disable exporting/importing of templates. Optimize pitch images a bit (elastic#83098) [DOCS] Consolidates plugins (elastic#83712) [ML] Space management UI (elastic#83320) test just part of the message to avoid updates (elastic#83703) [Data Table] Remove extra column in split mode (elastic#83193) Improve snapshot error messages (elastic#83785) skip flaky suite (elastic#83773) skip flaky suite (elastic#83771) skip flaky suite (elastic#65278) skip flaky suite (elastic#83793) [Task Manager] Ensures retries are inferred from the schedule of recurring tasks (elastic#83682) [index patterns] improve index pattern cache (elastic#83368) [Fleet] Rename ingestManager plugin ID fleet (elastic#83200) fixed pagination in connectors list (elastic#83638)
…r actions (elastic#83195) resolves: elastic#67389 Adds new variables to the existing set of variables that can be used in mustache templates to be used in action parameters when creating alerts. - `alertActionGroup` - the action group associated with the alert scheduling actions - `date` - the current date, in ISO format
…r actions (#83195) (#83828) resolves: #67389 Adds new variables to the existing set of variables that can be used in mustache templates to be used in action parameters when creating alerts. - `alertActionGroup` - the action group associated with the alert scheduling actions - `date` - the current date, in ISO format
resolves: #67389
Adds new variables to the existing set of variables that can be used in mustache templates to be used in action parameters when creating alerts.
alertActionGroup
- the action group associated with the alert scheduling actionsdate
- the current date, in ISO formatChecklist
note that I left Documentation unchecked, but also added the
needs_docs
label per recent conversation on getting doc added - we'll need these new variables added to whatever documentation we have on these mustache variables