diff --git a/schemas/2019-03-01/Microsoft.AlertsManagement.json b/schemas/2019-03-01/Microsoft.AlertsManagement.json deleted file mode 100644 index 38a4d364f2..0000000000 --- a/schemas/2019-03-01/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-03-01/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "microsoft.alertsManagement", - "description": "microsoft alertsManagement Resource Types", - "resourceDefinitions": { - "smartDetectorAlertRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-03-01" - ] - }, - "name": { - "type": "string", - "description": "The name of the alert rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule properties." - }, - "type": { - "type": "string", - "enum": [ - "microsoft.alertsManagement/smartDetectorAlertRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "microsoft.alertsManagement/smartDetectorAlertRules" - } - }, - "definitions": { - "ActionGroupsInformation": { - "type": "object", - "properties": { - "customEmailSubject": { - "type": "string", - "description": "An optional custom email subject to use in email notifications." - }, - "customWebhookPayload": { - "type": "string", - "description": "An optional custom web-hook payload to use in web-hook notifications." - }, - "groupIds": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Group resource IDs." - } - }, - "required": [ - "groupIds" - ], - "description": "The Action Groups information, used by the alert rule." - }, - "AlertRuleProperties": { - "type": "object", - "properties": { - "actionGroups": { - "oneOf": [ - { - "$ref": "#/definitions/ActionGroupsInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Groups information, used by the alert rule." - }, - "description": { - "type": "string", - "description": "The alert rule description." - }, - "detector": { - "oneOf": [ - { - "$ref": "#/definitions/Detector" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "frequency": { - "type": "string", - "format": "duration", - "description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes." - }, - "scope": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule resources scope." - }, - "severity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Sev0", - "Sev1", - "Sev2", - "Sev3", - "Sev4" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule severity." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule state." - }, - "throttling": { - "oneOf": [ - { - "$ref": "#/definitions/ThrottlingInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Optional throttling information for the alert rule." - } - }, - "required": [ - "actionGroups", - "detector", - "frequency", - "scope", - "severity", - "state" - ], - "description": "The alert rule properties." - }, - "Detector": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "The Smart Detector description. By default this is not populated, unless it's specified in expandDetector" - }, - "id": { - "type": "string", - "description": "The detector id." - }, - "imagePaths": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector" - }, - "name": { - "type": "string", - "description": "The Smart Detector name. By default this is not populated, unless it's specified in expandDetector" - }, - "parameters": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector's parameters.'" - }, - "supportedResourceTypes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector" - } - }, - "required": [ - "id" - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "ThrottlingInformation": { - "type": "object", - "properties": { - "duration": { - "type": "string", - "format": "duration", - "description": "The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes" - } - }, - "description": "Optional throttling information for the alert rule." - } - } -} \ No newline at end of file diff --git a/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json b/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index 662a8d73fb..0000000000 --- a/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": { - "actionRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-05-05-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of action rule that needs to be created/updated" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ActionRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Action rule properties defining scope, conditions, suppression logic for action rule" - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.AlertsManagement/actionRules" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/actionRules" - } - }, - "definitions": { - "ActionGroup": { - "type": "object", - "properties": { - "actionGroupId": { - "type": "string", - "description": "Action group to trigger if action rule matches" - }, - "type": { - "type": "string", - "enum": [ - "ActionGroup" - ] - } - }, - "required": [ - "actionGroupId", - "type" - ], - "description": "Action rule with action group configuration" - }, - "ActionRuleProperties": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/Suppression" - }, - { - "$ref": "#/definitions/ActionGroup" - }, - { - "$ref": "#/definitions/Diagnostics" - } - ], - "properties": { - "conditions": { - "oneOf": [ - { - "$ref": "#/definitions/Conditions" - }, - { - "$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": { - "type": "string", - "description": "Description of action rule" - }, - "scope": { - "oneOf": [ - { - "$ref": "#/definitions/Scope" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Target scope for a given action rule. By default scope will be the subscription. User can also provide list of resource groups or list of resources from the scope subscription as well." - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates if the given action rule is enabled or disabled." - } - }, - "description": "Action rule properties defining scope, conditions, suppression logic for action rule" - }, - "Condition": { - "type": "object", - "properties": { - "operator": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Equals", - "NotEquals", - "Contains", - "DoesNotContain" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "operator for a given condition." - }, - "values": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "list of values to match for a given condition." - } - }, - "description": "condition to trigger an action rule" - }, - "Conditions": { - "type": "object", - "properties": { - "alertContext": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "alertRuleId": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "description": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "monitorCondition": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "monitorService": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "severity": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - }, - "targetResourceType": { - "oneOf": [ - { - "$ref": "#/definitions/Condition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "condition to trigger an action rule" - } - }, - "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." - }, - "Diagnostics": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Diagnostics" - ] - } - }, - "required": [ - "type" - ], - "description": "Action rule with diagnostics configuration" - }, - "Scope": { - "type": "object", - "properties": { - "scopeType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "ResourceGroup", - "Resource", - "Subscription" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "type of target scope." - }, - "values": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "list of ARM IDs of the given scope type which will be the target of the given action rule." - } - }, - "description": "Target scope for a given action rule. By default scope will be the subscription. User can also provide list of resource groups or list of resources from the scope subscription as well." - }, - "Suppression": { - "type": "object", - "properties": { - "suppressionConfig": { - "oneOf": [ - { - "$ref": "#/definitions/SuppressionConfig" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Suppression logic for a given action rule" - }, - "type": { - "type": "string", - "enum": [ - "Suppression" - ] - } - }, - "required": [ - "suppressionConfig", - "type" - ], - "description": "Action rule with suppression configuration" - }, - "SuppressionConfig": { - "type": "object", - "properties": { - "recurrenceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Always", - "Once", - "Daily", - "Weekly", - "Monthly" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies when the suppression should be applied." - }, - "schedule": { - "oneOf": [ - { - "$ref": "#/definitions/SuppressionSchedule" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Schedule for a given suppression configuration." - } - }, - "required": [ - "recurrenceType" - ], - "description": "Suppression logic for a given action rule" - }, - "SuppressionSchedule": { - "type": "object", - "properties": { - "endDate": { - "type": "string", - "description": "End date for suppression" - }, - "endTime": { - "type": "string", - "description": "End date for suppression" - }, - "recurrenceValues": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "integer" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the values for recurrence pattern" - }, - "startDate": { - "type": "string", - "description": "Start date for suppression" - }, - "startTime": { - "type": "string", - "description": "Start time for suppression" - } - }, - "description": "Schedule for a given suppression configuration." - } - } -} \ No newline at end of file diff --git a/schemas/2019-06-01/Microsoft.AlertsManagement.json b/schemas/2019-06-01/Microsoft.AlertsManagement.json deleted file mode 100644 index e3a242822a..0000000000 --- a/schemas/2019-06-01/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "microsoft.alertsManagement", - "description": "microsoft alertsManagement Resource Types", - "resourceDefinitions": { - "smartDetectorAlertRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-06-01" - ] - }, - "location": { - "type": "string", - "default": "global", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "The name of the alert rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule properties." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "microsoft.alertsManagement/smartDetectorAlertRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "microsoft.alertsManagement/smartDetectorAlertRules" - } - }, - "definitions": { - "ActionGroupsInformation": { - "type": "object", - "properties": { - "customEmailSubject": { - "type": "string", - "description": "An optional custom email subject to use in email notifications." - }, - "customWebhookPayload": { - "type": "string", - "description": "An optional custom web-hook payload to use in web-hook notifications." - }, - "groupIds": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Group resource IDs." - } - }, - "required": [ - "groupIds" - ], - "description": "The Action Groups information, used by the alert rule." - }, - "AlertRuleProperties": { - "type": "object", - "properties": { - "actionGroups": { - "oneOf": [ - { - "$ref": "#/definitions/ActionGroupsInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Groups information, used by the alert rule." - }, - "description": { - "type": "string", - "description": "The alert rule description." - }, - "detector": { - "oneOf": [ - { - "$ref": "#/definitions/Detector" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "frequency": { - "type": "string", - "format": "duration", - "description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes." - }, - "scope": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule resources scope." - }, - "severity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Sev0", - "Sev1", - "Sev2", - "Sev3", - "Sev4" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule severity." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule state." - }, - "throttling": { - "oneOf": [ - { - "$ref": "#/definitions/ThrottlingInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Optional throttling information for the alert rule." - } - }, - "required": [ - "actionGroups", - "detector", - "frequency", - "scope", - "severity", - "state" - ], - "description": "The alert rule properties." - }, - "Detector": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "The Smart Detector description. By default this is not populated, unless it's specified in expandDetector" - }, - "id": { - "type": "string", - "description": "The detector id." - }, - "imagePaths": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector" - }, - "name": { - "type": "string", - "description": "The Smart Detector name. By default this is not populated, unless it's specified in expandDetector" - }, - "parameters": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector's parameters.'" - }, - "supportedResourceTypes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector" - } - }, - "required": [ - "id" - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "ThrottlingInformation": { - "type": "object", - "properties": { - "duration": { - "type": "string", - "format": "duration", - "description": "The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes" - } - }, - "description": "Optional throttling information for the alert rule." - } - } -} \ No newline at end of file diff --git a/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json b/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index b69ef31f34..0000000000 --- a/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": { - "resourceHealthAlertRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2020-08-04-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/HealthAlertProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "An alert rule." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.AlertsManagement/resourceHealthAlertRules" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/resourceHealthAlertRules" - } - }, - "definitions": { - "HealthAlertAction": { - "type": "object", - "properties": { - "actionGroupId": { - "type": "string", - "description": "the id of the action group to use." - }, - "webHookProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of a webhook object." - } - }, - "description": "An alert action." - }, - "HealthAlertCriteria": { - "type": "object", - "properties": { - "allOf": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/HealthAlertCriterion" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The list of metric criteria for this 'all of' operation. " - } - }, - "description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria." - }, - "HealthAlertCriterion": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/VmGuestHealthAlertCriterion" - } - ], - "properties": { - "additionalProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Unmatched properties from the message are deserialized this collection" - } - }, - "description": "The rule criterion that defines the conditions of the alert rule." - }, - "HealthAlertProperties": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/HealthAlertAction" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." - }, - "criteria": { - "oneOf": [ - { - "$ref": "#/definitions/HealthAlertCriteria" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria." - }, - "description": { - "type": "string", - "description": "the description of the health alert that will be included in the alert email." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the flag that indicates whether the health alert is enabled." - }, - "scopes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the list of resource id's that this health alert is scoped to." - } - }, - "required": [ - "criteria", - "description", - "enabled" - ], - "description": "An alert rule." - }, - "HealthState": { - "type": "object", - "properties": { - "healthStateName": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Warning", - "Critical" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Health state name." - }, - "severity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Severity of alert fired" - } - }, - "required": [ - "healthStateName", - "severity" - ], - "description": "Specifies the health state to alert on and the corresponding severity" - }, - "VmGuestHealthAlertCriterion": { - "type": "object", - "properties": { - "healthStates": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/HealthState" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Health states to alert on" - }, - "monitorNames": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Names of health monitor on which to define alert" - }, - "monitorTypes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Names of health monitor type on which to define alert" - }, - "namespace": { - "type": "string", - "enum": [ - "GuestVmHealth" - ] - } - }, - "required": [ - "healthStates", - "namespace" - ], - "description": "Specifies the health alert criteria to alert on." - } - } -} \ No newline at end of file diff --git a/schemas/2021-04-01/Microsoft.AlertsManagement.json b/schemas/2021-04-01/Microsoft.AlertsManagement.json deleted file mode 100644 index 9db2d215aa..0000000000 --- a/schemas/2021-04-01/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "microsoft.alertsManagement", - "description": "microsoft alertsManagement Resource Types", - "resourceDefinitions": { - "smartDetectorAlertRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-04-01" - ] - }, - "location": { - "type": "string", - "default": "global", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "The name of the alert rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule properties." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The resource tags." - }, - "type": { - "type": "string", - "enum": [ - "microsoft.alertsManagement/smartDetectorAlertRules" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "microsoft.alertsManagement/smartDetectorAlertRules" - } - }, - "definitions": { - "ActionGroupsInformation": { - "type": "object", - "properties": { - "customEmailSubject": { - "type": "string", - "description": "An optional custom email subject to use in email notifications." - }, - "customWebhookPayload": { - "type": "string", - "description": "An optional custom web-hook payload to use in web-hook notifications." - }, - "groupIds": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Group resource IDs." - } - }, - "required": [ - "groupIds" - ], - "description": "The Action Groups information, used by the alert rule." - }, - "AlertRuleProperties": { - "type": "object", - "properties": { - "actionGroups": { - "oneOf": [ - { - "$ref": "#/definitions/ActionGroupsInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The Action Groups information, used by the alert rule." - }, - "description": { - "type": "string", - "description": "The alert rule description." - }, - "detector": { - "oneOf": [ - { - "$ref": "#/definitions/Detector" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "frequency": { - "type": "string", - "format": "duration", - "description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector." - }, - "scope": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule resources scope." - }, - "severity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Sev0", - "Sev1", - "Sev2", - "Sev3", - "Sev4" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule severity." - }, - "state": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The alert rule state." - }, - "throttling": { - "oneOf": [ - { - "$ref": "#/definitions/ThrottlingInformation" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Optional throttling information for the alert rule." - } - }, - "required": [ - "actionGroups", - "detector", - "frequency", - "scope", - "severity", - "state" - ], - "description": "The alert rule properties." - }, - "Detector": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The detector id." - }, - "parameters": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": {} - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The detector's parameters.'" - } - }, - "required": [ - "id" - ], - "description": "The detector information. By default this is not populated, unless it's specified in expandDetector" - }, - "ThrottlingInformation": { - "type": "object", - "properties": { - "duration": { - "type": "string", - "format": "duration", - "description": "The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes" - } - }, - "description": "Optional throttling information for the alert rule." - } - } -} \ No newline at end of file diff --git a/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json b/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index 4a0cd0794b..0000000000 --- a/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": { - "actionRules": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-08-08-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the action rule that needs to be created/updated" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ActionRuleProperties" - }, - { - "$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" - }, - "systemData": { - "oneOf": [ - { - "$ref": "#/definitions/SystemData" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Metadata pertaining to creation and last modification of the resource." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Resource tags" - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.AlertsManagement/actionRules" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/actionRules" - } - }, - "definitions": { - "Action": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/AddActionGroups" - }, - { - "$ref": "#/definitions/RemoveAllActionGroups" - } - ], - "properties": {}, - "description": "Action to be applied" - }, - "ActionRuleProperties": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Action" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Actions to be applied" - }, - "conditions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Condition" - } - }, - { - "$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": { - "type": "string", - "description": "Description of action rule" - }, - "enabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates if the given action rule is enabled or disabled" - }, - "schedule": { - "oneOf": [ - { - "$ref": "#/definitions/Schedule" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Scheduling configuration for a given action rule" - }, - "scopes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$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." - } - }, - "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" - }, - "Condition": { - "type": "object", - "properties": { - "field": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Severity", - "MonitorService", - "MonitorCondition", - "SignalType", - "TargetResourceType", - "TargetResource", - "TargetResourceGroup", - "AlertRuleId", - "AlertRuleName", - "Description", - "AlertContext" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Field for a given condition." - }, - "operator": { - "oneOf": [ - { - "type": "string", - "enum": [ - "Equals", - "NotEquals", - "Contains", - "DoesNotContain" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Operator for a given condition." - }, - "values": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of values to match for a given condition." - } - }, - "description": "Condition to trigger an action rule" - }, - "DailyRecurrence": { - "type": "object", - "properties": { - "recurrenceType": { - "type": "string", - "enum": [ - "Daily" - ] - } - }, - "required": [ - "recurrenceType" - ], - "description": "Daily recurrence object" - }, - "MonthlyRecurrence": { - "type": "object", - "properties": { - "daysOfMonth": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "integer" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the values for monthly recurrence pattern" - }, - "recurrenceType": { - "type": "string", - "enum": [ - "Monthly" - ] - } - }, - "required": [ - "daysOfMonth", - "recurrenceType" - ], - "description": "Monthly recurrence object" - }, - "Recurrence": { - "type": "object", - "oneOf": [ - { - "$ref": "#/definitions/DailyRecurrence" - }, - { - "$ref": "#/definitions/WeeklyRecurrence" - }, - { - "$ref": "#/definitions/MonthlyRecurrence" - } - ], - "properties": { - "endTime": { - "type": "string", - "description": "End time for recurrence" - }, - "startTime": { - "type": "string", - "description": "Start time for recurrence" - } - }, - "description": "Recurrence object" - }, - "RemoveAllActionGroups": { - "type": "object", - "properties": { - "actionType": { - "type": "string", - "enum": [ - "RemoveAllActionGroups" - ] - } - }, - "required": [ - "actionType" - ], - "description": "Indicates if all action groups should be removed" - }, - "Schedule": { - "type": "object", - "properties": { - "effectiveFrom": { - "oneOf": [ - { - "type": "string", - "pattern": "^(?:(\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?))$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Scheduling effective from time. Date-Time in ISO-8601 format without timezone suffix." - }, - "effectiveUntil": { - "oneOf": [ - { - "type": "string", - "pattern": "^(?:(\\d{4}-\\d{2}-\\d{2})T(\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?))$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Scheduling effective until time. Date-Time in ISO-8601 format without timezone suffix." - }, - "recurrences": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/Recurrence" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "List of recurrences" - }, - "timeZone": { - "type": "string", - "description": "Scheduling time zone" - } - }, - "description": "Scheduling configuration for a given action rule" - }, - "SystemData": { - "type": "object", - "properties": { - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource creation (UTC)." - }, - "createdBy": { - "type": "string", - "description": "The identity that created the resource." - }, - "createdByType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The type of identity that created the resource." - }, - "lastModifiedAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource last modification (UTC)" - }, - "lastModifiedBy": { - "type": "string", - "description": "The identity that last modified the resource." - }, - "lastModifiedByType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The type of identity that last modified the resource." - } - }, - "description": "Metadata pertaining to creation and last modification of the resource." - }, - "WeeklyRecurrence": { - "type": "object", - "properties": { - "daysOfWeek": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ] - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the values for weekly recurrence pattern" - }, - "recurrenceType": { - "type": "string", - "enum": [ - "Weekly" - ] - } - }, - "required": [ - "daysOfWeek", - "recurrenceType" - ], - "description": "Weekly recurrence object" - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 985f436ae1..ae5b120b85 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -55,24 +55,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-05-12-preview/Microsoft.AgFoodPlatform.json#/resourceDefinitions/farmBeats_extensions" }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-03-01/Microsoft.AlertsManagement.json#/resourceDefinitions/smartDetectorAlertRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/actionRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.AlertsManagement.json#/resourceDefinitions/smartDetectorAlertRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/resourceHealthAlertRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.AlertsManagement.json#/resourceDefinitions/smartDetectorAlertRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/actionRules" - }, { "$ref": "https://schema.management.azure.com/schemas/2016-05-16/Microsoft.AnalysisServices.json#/resourceDefinitions/servers" },