Skip to content

Commit bf13401

Browse files
authored
Added Shortcuts and re-worked Tags
Added Shortcuts and re-worked Tags
1 parent f7acda8 commit bf13401

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

content/en/synthetics/notifications/template_variables.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Test failed at step {{synthetics.failed_step.name}} with error: {{synthetics.fai
4141
`{{synthetics.result.duration}}`
4242
: Duration of the test run (in milliseconds) (for example, `9096`).
4343

44-
`{{tags.env}}`
45-
: The environment tag value (for example, `prod`).
44+
`{{tags}}`
45+
: Lists all the tags added to the synthetics test. Use {{tag.my_tag}} to access individual tag values.
4646

4747
**Note:** Not all variables are available for every test type. You may need to test different outputs to verify the data returned. You can export the result as a JSON file from the **Actions** tab, then reference the path directly within your monitor configuration.
4848

@@ -187,6 +187,14 @@ Applies to Multistep, Browser, and Mobile tests.
187187
`{{synthetics.attributes.count.hops}}`
188188
: The number of traceroute hops for TCP and ICMP tests
189189

190+
{{% /tab %}}
191+
{{% tab "Failed Step" %}}
192+
193+
Applies to Multistep, Browser, and Mobile tests.
194+
195+
`{{synthetics.failed_step}}`
196+
: The `failed_step` object provides a shortcut to the data for the step in `{{synthetics.attributes.result.steps}}` that caused the test to fail. For example, `{{synthetics.failed_step.name}}` maps to `{{synthetics.attributes.result.steps.<step-index>.name}}`, the failing step’s name.
197+
190198
{{% /tab %}}
191199
{{< /tabs >}}
192200

0 commit comments

Comments
 (0)