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
-`metadata` (Block, Optional) The metadata of the resource. (see [below for nested schema](#nestedblock--metadata))
78
+
-`options` (Block, Optional) Options for applying the resource. (see [below for nested schema](#nestedblock--options))
79
+
-`spec` (Block, Optional) The spec of the resource. (see [below for nested schema](#nestedblock--spec))
80
+
81
+
### Read-Only
82
+
83
+
-`id` (String) The ID of the resource derived from UUID.
84
+
85
+
<aid="nestedblock--metadata"></a>
86
+
### Nested Schema for `metadata`
87
+
88
+
Required:
89
+
90
+
-`uid` (String) The unique identifier of the resource.
91
+
92
+
Optional:
93
+
94
+
-`folder_uid` (String) The UID of the folder to save the resource in.
95
+
96
+
Read-Only:
97
+
98
+
-`url` (String) The full URL of the resource.
99
+
-`uuid` (String) The globally unique identifier of a resource, used by the API for tracking.
100
+
-`version` (String) The version of the resource.
101
+
102
+
103
+
<aid="nestedblock--options"></a>
104
+
### Nested Schema for `options`
105
+
106
+
Optional:
107
+
108
+
-`overwrite` (Boolean) Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
109
+
110
+
111
+
<aid="nestedblock--spec"></a>
112
+
### Nested Schema for `spec`
113
+
114
+
Required:
115
+
116
+
-`title` (String) The title of the alert enrichment.
117
+
118
+
Optional:
119
+
120
+
-`alert_rule_uids` (List of String) UIDs of alert rules this enrichment applies to. If empty, applies to all alert rules.
121
+
-`annotation_matchers` (List of Object) Annotation matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, annotation key to match), 'value' (string, annotation value to compare against, supports regex for =~/!~ operators). (see [below for nested schema](#nestedatt--spec--annotation_matchers))
122
+
-`assign_step` (Block List) Assign enricher step that adds or modifies annotations on alerts. (see [below for nested schema](#nestedblock--spec--assign_step))
123
+
-`description` (String) Description of the alert enrichment.
124
+
-`label_matchers` (List of Object) Label matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, label key to match), 'value' (string, label value to compare against, supports regex for =~/!~ operators). (see [below for nested schema](#nestedatt--spec--label_matchers))
125
+
-`receivers` (List of String) Receiver names to match. If empty, applies to all receivers.
126
+
127
+
<aid="nestedatt--spec--annotation_matchers"></a>
128
+
### Nested Schema for `spec.annotation_matchers`
129
+
130
+
Optional:
131
+
132
+
-`name` (String)
133
+
-`type` (String)
134
+
-`value` (String)
135
+
136
+
137
+
<aid="nestedblock--spec--assign_step"></a>
138
+
### Nested Schema for `spec.assign_step`
139
+
140
+
Required:
141
+
142
+
-`annotations` (Map of String) Map of annotation names to values to set on matching alerts. Values can use Go template syntax with access to $labels and $annotations.
143
+
144
+
Optional:
145
+
146
+
-`timeout` (String) Maximum execution time (e.g., '30s', '1m'). Defaults to 30s.
0 commit comments