Have used dynatrace API for Defining query and alert condition. Used the below classic condition legacy
and it giving this values in Alert Email
.
Is there a way we can send meaningful alert message based on the threshold value ?
@dawiddebowski @ tanmaybhat24
Hi @jprasan3
I’ve tried to get the value from a classic condition expression but it didn’t work. Classic conditions exist mainly for compatibility reasons and should be avoided if possible.
However, you should be able to print the value returned by other expression by using the Ref ID of the expression.
This template should return the value of my Reduce expresison
Example:
{{ $values.B }}
The $values
variable is a table containing the labels and floating point values of all instant queries and expressions, indexed by their Ref IDs (e.g, A
, B
, C
, etc.).

Reference: Annotation and label template reference | Grafana documentation