Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 55 additions & 55 deletions schemas/2021-08-08-preview/Microsoft.AlertsManagement.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
},
"name": {
"type": "string",
"description": "The name of the action rule that needs to be created/updated"
"description": "The name of the alert processing rule that needs to be created/updated."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ActionRuleProperties"
"$ref": "#/definitions/AlertProcessingRuleProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Action rule properties defining scopes, conditions and scheduling logic for action rule"
"description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule."
},
"systemData": {
"oneOf": [
Expand Down Expand Up @@ -87,9 +87,39 @@
}
],
"properties": {},
"description": "Action to be applied"
"description": "Action to be applied."
},
"ActionRuleProperties": {
"AddActionGroups": {
"type": "object",
"properties": {
"actionGroupIds": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of action group Ids to add to alert processing rule."
},
"actionType": {
"type": "string",
"enum": [
"AddActionGroups"
]
}
},
"required": [
"actionGroupIds",
"actionType"
],
"description": "Add action groups to alert processing rule."
},
"AlertProcessingRuleProperties": {
"type": "object",
"properties": {
"actions": {
Expand All @@ -104,7 +134,7 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Actions to be applied"
"description": "Actions to be applied."
},
"conditions": {
"oneOf": [
Expand All @@ -118,11 +148,11 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"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."
"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."
},
"description": {
"type": "string",
"description": "Description of action rule"
"description": "Description of alert processing rule."
},
"enabled": {
"oneOf": [
Expand All @@ -134,7 +164,7 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Indicates if the given action rule is enabled or disabled"
"description": "Indicates if the given alert processing rule is enabled or disabled."
},
"schedule": {
"oneOf": [
Expand All @@ -145,7 +175,7 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Scheduling configuration for a given action rule"
"description": "Scheduling configuration for a given alert processing rule."
},
"scopes": {
"oneOf": [
Expand All @@ -159,44 +189,14 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of ARM IDs which will be the target of the given action rule."
"description": "List of ARM IDs which will be the target of the given alert processing rule."
}
},
"required": [
"actions",
"scopes"
],
"description": "Action rule properties defining scopes, conditions and scheduling logic for action rule"
},
"AddActionGroups": {
"type": "object",
"properties": {
"actionGroupIds": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of action group Ids to add to action rule"
},
"actionType": {
"type": "string",
"enum": [
"AddActionGroups"
]
}
},
"required": [
"actionGroupIds",
"actionType"
],
"description": "Add action groups to action rule"
"description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule."
},
"Condition": {
"type": "object",
Expand Down Expand Up @@ -257,7 +257,7 @@
"description": "List of values to match for a given condition."
}
},
"description": "Condition to trigger an action rule"
"description": "Condition to trigger an alert processing rule."
},
"DailyRecurrence": {
"type": "object",
Expand All @@ -272,7 +272,7 @@
"required": [
"recurrenceType"
],
"description": "Daily recurrence object"
"description": "Daily recurrence object."
},
"MonthlyRecurrence": {
"type": "object",
Expand All @@ -289,7 +289,7 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the values for monthly recurrence pattern"
"description": "Specifies the values for monthly recurrence pattern."
},
"recurrenceType": {
"type": "string",
Expand All @@ -302,7 +302,7 @@
"daysOfMonth",
"recurrenceType"
],
"description": "Monthly recurrence object"
"description": "Monthly recurrence object."
},
"Recurrence": {
"type": "object",
Expand All @@ -320,14 +320,14 @@
"properties": {
"endTime": {
"type": "string",
"description": "End time for recurrence"
"description": "End time for recurrence."
},
"startTime": {
"type": "string",
"description": "Start time for recurrence"
"description": "Start time for recurrence."
}
},
"description": "Recurrence object"
"description": "Recurrence object."
},
"RemoveAllActionGroups": {
"type": "object",
Expand All @@ -342,7 +342,7 @@
"required": [
"actionType"
],
"description": "Indicates if all action groups should be removed"
"description": "Indicates if all action groups should be removed."
},
"Schedule": {
"type": "object",
Expand Down Expand Up @@ -383,14 +383,14 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of recurrences"
"description": "List of recurrences."
},
"timeZone": {
"type": "string",
"description": "Scheduling time zone"
"description": "Scheduling time zone."
}
},
"description": "Scheduling configuration for a given action rule"
"description": "Scheduling configuration for a given alert processing rule."
},
"SystemData": {
"type": "object",
Expand Down Expand Up @@ -474,7 +474,7 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the values for weekly recurrence pattern"
"description": "Specifies the values for weekly recurrence pattern."
},
"recurrenceType": {
"type": "string",
Expand All @@ -487,7 +487,7 @@
"daysOfWeek",
"recurrenceType"
],
"description": "Weekly recurrence object"
"description": "Weekly recurrence object."
}
}
}