diff --git a/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json b/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json index 4a0cd0794b..d5b439946c 100644 --- a/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json +++ b/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json @@ -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": [ @@ -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": { @@ -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": [ @@ -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": [ @@ -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": [ @@ -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": [ @@ -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", @@ -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", @@ -272,7 +272,7 @@ "required": [ "recurrenceType" ], - "description": "Daily recurrence object" + "description": "Daily recurrence object." }, "MonthlyRecurrence": { "type": "object", @@ -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", @@ -302,7 +302,7 @@ "daysOfMonth", "recurrenceType" ], - "description": "Monthly recurrence object" + "description": "Monthly recurrence object." }, "Recurrence": { "type": "object", @@ -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", @@ -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", @@ -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", @@ -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", @@ -487,7 +487,7 @@ "daysOfWeek", "recurrenceType" ], - "description": "Weekly recurrence object" + "description": "Weekly recurrence object." } } } \ No newline at end of file