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 98427fc2bb..0000000000 --- a/schemas/2019-05-05-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,430 +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" - }, - "alertRuleName": { - "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/2019-08-01/managementGroupDeploymentTemplate.json b/schemas/2019-08-01/managementGroupDeploymentTemplate.json index c4171c5769..1da6066913 100644 --- a/schemas/2019-08-01/managementGroupDeploymentTemplate.json +++ b/schemas/2019-08-01/managementGroupDeploymentTemplate.json @@ -521,9 +521,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2023-01-01/Microsoft.Advisor.json#/unknown_resourceDefinitions/recommendations_suppressions" }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.AlertsManagement.json#/managementGroup_resourceDefinitions/tenantActivityLogAlerts" - }, { "$ref": "https://schema.management.azure.com/schemas/2015-07-01/Microsoft.Authorization.Authz.json#/unknown_resourceDefinitions/roleAssignments" }, 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-07-22-preview/Microsoft.AlertsManagement.json b/schemas/2021-07-22-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index fda0fe73a9..0000000000 --- a/schemas/2021-07-22-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,277 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-07-22-preview/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": { - "prometheusRuleGroups": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2021-07-22-preview" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "type": "string", - "description": "The name of the rule group." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrometheusRuleGroupProperties" - }, - { - "$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/prometheusRuleGroups" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/prometheusRuleGroups" - } - }, - "definitions": { - "PrometheusRule": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrometheusRuleGroupAction" - } - }, - { - "$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. Only relevant for alerts." - }, - "alert": { - "type": "string", - "description": "the name of the alert rule." - }, - "annotations": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "annotations for rule group. Only relevant for alerts." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the flag that indicates whether the Prometheus rule is enabled." - }, - "expression": { - "type": "string", - "description": "the expression to run for the rule." - }, - "for": { - "type": "string", - "description": "the amount of time alert must be active before firing. Only relevant for alerts." - }, - "labels": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "labels for rule group. Only relevant for alerts." - }, - "record": { - "type": "string", - "description": "the name of the recording rule." - }, - "resolveConfiguration": { - "oneOf": [ - { - "$ref": "#/definitions/PrometheusRuleResolveConfiguration" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the Prometheus alert rule configuration." - }, - "severity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the severity of the alerts fired by the rule. Only relevant for alerts." - } - }, - "required": [ - "expression" - ] - }, - "PrometheusRuleGroupAction": { - "type": "object", - "properties": { - "actionGroupId": { - "type": "string", - "description": "The resource id of the action group to use." - }, - "actionProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an action group object." - } - }, - "description": "An alert action. Only relevant for alerts." - }, - "PrometheusRuleGroupProperties": { - "type": "object", - "properties": { - "clusterName": { - "type": "string", - "description": "the cluster name of the rule group evaluation." - }, - "description": { - "type": "string", - "description": "the description of the Prometheus rule group 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 Prometheus rule group is enabled." - }, - "interval": { - "type": "string", - "description": "the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes" - }, - "rules": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrometheusRule" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "defines the rules in the Prometheus rule group." - }, - "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 rule group is scoped to." - } - }, - "required": [ - "rules", - "scopes" - ], - "description": "An alert rule." - }, - "PrometheusRuleResolveConfiguration": { - "type": "object", - "properties": { - "autoResolved": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the flag that indicates whether or not to auto resolve a fired alert." - }, - "timeToResolve": { - "type": "string", - "description": "the duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format. Should be between 1 and 15 minutes" - } - }, - "description": "Specifies the Prometheus alert rule configuration." - } - } -} \ 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 d5b439946c..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 alert processing rule that needs to be created/updated." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertProcessingRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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." - }, - "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": { - "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 alert processing rule. Default value is all. Multiple values could be provided with comma separation." - }, - "description": { - "type": "string", - "description": "Description of alert processing rule." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates if the given alert processing 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 alert processing 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 alert processing rule." - } - }, - "required": [ - "actions", - "scopes" - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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 alert processing 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 alert processing 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/2021-08-08/Microsoft.AlertsManagement.json b/schemas/2021-08-08/Microsoft.AlertsManagement.json deleted file mode 100644 index a7a27a51b9..0000000000 --- a/schemas/2021-08-08/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2021-08-08/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" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the alert processing rule that needs to be created/updated." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertProcessingRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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." - }, - "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": { - "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 alert processing rule. Default value is all. Multiple values could be provided with comma separation." - }, - "description": { - "type": "string", - "description": "Description of alert processing rule." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates if the given alert processing 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 alert processing 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 alert processing rule." - } - }, - "required": [ - "actions", - "scopes" - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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 alert processing 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 alert processing 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/2023-03-01/Microsoft.AlertsManagement.json b/schemas/2023-03-01/Microsoft.AlertsManagement.json deleted file mode 100644 index 6c877b5a49..0000000000 --- a/schemas/2023-03-01/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": { - "prometheusRuleGroups": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-03-01" - ] - }, - "location": { - "type": "string", - "description": "The geo-location where the resource lives" - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[^:@/#{}%&+*<>?]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the rule group." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrometheusRuleGroupProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "An Azure Prometheus rule group." - }, - "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/prometheusRuleGroups" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/prometheusRuleGroups" - } - }, - "definitions": { - "PrometheusRule": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrometheusRuleGroupAction" - } - }, - { - "$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. Only relevant for alerts." - }, - "alert": { - "type": "string", - "description": "Alert rule name." - }, - "annotations": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The annotations clause specifies a set of informational labels that can be used to store longer additional information such as alert descriptions or runbook links. The annotation values can be templated." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable/disable rule." - }, - "expression": { - "type": "string", - "description": "The PromQL expression to evaluate. https://prometheus.io/docs/prometheus/latest/querying/basics/. Evaluated periodically as given by 'interval', and the result recorded as a new set of time series with the metric name as given by 'record'." - }, - "for": { - "type": "string", - "format": "duration", - "description": "The amount of time alert must be active before firing." - }, - "labels": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Labels to add or overwrite before storing the result." - }, - "record": { - "type": "string", - "description": "Recorded metrics name." - }, - "resolveConfiguration": { - "oneOf": [ - { - "$ref": "#/definitions/PrometheusRuleResolveConfiguration" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Specifies the Prometheus alert rule configuration." - }, - "severity": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The severity of the alerts fired by the rule. Must be between 0 and 4." - } - }, - "required": [ - "expression" - ], - "description": "An Azure Prometheus alerting or recording rule." - }, - "PrometheusRuleGroupAction": { - "type": "object", - "properties": { - "actionGroupId": { - "type": "string", - "description": "The resource id of the action group to use." - }, - "actionProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The properties of an action group object." - } - }, - "description": "An alert action. Only relevant for alerts." - }, - "PrometheusRuleGroupProperties": { - "type": "object", - "properties": { - "clusterName": { - "type": "string", - "description": "Apply rule to data from a specific cluster." - }, - "description": { - "type": "string", - "description": "Rule group description." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable/disable rule group." - }, - "interval": { - "type": "string", - "format": "duration", - "description": "The interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes" - }, - "rules": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/PrometheusRule" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Defines the rules in the Prometheus rule group." - }, - "scopes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Target Azure Monitor workspaces resource ids. This api-version is currently limited to creating with one scope. This may change in future." - } - }, - "required": [ - "rules", - "scopes" - ], - "description": "An Azure Prometheus rule group." - }, - "PrometheusRuleResolveConfiguration": { - "type": "object", - "properties": { - "autoResolved": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Enable alert auto-resolution." - }, - "timeToResolve": { - "type": "string", - "format": "duration", - "description": "Alert auto-resolution timeout." - } - }, - "description": "Specifies the Prometheus alert rule configuration." - } - } -} \ No newline at end of file diff --git a/schemas/2023-04-01-preview/Microsoft.AlertsManagement.json b/schemas/2023-04-01-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index 6c9bfca6c1..0000000000 --- a/schemas/2023-04-01-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-04-01-preview/Microsoft.AlertsManagement.json#", - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Microsoft.AlertsManagement", - "description": "Microsoft AlertsManagement Resource Types", - "resourceDefinitions": {}, - "managementGroup_resourceDefinitions": { - "tenantActivityLogAlerts": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2023-04-01-preview" - ] - }, - "location": { - "type": "string", - "default": "global", - "description": "The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'." - }, - "name": { - "oneOf": [ - { - "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The name of the Tenant Activity Log Alert rule." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "An Azure Activity Log Alert rule." - }, - "tags": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The tags of the resource." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.AlertsManagement/tenantActivityLogAlerts" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.AlertsManagement/tenantActivityLogAlerts" - } - }, - "definitions": { - "ActionGroup": { - "type": "object", - "properties": { - "actionGroupId": { - "type": "string", - "description": "The resource ID of the Action Group. This cannot be null or empty." - }, - "actionProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Predefined list of properties and configuration items for the action group." - }, - "webhookProperties": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." - } - }, - "required": [ - "actionGroupId" - ], - "description": "A pointer to an Azure Action Group." - }, - "ActionList": { - "type": "object", - "properties": { - "actionGroups": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ActionGroup" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The list of the Action Groups." - } - }, - "description": "A list of Activity Log Alert rule actions." - }, - "AlertRuleAllOfCondition": { - "type": "object", - "properties": { - "allOf": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/AlertRuleAnyOfOrLeafCondition" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The list of Activity Log Alert rule conditions." - } - }, - "required": [ - "allOf" - ], - "description": "An Activity Log Alert rule condition that is met when all its member conditions are met." - }, - "AlertRuleAnyOfOrLeafCondition": { - "type": "object", - "properties": { - "anyOf": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/AlertRuleLeafCondition" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met." - }, - "containsAny": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met." - }, - "equals": { - "type": "string", - "description": "The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met." - }, - "field": { - "type": "string", - "description": "The name of the Activity Log event's field that this condition will examine.\nThe possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'." - } - }, - "description": "An Activity Log Alert rule condition that is met when all its member conditions are met.\nEach condition can be of one of the following types:\n__Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.\n * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.\n _Please note, 'anyOf' should __not__ be set in a Leaf Condition._\n * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).\n _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._\n" - }, - "AlertRuleLeafCondition": { - "type": "object", - "properties": { - "containsAny": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met." - }, - "equals": { - "type": "string", - "description": "The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met." - }, - "field": { - "type": "string", - "description": "The name of the Activity Log event's field that this condition will examine.\nThe possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'." - } - }, - "description": "An Activity Log Alert rule condition that is met by comparing the field and value of an Activity Log event.\nThis condition must contain 'field' and either 'equals' or 'containsAny'." - }, - "AlertRuleProperties": { - "type": "object", - "properties": { - "actions": { - "oneOf": [ - { - "$ref": "#/definitions/ActionList" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A list of Activity Log Alert rule actions." - }, - "condition": { - "oneOf": [ - { - "$ref": "#/definitions/AlertRuleAllOfCondition" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "An Activity Log Alert rule condition that is met when all its member conditions are met." - }, - "description": { - "type": "string", - "description": "A description of this Activity Log Alert rule." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated." - }, - "scopes": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item." - }, - "tenantScope": { - "type": "string", - "description": "The tenant GUID. Must be provided for tenant-level and management group events rules." - } - }, - "required": [ - "actions", - "condition" - ], - "description": "An Azure Activity Log Alert rule." - } - } -} \ No newline at end of file diff --git a/schemas/2023-05-01-preview/Microsoft.AlertsManagement.json b/schemas/2023-05-01-preview/Microsoft.AlertsManagement.json deleted file mode 100644 index 0f5e5e068b..0000000000 --- a/schemas/2023-05-01-preview/Microsoft.AlertsManagement.json +++ /dev/null @@ -1,568 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-05-01-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": [ - "2023-05-01-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the alert processing rule that needs to be created/updated." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AlertProcessingRuleProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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" - }, - { - "$ref": "#/definitions/CorrelateAlerts" - } - ], - "properties": {}, - "description": "Action to be applied." - }, - "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": { - "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 alert processing rule. Default value is all. Multiple values could be provided with comma separation." - }, - "description": { - "type": "string", - "description": "Description of alert processing rule." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean", - "default": true - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates if the given alert processing 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 alert processing 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 alert processing rule." - } - }, - "required": [ - "actions", - "scopes" - ], - "description": "Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing 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 alert processing rule." - }, - "CorrelateAlerts": { - "type": "object", - "properties": { - "actionType": { - "type": "string", - "enum": [ - "CorrelateAlerts" - ] - }, - "correlateBy": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/CorrelateBy" - } - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The list of conditions for the alerts correlations." - }, - "correlationInterval": { - "type": "string", - "description": "The required duration (in ISO8601 format) for the alerts correlation." - }, - "notificationsForCorrelatedAlerts": { - "oneOf": [ - { - "type": "string", - "enum": [ - "NotifyAlways", - "SuppressAlways" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Indicates how to handle child alerts notifications." - }, - "priority": { - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The priority of this correlation." - } - }, - "required": [ - "actionType", - "correlateBy", - "correlationInterval", - "priority" - ], - "description": "Add logic for alerts correlation." - }, - "CorrelateBy": { - "type": "object", - "properties": { - "field": { - "type": "string", - "description": "The JPath of the property that the alerts should be correlated by." - } - }, - "description": "The logic for the correlation." - }, - "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 alert processing 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 5096f2c971..c1b03028e0 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -139,33 +139,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2023-06-01-preview/Microsoft.AgFoodPlatform.json#/resourceDefinitions/farmBeats_solutions" }, - { - "$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/2021-04-01/Microsoft.AlertsManagement.json#/resourceDefinitions/smartDetectorAlertRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-07-22-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/prometheusRuleGroups" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-08-08/Microsoft.AlertsManagement.json#/resourceDefinitions/actionRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2021-08-08-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/actionRules" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-03-01/Microsoft.AlertsManagement.json#/resourceDefinitions/prometheusRuleGroups" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-05-01-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/actionRules" - }, { "$ref": "https://schema.management.azure.com/schemas/2016-05-16/Microsoft.AnalysisServices.json#/resourceDefinitions/servers" },