From 92e798ed501a810a77052c8fa8380e99878b771d Mon Sep 17 00:00:00 2001 From: Alexander Weaver Date: Mon, 19 Sep 2022 12:03:03 -0500 Subject: [PATCH] Document version reqs for all alerting resources (#662) --- docs/resources/contact_point.md | 3 +++ docs/resources/message_template.md | 6 ++++++ docs/resources/mute_timing.md | 6 ++++++ docs/resources/notification_policy.md | 7 +++++-- docs/resources/rule_group.md | 3 +++ grafana/resource_alerting_contact_point.go | 2 ++ grafana/resource_alerting_message_template.go | 4 ++++ grafana/resource_alerting_mute_timing.go | 6 +++++- grafana/resource_alerting_notification_policy.go | 3 +++ grafana/resource_alerting_rule_group.go | 1 + 10 files changed, 38 insertions(+), 3 deletions(-) diff --git a/docs/resources/contact_point.md b/docs/resources/contact_point.md index d0ccacdf5..e2d6aef0c 100644 --- a/docs/resources/contact_point.md +++ b/docs/resources/contact_point.md @@ -5,6 +5,7 @@ subcategory: "Alerting" description: |- Manages Grafana Alerting contact points. Official documentation https://grafana.com/docs/grafana/next/alerting/contact-pointsHTTP API https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points + This resource requires Grafana 9.1.0 or later. --- # grafana_contact_point (Resource) @@ -14,6 +15,8 @@ Manages Grafana Alerting contact points. * [Official documentation](https://grafana.com/docs/grafana/next/alerting/contact-points) * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points) +This resource requires Grafana 9.1.0 or later. + ## Example Usage ```terraform diff --git a/docs/resources/message_template.md b/docs/resources/message_template.md index dafe79cd2..e13d36151 100644 --- a/docs/resources/message_template.md +++ b/docs/resources/message_template.md @@ -3,14 +3,20 @@ page_title: "grafana_message_template Resource - terraform-provider-grafana" subcategory: "Alerting" description: |- + Manages Grafana Alerting message templates. Official documentation https://grafana.com/docs/grafana/next/alerting/contact-points/message-templating/HTTP API https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#templates + This resource requires Grafana 9.1.0 or later. --- # grafana_message_template (Resource) +Manages Grafana Alerting message templates. + * [Official documentation](https://grafana.com/docs/grafana/next/alerting/contact-points/message-templating/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#templates) +This resource requires Grafana 9.1.0 or later. + ## Example Usage ```terraform diff --git a/docs/resources/mute_timing.md b/docs/resources/mute_timing.md index d697cc660..9610a3b6b 100644 --- a/docs/resources/mute_timing.md +++ b/docs/resources/mute_timing.md @@ -3,14 +3,20 @@ page_title: "grafana_mute_timing Resource - terraform-provider-grafana" subcategory: "Alerting" description: |- + Manages Grafana Alerting mute timings. Official documentation https://grafana.com/docs/grafana/next/alerting/notifications/mute-timings/HTTP API https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings + This resource requires Grafana 9.1.0 or later. --- # grafana_mute_timing (Resource) +Manages Grafana Alerting mute timings. + * [Official documentation](https://grafana.com/docs/grafana/next/alerting/notifications/mute-timings/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings) +This resource requires Grafana 9.1.0 or later. + ## Example Usage ```terraform diff --git a/docs/resources/notification_policy.md b/docs/resources/notification_policy.md index d7e9f568f..a2c98383e 100644 --- a/docs/resources/notification_policy.md +++ b/docs/resources/notification_policy.md @@ -4,16 +4,19 @@ page_title: "grafana_notification_policy Resource - terraform-provider-grafana" subcategory: "Alerting" description: |- Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies. - * Official documentation https://grafana.com/docs/grafana/latest/alerting/notifications/ - * HTTP API https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#notification-policies + Official documentation https://grafana.com/docs/grafana/latest/alerting/notifications/HTTP API https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#notification-policies + This resource requires Grafana 9.1.0 or later. --- # grafana_notification_policy (Resource) Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies. + * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/notifications/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#notification-policies) +This resource requires Grafana 9.1.0 or later. + ## Example Usage ```terraform diff --git a/docs/resources/rule_group.md b/docs/resources/rule_group.md index e6e7fa1ea..42c9b7c8d 100644 --- a/docs/resources/rule_group.md +++ b/docs/resources/rule_group.md @@ -5,6 +5,7 @@ subcategory: "Alerting" description: |- Manages Grafana Alerting rule groups. Official documentation https://grafana.com/docs/grafana/latest/alerting/alerting-rulesHTTP API https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#alert-rules + This resource requires Grafana 9.1.0 or later. --- # grafana_rule_group (Resource) @@ -14,6 +15,8 @@ Manages Grafana Alerting rule groups. * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/alerting-rules) * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#alert-rules) +This resource requires Grafana 9.1.0 or later. + ## Example Usage ```terraform diff --git a/grafana/resource_alerting_contact_point.go b/grafana/resource_alerting_contact_point.go index 5c63c7f07..7e60c7d43 100644 --- a/grafana/resource_alerting_contact_point.go +++ b/grafana/resource_alerting_contact_point.go @@ -38,6 +38,8 @@ Manages Grafana Alerting contact points. * [Official documentation](https://grafana.com/docs/grafana/next/alerting/contact-points) * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#contact-points) + +This resource requires Grafana 9.1.0 or later. `, CreateContext: createContactPoint, ReadContext: readContactPoint, diff --git a/grafana/resource_alerting_message_template.go b/grafana/resource_alerting_message_template.go index 982371e1d..93f5cfc90 100644 --- a/grafana/resource_alerting_message_template.go +++ b/grafana/resource_alerting_message_template.go @@ -12,8 +12,12 @@ import ( func ResourceMessageTemplate() *schema.Resource { return &schema.Resource{ Description: ` +Manages Grafana Alerting message templates. + * [Official documentation](https://grafana.com/docs/grafana/next/alerting/contact-points/message-templating/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#templates) + +This resource requires Grafana 9.1.0 or later. `, CreateContext: createMessageTemplate, ReadContext: readMessageTemplate, diff --git a/grafana/resource_alerting_mute_timing.go b/grafana/resource_alerting_mute_timing.go index 38da0181e..948086387 100644 --- a/grafana/resource_alerting_mute_timing.go +++ b/grafana/resource_alerting_mute_timing.go @@ -14,9 +14,13 @@ import ( func ResourceMuteTiming() *schema.Resource { return &schema.Resource{ Description: ` +Manages Grafana Alerting mute timings. + * [Official documentation](https://grafana.com/docs/grafana/next/alerting/notifications/mute-timings/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#mute-timings) - `, + +This resource requires Grafana 9.1.0 or later. +`, CreateContext: createMuteTiming, ReadContext: readMuteTiming, diff --git a/grafana/resource_alerting_notification_policy.go b/grafana/resource_alerting_notification_policy.go index 20747b2a0..50c345cc5 100644 --- a/grafana/resource_alerting_notification_policy.go +++ b/grafana/resource_alerting_notification_policy.go @@ -13,8 +13,11 @@ func ResourceNotificationPolicy() *schema.Resource { return &schema.Resource{ Description: ` Sets the global notification policy for Grafana. Note that this resource manages the entire notification policy tree, and will overwrite any existing policies. + * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/notifications/) * [HTTP API](https://grafana.com/docs/grafana/next/developers/http_api/alerting_provisioning/#notification-policies) + +This resource requires Grafana 9.1.0 or later. `, CreateContext: createNotificationPolicy, diff --git a/grafana/resource_alerting_rule_group.go b/grafana/resource_alerting_rule_group.go index 28bc47d0a..f6e469dd3 100644 --- a/grafana/resource_alerting_rule_group.go +++ b/grafana/resource_alerting_rule_group.go @@ -21,6 +21,7 @@ Manages Grafana Alerting rule groups. * [Official documentation](https://grafana.com/docs/grafana/latest/alerting/alerting-rules) * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/alerting_provisioning/#alert-rules) +This resource requires Grafana 9.1.0 or later. `, CreateContext: createAlertRuleGroup, ReadContext: readAlertRuleGroup,