From 9797744c10109aba2ce9aabad232784a3a36a80e Mon Sep 17 00:00:00 2001 From: Santiago Date: Mon, 4 Jul 2022 10:38:22 -0300 Subject: [PATCH] template functions reference and examples moved to corresponding section, description and links fixed (#51654) --- .../alerting/fundamentals/annotation-label/_index.md | 2 +- .../annotation-label}/example-template-functions.md | 6 ++---- .../annotation-label}/template-functions.md | 7 +++---- 3 files changed, 6 insertions(+), 9 deletions(-) rename docs/sources/alerting/{contact-points/message-templating => fundamentals/annotation-label}/example-template-functions.md (86%) rename docs/sources/alerting/{contact-points/message-templating => fundamentals/annotation-label}/template-functions.md (95%) diff --git a/docs/sources/alerting/fundamentals/annotation-label/_index.md b/docs/sources/alerting/fundamentals/annotation-label/_index.md index 4d2dd03bf7e..8270a4ce178 100644 --- a/docs/sources/alerting/fundamentals/annotation-label/_index.md +++ b/docs/sources/alerting/fundamentals/annotation-label/_index.md @@ -16,7 +16,7 @@ weight: 401 # Annotations and labels for alerting rules -Annotations and labels are key value pairs associated with alerts originating from the alerting rule, datasource response, and as a result of alerting rule evaluation. They can be used in alert notifications directly or in [templates]({{< relref "../../contact-points/message-templating/" >}}) and [template functions]({{< relref "../../contact-points/message-templating/template-functions/" >}}) to create notification contact dynamically. +Annotations and labels are key value pairs associated with alerts originating from the alerting rule, datasource response, and as a result of alerting rule evaluation. They can be used in alert notifications directly or in [templates]({{< relref "../../contact-points/message-templating/" >}}) and [template functions]({{< relref "../../contact-points/fundamentals/annotation-label/template-functions/" >}}) to create notification contact dynamically. ## Annotations diff --git a/docs/sources/alerting/contact-points/message-templating/example-template-functions.md b/docs/sources/alerting/fundamentals/annotation-label/example-template-functions.md similarity index 86% rename from docs/sources/alerting/contact-points/message-templating/example-template-functions.md rename to docs/sources/alerting/fundamentals/annotation-label/example-template-functions.md index 76693eda54d..3bd894057ab 100644 --- a/docs/sources/alerting/contact-points/message-templating/example-template-functions.md +++ b/docs/sources/alerting/fundamentals/annotation-label/example-template-functions.md @@ -1,9 +1,7 @@ --- aliases: - - /docs/grafana/latest/alerting/contact-points/message-templating/example-template-functions/ - - /docs/grafana/latest/alerting/contact-points/message-templating/template-functions/ - - /docs/grafana/latest/alerting/message-templating/template-functions/ - - /docs/grafana/latest/alerting/unified-alerting/message-templating/template-functions/ + - /docs/grafana/latest/alerting/fundamentals/annotation-label/example-template-functions/ + - /docs/grafana/latest/alerting/unified-alerting/fundamentals/annotation-label/template-functions/ keywords: - grafana - alerting diff --git a/docs/sources/alerting/contact-points/message-templating/template-functions.md b/docs/sources/alerting/fundamentals/annotation-label/template-functions.md similarity index 95% rename from docs/sources/alerting/contact-points/message-templating/template-functions.md rename to docs/sources/alerting/fundamentals/annotation-label/template-functions.md index 567f0452703..b06bb916045 100644 --- a/docs/sources/alerting/contact-points/message-templating/template-functions.md +++ b/docs/sources/alerting/fundamentals/annotation-label/template-functions.md @@ -1,8 +1,7 @@ --- aliases: - - /docs/grafana/latest/alerting/contact-points/message-templating/template-functions/ - - /docs/grafana/latest/alerting/message-templating/template-functions/ - - /docs/grafana/latest/alerting/unified-alerting/message-templating/template-functions/ + - /docs/grafana/latest/alerting/fundamentals/annotation-label/template-functions/ + - /docs/grafana/latest/alerting/unified-alerting/fundamentals/annotation-label/template-functions/ keywords: - grafana - alerting @@ -15,7 +14,7 @@ weight: 125 # Template Functions -Template functions allow you to process labels and annotations to generate dynamic notifications. +Template functions allow you to process alert evaluation results to generate dynamic notifications. | Name | Argument type | Return type | Description | | ----------------------------------------- | ------------------------------------------------------------ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |