|
19 | 19 | },
|
20 | 20 | "name": {
|
21 | 21 | "type": "string",
|
22 |
| - "description": "The name of the action rule that needs to be created/updated" |
| 22 | + "description": "The name of the alert processing rule that needs to be created/updated" |
23 | 23 | },
|
24 | 24 | "properties": {
|
25 | 25 | "oneOf": [
|
26 | 26 | {
|
27 |
| - "$ref": "#/definitions/ActionRuleProperties" |
| 27 | + "$ref": "#/definitions/AlertProcessingRuleProperties" |
28 | 28 | },
|
29 | 29 | {
|
30 | 30 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
31 | 31 | }
|
32 | 32 | ],
|
33 |
| - "description": "Action rule properties defining scopes, conditions and scheduling logic for action rule" |
| 33 | + "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule" |
34 | 34 | },
|
35 | 35 | "systemData": {
|
36 | 36 | "oneOf": [
|
|
89 | 89 | "properties": {},
|
90 | 90 | "description": "Action to be applied"
|
91 | 91 | },
|
92 |
| - "ActionRuleProperties": { |
| 92 | + "AddActionGroups": { |
| 93 | + "type": "object", |
| 94 | + "properties": { |
| 95 | + "actionGroupIds": { |
| 96 | + "oneOf": [ |
| 97 | + { |
| 98 | + "type": "array", |
| 99 | + "items": { |
| 100 | + "type": "string" |
| 101 | + } |
| 102 | + }, |
| 103 | + { |
| 104 | + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
| 105 | + } |
| 106 | + ], |
| 107 | + "description": "List of action group Ids to add to alert processing rule" |
| 108 | + }, |
| 109 | + "actionType": { |
| 110 | + "type": "string", |
| 111 | + "enum": [ |
| 112 | + "AddActionGroups" |
| 113 | + ] |
| 114 | + } |
| 115 | + }, |
| 116 | + "required": [ |
| 117 | + "actionGroupIds", |
| 118 | + "actionType" |
| 119 | + ], |
| 120 | + "description": "Add action groups to alert processing rule" |
| 121 | + }, |
| 122 | + "AlertProcessingRuleProperties": { |
93 | 123 | "type": "object",
|
94 | 124 | "properties": {
|
95 | 125 | "actions": {
|
|
118 | 148 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
119 | 149 | }
|
120 | 150 | ],
|
121 |
| - "description": "Conditions in alert instance to be matched for a given action rule. Default value is all. Multiple values could be provided with comma separation." |
| 151 | + "description": "Conditions in alert instance to be matched for a given alert processing rule. Default value is all. Multiple values could be provided with comma separation." |
122 | 152 | },
|
123 | 153 | "description": {
|
124 | 154 | "type": "string",
|
125 |
| - "description": "Description of action rule" |
| 155 | + "description": "Description of alert processing rule" |
126 | 156 | },
|
127 | 157 | "enabled": {
|
128 | 158 | "oneOf": [
|
|
134 | 164 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
135 | 165 | }
|
136 | 166 | ],
|
137 |
| - "description": "Indicates if the given action rule is enabled or disabled" |
| 167 | + "description": "Indicates if the given alert processing rule is enabled or disabled" |
138 | 168 | },
|
139 | 169 | "schedule": {
|
140 | 170 | "oneOf": [
|
|
145 | 175 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
146 | 176 | }
|
147 | 177 | ],
|
148 |
| - "description": "Scheduling configuration for a given action rule" |
| 178 | + "description": "Scheduling configuration for a given alert processing rule" |
149 | 179 | },
|
150 | 180 | "scopes": {
|
151 | 181 | "oneOf": [
|
|
159 | 189 | "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
|
160 | 190 | }
|
161 | 191 | ],
|
162 |
| - "description": "List of ARM IDs which will be the target of the given action rule." |
| 192 | + "description": "List of ARM IDs which will be the target of the given alert processing rule." |
163 | 193 | }
|
164 | 194 | },
|
165 | 195 | "required": [
|
166 | 196 | "actions",
|
167 | 197 | "scopes"
|
168 | 198 | ],
|
169 |
| - "description": "Action rule properties defining scopes, conditions and scheduling logic for action rule" |
170 |
| - }, |
171 |
| - "AddActionGroups": { |
172 |
| - "type": "object", |
173 |
| - "properties": { |
174 |
| - "actionGroupIds": { |
175 |
| - "oneOf": [ |
176 |
| - { |
177 |
| - "type": "array", |
178 |
| - "items": { |
179 |
| - "type": "string" |
180 |
| - } |
181 |
| - }, |
182 |
| - { |
183 |
| - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" |
184 |
| - } |
185 |
| - ], |
186 |
| - "description": "List of action group Ids to add to action rule" |
187 |
| - }, |
188 |
| - "actionType": { |
189 |
| - "type": "string", |
190 |
| - "enum": [ |
191 |
| - "AddActionGroups" |
192 |
| - ] |
193 |
| - } |
194 |
| - }, |
195 |
| - "required": [ |
196 |
| - "actionGroupIds", |
197 |
| - "actionType" |
198 |
| - ], |
199 |
| - "description": "Add action groups to action rule" |
| 199 | + "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule" |
200 | 200 | },
|
201 | 201 | "Condition": {
|
202 | 202 | "type": "object",
|
|
257 | 257 | "description": "List of values to match for a given condition."
|
258 | 258 | }
|
259 | 259 | },
|
260 |
| - "description": "Condition to trigger an action rule" |
| 260 | + "description": "Condition to trigger an alert processing rule" |
261 | 261 | },
|
262 | 262 | "DailyRecurrence": {
|
263 | 263 | "type": "object",
|
|
390 | 390 | "description": "Scheduling time zone"
|
391 | 391 | }
|
392 | 392 | },
|
393 |
| - "description": "Scheduling configuration for a given action rule" |
| 393 | + "description": "Scheduling configuration for a given alert processing rule" |
394 | 394 | },
|
395 | 395 | "SystemData": {
|
396 | 396 | "type": "object",
|
|
0 commit comments