Skip to content

Commit 9185a08

Browse files
author
SDKAuto
committed
CodeGen from PR 16564 in Azure/azure-rest-api-specs
Merge 9feb35494c8b204203a92b4d146778f35adcc6d4 into a4a7566677191f61b9466a89bf93559d3075c3b9
1 parent efe4a32 commit 9185a08

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

schemas/2021-08-08-preview/Microsoft.AlertsManagement.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
},
2020
"name": {
2121
"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"
2323
},
2424
"properties": {
2525
"oneOf": [
2626
{
27-
"$ref": "#/definitions/ActionRuleProperties"
27+
"$ref": "#/definitions/AlertProcessingRuleProperties"
2828
},
2929
{
3030
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
3131
}
3232
],
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"
3434
},
3535
"systemData": {
3636
"oneOf": [
@@ -89,7 +89,37 @@
8989
"properties": {},
9090
"description": "Action to be applied"
9191
},
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": {
93123
"type": "object",
94124
"properties": {
95125
"actions": {
@@ -118,11 +148,11 @@
118148
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
119149
}
120150
],
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."
122152
},
123153
"description": {
124154
"type": "string",
125-
"description": "Description of action rule"
155+
"description": "Description of alert processing rule"
126156
},
127157
"enabled": {
128158
"oneOf": [
@@ -134,7 +164,7 @@
134164
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
135165
}
136166
],
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"
138168
},
139169
"schedule": {
140170
"oneOf": [
@@ -145,7 +175,7 @@
145175
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
146176
}
147177
],
148-
"description": "Scheduling configuration for a given action rule"
178+
"description": "Scheduling configuration for a given alert processing rule"
149179
},
150180
"scopes": {
151181
"oneOf": [
@@ -159,44 +189,14 @@
159189
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
160190
}
161191
],
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."
163193
}
164194
},
165195
"required": [
166196
"actions",
167197
"scopes"
168198
],
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"
200200
},
201201
"Condition": {
202202
"type": "object",
@@ -257,7 +257,7 @@
257257
"description": "List of values to match for a given condition."
258258
}
259259
},
260-
"description": "Condition to trigger an action rule"
260+
"description": "Condition to trigger an alert processing rule"
261261
},
262262
"DailyRecurrence": {
263263
"type": "object",
@@ -390,7 +390,7 @@
390390
"description": "Scheduling time zone"
391391
}
392392
},
393-
"description": "Scheduling configuration for a given action rule"
393+
"description": "Scheduling configuration for a given alert processing rule"
394394
},
395395
"SystemData": {
396396
"type": "object",

0 commit comments

Comments
 (0)