You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/rule_group.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,9 +116,12 @@ EOT
116
116
-`folder_uid` (String) The UID of the folder that the group belongs to.
117
117
-`interval_seconds` (Number) The interval, in seconds, at which all rules in the group are evaluated. If a group contains many rules, the rules are evaluated sequentially.
118
118
-`name` (String) The name of the rule group.
119
-
-`org_id` (String) The ID of the org to which the group belongs.
120
119
-`rule` (Block List, Min: 1) The rules within the group. (see [below for nested schema](#nestedblock--rule))
121
120
121
+
### Optional
122
+
123
+
-`org_id` (String) The Organization ID. If not set, the Org ID defined in the provider block will be used.
Copy file name to clipboardExpand all lines: internal/resources/grafana/resource_alerting_rule_group.go
+9-16Lines changed: 9 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ This resource requires Grafana 9.1.0 or later.
37
37
38
38
SchemaVersion: 0,
39
39
Schema: map[string]*schema.Schema{
40
+
"org_id": orgIDAttribute(),
40
41
"name": {
41
42
Type: schema.TypeString,
42
43
Required: true,
@@ -54,12 +55,6 @@ This resource requires Grafana 9.1.0 or later.
54
55
Required: true,
55
56
Description: "The interval, in seconds, at which all rules in the group are evaluated. If a group contains many rules, the rules are evaluated sequentially.",
56
57
},
57
-
"org_id": {
58
-
Type: schema.TypeString,
59
-
Required: true,
60
-
ForceNew: true,
61
-
Description: "The ID of the org to which the group belongs.",
62
-
},
63
58
"rule": {
64
59
Type: schema.TypeList,
65
60
Required: true,
@@ -192,9 +187,9 @@ This resource requires Grafana 9.1.0 or later.
0 commit comments