• /
  • Log in
  • Free account

Workflows variables

An explanation of the variables used for incident workflows.

Variables

Use the variables from the issue entity to select the kind of issues you would like to send as well as the message template which appear on the notifications.

Here's a comprehensive list of variables:

Key (First word will be used for grouping)

Display Name (First word will be used for grouping)

accumulations.conditionName

Alert Condition Names

accumulations.origin

Issue Origin

accumulations.policyName

Alert Policy Names

accumulations.source

Issue Source

activatedAt

Issue Activated At

dataMLModules.components

Machine Learning Components

dataMLModules.suggestedResponders

Machine Learning Suggested Responder

dataMLModules.goldenSignals

Machine Learning Golden Signals

annotations.description

Issue Description

annotations.title

Issue Title

closedAt

Issue ClosedAt

createdAt

Issue CreatedAt

entities.ids

Impacted Entities IDs

entities.types

Impacted Entities Types

entities.names

Impacted Entities Names

entities.kinds

Impacted Entities Kinds

incidentIds

Incident IDs

isCorrelated

Issue Is Correlated

issueId

Issue ID

issue.pageUrl

Issue Page URL

labels.accountIds

Issue Environment Associated Account ID

labels.aggregationKeys

Labels Alerts Aggregation Key

labels.conditionNames

Labels Alert Condition Names

labels.originalAccountIds

Labels Account IDs

labels.policyIds

Labels Alert Policy IDs

labels.policyNames

Labels Alert Policy Names

priority

Issue Priority

state

Issue State

status

Issue Status

totalIncidents

Incident Count

triggerEvent

Issue Notification Trigger Event

triggeredAt

Issue Triggered At

updatedAt

Issue Updated At

workflowName

Workflow Name

Workflow data enrichment examples

To get information about the entity that violated a condition, you can use custom variables as part of the where statement of the query. For example, to get the state of the EC2 instance use:

SELECT latest(ec2State) FROM ComputeSample where provider = 'Ec2Instance' where entityName in {{entities.names}}

This query returns a single value (for example, stopped), as the query only uses a single field. The variable entities.names is a list of identifiers for the entities. You can use any other entity properties in the same way.

You can use custom variables to enrich your workflow data queries in different ways:

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.