diff --git a/docs/sources/alerting/alerting-rules/templates/language.md b/docs/sources/alerting/alerting-rules/templates/language.md index 095d8b85050..225dd9f9596 100644 --- a/docs/sources/alerting/alerting-rules/templates/language.md +++ b/docs/sources/alerting/alerting-rules/templates/language.md @@ -29,11 +29,11 @@ refs: destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/ - pattern: /docs/grafana-cloud/ destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/ - reference-extendeddata: + reference-notificationdata: - pattern: /docs/grafana/ - destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#notification-data - pattern: /docs/grafana-cloud/ - destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#notification-data --- # Alerting template language @@ -64,7 +64,7 @@ To print the value of something, use `{{` and `}}`. You can print the value of a In `text/template`, there is a special cursor called dot, written as `.`. You can think of this cursor as a variable whose value changes depending on where in the template it is used. -At the start of notification templates, dot (`.`) refers to [ExtendedData](ref:reference-extendeddata). +At the start of notification templates, dot (`.`) refers to [Notification Data](ref:reference-notificationdata). ``` {{ .Alerts }} diff --git a/docs/sources/alerting/configure-notifications/template-notifications/examples.md b/docs/sources/alerting/configure-notifications/template-notifications/examples.md index d9bd1394423..0cd0e90a130 100644 --- a/docs/sources/alerting/configure-notifications/template-notifications/examples.md +++ b/docs/sources/alerting/configure-notifications/template-notifications/examples.md @@ -34,11 +34,11 @@ refs: destination: /docs/grafana//alerting/configure-notifications/template-notifications/language/#range - pattern: /docs/grafana-cloud/ destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/language/#range - reference-extended-data: + reference-notification-data: - pattern: /docs/grafana/ - destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#notification-data - pattern: /docs/grafana-cloud/ - destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#notification-data language-variables: - pattern: /docs/grafana/ destination: /docs/grafana//alerting/configure-notifications/template-notifications/language/#variables @@ -127,7 +127,7 @@ There are {{ len $alert.Labels }} ### Iterate over alerts -To print just the labels of each alert, rather than all information about the alert, you can use a `range` to iterate the alerts, which are initialized with data. See [ExtendedData](ref:reference-extended-data). +To print just the labels of each alert, rather than all information about the alert, you can use a `range` to iterate the alerts, which are initialized with data. See [ExtendedData](ref:reference-notification-data). ``` {{ range .Alerts }} @@ -136,7 +136,7 @@ To print just the labels of each alert, rather than all information about the al ``` - [`{{ range }}`](ref:language-range): Introduces looping through alerts to display multiple instances. -- [ExtendedData](ref:reference-extended-data): additional data that is not part of the standard set of fields the [dot](ref:language-dot) cursor is initialized with. +- [ExtendedData](ref:reference-notification-data): additional data that is not part of the standard set of fields the [dot](ref:language-dot) cursor is initialized with. ### Iterate over annotations and labels diff --git a/docs/sources/alerting/configure-notifications/template-notifications/language.md b/docs/sources/alerting/configure-notifications/template-notifications/language.md index 24f37a69159..9f47303daff 100644 --- a/docs/sources/alerting/configure-notifications/template-notifications/language.md +++ b/docs/sources/alerting/configure-notifications/template-notifications/language.md @@ -33,11 +33,11 @@ refs: destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/ - pattern: /docs/grafana-cloud/ destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/ - reference-extendeddata: + reference-notificationdata: - pattern: /docs/grafana/ - destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana//alerting/configure-notifications/template-notifications/reference/#notification-data - pattern: /docs/grafana-cloud/ - destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#extendeddata + destination: /docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/template-notifications/reference/#notification-data --- # Alerting template language @@ -68,7 +68,7 @@ To print the value of something, use `{{` and `}}`. You can print the value of a In `text/template`, there is a special cursor called dot, written as `.`. You can think of this cursor as a variable whose value changes depending on where in the template it is used. -At the start of notification templates, dot (`.`) refers to [ExtendedData](ref:reference-extendeddata). +At the start of notification templates, dot (`.`) refers to [Notification Data](ref:reference-notificationdata). ``` {{ .Alerts }} diff --git a/docs/sources/alerting/configure-notifications/template-notifications/reference.md b/docs/sources/alerting/configure-notifications/template-notifications/reference.md index 3b289c2071e..b057ec33fec 100644 --- a/docs/sources/alerting/configure-notifications/template-notifications/reference.md +++ b/docs/sources/alerting/configure-notifications/template-notifications/reference.md @@ -100,7 +100,7 @@ Here's an example that prints all available notification data from dot (`.`): | `Fingerprint` | string | A unique string that identifies the alert | | `ValueString` | string | A string that contains the labels and value of each reduced expression in the alert. | -This example iterates over the list of firing and resolved alerts in the notification and prints the data for each alert: +This example iterates over the list of firing and resolved alerts (`.Alerts`) in the notification and prints the data for each alert: ``` {{ define "custom_template" }}