Customization of an Email-Action

Email-Action supports the following tokens for email content/body that get replaced by their actual value at runtime.

Note: If the token is not recognized at runtime then it will be left as is with the token name.
  • rule.name: The name of the rule for which the action is invoked. This token can be used in both email subject and content
  • alert priority: The priority of the alert generated because of the action
  • rule.owner.name: The name of the rule owner
  • alert.timestamp: The time when the action is triggered or cleared
  • rule.condition: A string representation of the condition defined for the rule
  • rule.condition.state: The state of the condition as triggered or cleared
  • metric.key: A string representation of the metric node key
  • metric.info: A tabular representation of all metric name/value pairs
  • metric.value.<Name of Metric>: The token to get the value of a specific metric name.

    That is, ${metric.value.HitCount}, ${metric.value.AvgJvmMemory}

    For example:

    SPM Alert for Rule: ${rule.name} gets replaced to SPM Alert for Rule: DemoRule1

  • metric.key.<Name of Dimension> : The token to get the value of a specific dimension name in the metric key.

    That is, ${metric.key.service_name}, ${metric.key.app}

    For example:

    Service ${metric.key.app} has more than 100 hits gets translated to Service BaggageService has more than 100 hits.