Skip to content

[7.x] [Alerting] add more alert properties to action parameter templating (#59718)#59829

Merged
pmuellr merged 1 commit intoelastic:7.xfrom
pmuellr:backport/7.x/pr-59718
Mar 10, 2020
Merged

[7.x] [Alerting] add more alert properties to action parameter templating (#59718)#59829
pmuellr merged 1 commit intoelastic:7.xfrom
pmuellr:backport/7.x/pr-59718

Conversation

@pmuellr
Copy link
Copy Markdown
Contributor

@pmuellr pmuellr commented Mar 10, 2020

Backports the following commits to 7.x:

…lastic#59718)

This is a pre-cursor to elastic#58529

I realized a bit ago that we weren't making quite enough info available
in the action parameter templating that happens when alerts schedule
actions to execute.  Missing were alert name, tags, and spaceId.

For the index threshold alert, I had added them to it's context, but
then every other action would have to do the same if they also
wanted those values.

So I added these as additional top-level variables that can be
used in templates, along with the alert id, alert instance id,
context, and state.  The other bits in RawAlert didn't seem
that interesting, to be used as an action parameter.
@pmuellr pmuellr added the backport This PR is a backport of another PR label Mar 10, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pmuellr pmuellr merged commit f4fd128 into elastic:7.x Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants