diff --git a/Commands/monitor/metrics/alert/_create.md b/Commands/monitor/metrics/alert/_create.md index 5b914da4f..27139c99c 100644 --- a/Commands/monitor/metrics/alert/_create.md +++ b/Commands/monitor/metrics/alert/_create.md @@ -7,3 +7,7 @@ Create a metric-based alert rule. ### [2018-03-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2018-03-01.xml) **Stable** + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + diff --git a/Commands/monitor/metrics/alert/_delete.md b/Commands/monitor/metrics/alert/_delete.md index 11edc9660..0c44dada0 100644 --- a/Commands/monitor/metrics/alert/_delete.md +++ b/Commands/monitor/metrics/alert/_delete.md @@ -14,3 +14,14 @@ Delete a metrics-based alert rule. ```bash monitor metrics alert delete --name MyAlertRule --resource-group MyResourceGroup ``` + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + + +#### examples + +- Delete a metrics-based alert rule. + ```bash + monitor metrics alert delete --name MyAlertRule --resource-group MyResourceGroup + ``` diff --git a/Commands/monitor/metrics/alert/_list.md b/Commands/monitor/metrics/alert/_list.md index d1d7a35b4..ff5b7a10f 100644 --- a/Commands/monitor/metrics/alert/_list.md +++ b/Commands/monitor/metrics/alert/_list.md @@ -15,3 +15,15 @@ List metric-based alert rules. ```bash monitor metrics alert list --resource-group MyResourceGroup ``` + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.xml) **Stable** + + + + +#### examples + +- List metric-based alert rules. + ```bash + monitor metrics alert list --resource-group MyResourceGroup + ``` diff --git a/Commands/monitor/metrics/alert/_show.md b/Commands/monitor/metrics/alert/_show.md index e975376a7..3b0bb3603 100644 --- a/Commands/monitor/metrics/alert/_show.md +++ b/Commands/monitor/metrics/alert/_show.md @@ -14,3 +14,14 @@ Show a metrics-based alert rule. ```bash --name MyAlertRule --resource-group MyResourceGroup ``` + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + + +#### examples + +- Show a metrics-based alert rule. + ```bash + --name MyAlertRule --resource-group MyResourceGroup + ``` diff --git a/Commands/monitor/metrics/alert/_update.md b/Commands/monitor/metrics/alert/_update.md index 5c458f8ab..1a05c5d0e 100644 --- a/Commands/monitor/metrics/alert/_update.md +++ b/Commands/monitor/metrics/alert/_update.md @@ -14,3 +14,14 @@ Update a metric-based alert rule. ```bash monitor metrics alert update --enabled false --name MyAlertRule --resource-group MyResourceGroup ``` + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + + +#### examples + +- Disable/Enable a metric-based alert rule. + ```bash + monitor metrics alert update --enabled false --name MyAlertRule --resource-group MyResourceGroup + ``` diff --git a/Commands/monitor/metrics/alert/identity/_assign.md b/Commands/monitor/metrics/alert/identity/_assign.md new file mode 100644 index 000000000..2071af7e7 --- /dev/null +++ b/Commands/monitor/metrics/alert/identity/_assign.md @@ -0,0 +1,9 @@ +# [Command] _monitor metrics alert identity assign_ + +Assign the user or system managed identities. + +## Versions + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + diff --git a/Commands/monitor/metrics/alert/identity/_remove.md b/Commands/monitor/metrics/alert/identity/_remove.md new file mode 100644 index 000000000..272021ce4 --- /dev/null +++ b/Commands/monitor/metrics/alert/identity/_remove.md @@ -0,0 +1,9 @@ +# [Command] _monitor metrics alert identity remove_ + +Remove the user or system managed identities. + +## Versions + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + diff --git a/Commands/monitor/metrics/alert/identity/_show.md b/Commands/monitor/metrics/alert/identity/_show.md new file mode 100644 index 000000000..91d1dc8f6 --- /dev/null +++ b/Commands/monitor/metrics/alert/identity/_show.md @@ -0,0 +1,9 @@ +# [Command] _monitor metrics alert identity show_ + +Show the details of managed identities. + +## Versions + +### [2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml) **Stable** + + diff --git a/Commands/monitor/metrics/alert/identity/readme.md b/Commands/monitor/metrics/alert/identity/readme.md new file mode 100644 index 000000000..13dea0322 --- /dev/null +++ b/Commands/monitor/metrics/alert/identity/readme.md @@ -0,0 +1,14 @@ +# [Group] _monitor metrics alert identity_ + +Manage Identity + +## Commands + +- [assign](/Commands/monitor/metrics/alert/identity/_assign.md) +: Assign the user or system managed identities. + +- [remove](/Commands/monitor/metrics/alert/identity/_remove.md) +: Remove the user or system managed identities. + +- [show](/Commands/monitor/metrics/alert/identity/_show.md) +: Show the details of managed identities. diff --git a/Commands/monitor/metrics/alert/readme.md b/Commands/monitor/metrics/alert/readme.md index e3e179ef1..16903d56c 100644 --- a/Commands/monitor/metrics/alert/readme.md +++ b/Commands/monitor/metrics/alert/readme.md @@ -2,6 +2,11 @@ Manage near-realtime metric alert rules. +## Subgroups + +- [identity](/Commands/monitor/metrics/alert/identity/readme.md) +: Manage Identity + ## Commands - [create](/Commands/monitor/metrics/alert/_create.md) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.json new file mode 100644 index 000000000..150d149cd --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.insights/metricalerts", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cw==/V/MjAyNC0wMy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRz/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor metrics alert", "commands": [{"name": "list", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/providers/microsoft.insights/metricalerts", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lkluc2lnaHRzL21ldHJpY0FsZXJ0cw==/V/MjAyNC0wMy0wMS1wcmV2aWV3"}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRz/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "conditions": [{"var": "$Condition_MetricAlerts_ListBySubscription", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_MetricAlerts_ListByResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_MetricAlerts_ListBySubscription"], "operationId": "MetricAlerts_ListBySubscription", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}, "identifiers": ["id"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_MetricAlerts_ListByResourceGroup"], "operationId": "MetricAlerts_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}, "identifiers": ["id"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.xml new file mode 100644 index 000000000..f9a85abfe --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.xml @@ -0,0 +1,561 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.md new file mode 100644 index 000000000..ed3182736 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.md @@ -0,0 +1 @@ +Reference [/subscriptions/{}/providers/microsoft.insights/metricalerts 2024-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHM=/2024-03-01-preview.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.json new file mode 100644 index 000000000..9170cf4fd --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "monitor metrics alert", "commands": [{"name": "show", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "MetricAlerts_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "delete", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "MetricAlerts_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": ""}, {"name": "create", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Identity", "help": {"short": "Set the system managed identity."}}, {"type": "string", "var": "$parameters.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "Type of managed service identity. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}, {"type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The list of user identities associated with the resource. The user identity dictionary key references will be Azure resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."}, "additionalProps": {"item": {"blank": {"value": {}}, "type": "object"}}}]}, {"name": "Parameters", "args": [{"type": "ResourceLocation", "var": "$parameters.location", "options": ["l", "location"], "required": true, "group": "Parameters", "help": {"short": "Resource location"}}, {"type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "Parameters", "help": {"short": "Resource tags"}, "additionalProps": {"item": {"type": "string"}}}]}, {"name": "Properties", "args": [{"type": "object", "var": "$parameters.properties.actionProperties", "options": ["action-properties"], "group": "Properties", "help": {"short": "The properties of an action properties."}, "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "var": "$parameters.properties.actions", "options": ["actions"], "group": "Properties", "help": {"short": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."}, "item": {"type": "object", "args": [{"type": "string", "var": "$parameters.properties.actions[].actionGroupId", "options": ["action-group-id"], "help": {"short": "the id of the action group to use."}}, {"type": "object", "var": "$parameters.properties.actions[].webHookProperties", "options": ["web-hook-properties"], "help": {"short": "This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook."}, "additionalProps": {"item": {"type": "string"}}}]}}, {"type": "boolean", "var": "$parameters.properties.autoMitigate", "options": ["auto-mitigate"], "group": "Properties", "help": {"short": "the flag that indicates whether the alert should be auto resolved or not. The default is true."}}, {"type": "object", "var": "$parameters.properties.criteria", "options": ["criteria"], "required": true, "group": "Properties", "help": {"short": "defines the specific alert criteria information."}, "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria", "options": ["microsoft-azure-monitor-multiple-resource-multiple-metric-criteria"], "args": [{"type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf", "options": ["all-of"], "help": {"short": "the list of multiple metric criteria for this 'all of' operation. "}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion", "options": ["dynamic-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "options": ["alert-sensitivity"], "required": true, "help": {"short": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern."}, "enum": {"items": [{"name": "High", "value": "High"}, {"name": "Low", "value": "Low"}, {"name": "Medium", "value": "Medium"}]}}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods", "options": ["failing-periods"], "required": true, "help": {"short": "The minimum number of violations required within the selected lookback time window required to raise an alert."}, "args": [{"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.minFailingPeriodsToAlert", "options": ["min-failing-periods-to-alert"], "required": true, "help": {"short": "The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods."}}, {"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.numberOfEvaluationPeriods", "options": ["number-of-evaluation-periods"], "required": true, "help": {"short": "The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points."}}]}, {"type": "dateTime", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "options": ["ignore-data-before"], "help": {"short": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"}, "format": {"protocol": "iso"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.operator", "options": ["operator"], "required": true, "help": {"short": "The operator used to compare the metric value against the threshold."}, "enum": {"items": [{"name": "GreaterOrLessThan", "value": "GreaterOrLessThan"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "LessThan", "value": "LessThan"}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion", "options": ["static-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.operator", "options": ["operator"], "required": true, "help": {"short": "the criteria operator."}, "enum": {"items": [{"name": "Equals", "value": "Equals"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "GreaterThanOrEqual", "value": "GreaterThanOrEqual"}, {"name": "LessThan", "value": "LessThan"}, {"name": "LessThanOrEqual", "value": "LessThanOrEqual"}]}}, {"type": "float64", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.threshold", "options": ["threshold"], "required": true, "help": {"short": "the criteria threshold value that activates the alert."}}]}, {"type": "array<@MetricDimension_create>", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].dimensions", "options": ["dimensions"], "help": {"short": "List of dimension conditions."}, "item": {"type": "@MetricDimension_create"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricName", "options": ["metric-name"], "required": true, "help": {"short": "Name of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricNamespace", "options": ["metric-namespace"], "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].name", "options": ["name"], "required": true, "help": {"short": "Name of the criteria."}}, {"type": "boolean", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].skipMetricValidation", "options": ["skip-metric-validation"], "help": {"short": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].timeAggregation", "options": ["time-aggregation"], "required": true, "help": {"short": "the criteria time aggregation types."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Maximum", "value": "Maximum"}, {"name": "Minimum", "value": "Minimum"}, {"name": "Total", "value": "Total"}]}}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria", "options": ["microsoft-azure-monitor-prom-ql-criteria"], "args": [{"type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf", "options": ["all-of"], "help": {"short": "The list of promQL criteria. Alert will be raised when all conditions are met."}, "item": {"type": "object", "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion", "options": ["dynamic-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "options": ["alert-sensitivity"], "required": true, "help": {"short": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "High", "value": "High"}, {"name": "Low", "value": "Low"}, {"name": "Medium", "value": "Medium"}]}}, {"type": "dateTime", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "options": ["ignore-data-before"], "help": {"short": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"}, "format": {"protocol": "iso"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.operator", "options": ["operator"], "required": true, "help": {"short": "The operator used to compare the metric value against the threshold. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "GreaterOrLessThan", "value": "GreaterOrLessThan"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "LessThan", "value": "LessThan"}]}}]}, {"blank": {"value": {}}, "type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].StaticThresholdCriterion", "options": ["static-threshold-criterion"]}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].name", "options": ["name"], "required": true, "help": {"short": "Name of the criteria."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].query", "options": ["query"], "required": true, "help": {"short": "The query used to evaluate the alert rule"}}]}}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods", "options": ["failing-periods"], "help": {"short": "Configuration for failing periods in query-based alerts."}, "args": [{"type": "duration", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods.for", "options": ["for"], "required": true, "help": {"short": "The amount of time (in ISO 8601 duration format) alert must be active before firing."}}]}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria", "options": ["microsoft-azure-monitor-single-resource-multiple-metric-criteria"], "args": [{"type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf", "options": ["all-of"], "help": {"short": "The list of metric criteria for this 'all of' operation. "}, "item": {"type": "object", "args": [{"type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].dimensions", "options": ["dimensions"], "help": {"short": "List of dimension conditions."}, "item": {"type": "object", "args": [{"type": "string", "var": "@MetricDimension_create.name", "options": ["name"], "required": true, "help": {"short": "Name of the dimension."}}, {"type": "string", "var": "@MetricDimension_create.operator", "options": ["operator"], "required": true, "help": {"short": "the dimension operator. Only 'Include' and 'Exclude' are supported"}}, {"type": "array", "var": "@MetricDimension_create.values", "options": ["values"], "required": true, "help": {"short": "list of dimension values."}, "item": {"type": "string"}}], "cls": "MetricDimension_create"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricName", "options": ["metric-name"], "required": true, "help": {"short": "Name of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricNamespace", "options": ["metric-namespace"], "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].name", "options": ["name"], "required": true, "help": {"short": "Name of the criteria."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].operator", "options": ["operator"], "required": true, "help": {"short": "the criteria operator."}, "enum": {"items": [{"name": "Equals", "value": "Equals"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "GreaterThanOrEqual", "value": "GreaterThanOrEqual"}, {"name": "LessThan", "value": "LessThan"}, {"name": "LessThanOrEqual", "value": "LessThanOrEqual"}]}}, {"type": "boolean", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].skipMetricValidation", "options": ["skip-metric-validation"], "help": {"short": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped."}}, {"type": "float64", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].threshold", "options": ["threshold"], "required": true, "help": {"short": "the criteria threshold value that activates the alert."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].timeAggregation", "options": ["time-aggregation"], "required": true, "help": {"short": "the criteria time aggregation types."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Maximum", "value": "Maximum"}, {"name": "Minimum", "value": "Minimum"}, {"name": "Total", "value": "Total"}]}}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria", "options": ["microsoft-azure-monitor-webtest-location-availability-criteria"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.componentId", "options": ["component-id"], "required": true, "help": {"short": "The Application Insights resource Id."}}, {"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.failedLocationCount", "options": ["failed-location-count"], "required": true, "help": {"short": "The number of failed locations."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.webTestId", "options": ["web-test-id"], "required": true, "help": {"short": "The Application Insights web test Id."}}]}]}, {"type": "object", "var": "$parameters.properties.customProperties", "options": ["custom-properties"], "group": "Properties", "help": {"short": "The properties of an alert payload."}, "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "the description of the metric alert that will be included in the alert email."}}, {"type": "boolean", "var": "$parameters.properties.enabled", "options": ["enabled"], "required": true, "group": "Properties", "help": {"short": "the flag that indicates whether the metric alert is enabled."}}, {"type": "duration", "var": "$parameters.properties.evaluationFrequency", "options": ["evaluation-frequency"], "required": true, "group": "Properties", "help": {"short": "how often the metric alert is evaluated represented in ISO 8601 duration format."}}, {"type": "object", "var": "$parameters.properties.resolveConfiguration", "options": ["resolve-configuration"], "group": "Properties", "help": {"short": "The configuration for how the alert is resolved. Applicable for PromQLCriteria."}, "args": [{"type": "boolean", "var": "$parameters.properties.resolveConfiguration.autoResolved", "options": ["auto-resolved"], "required": true, "help": {"short": "Indicates whether the alert should be auto resolved"}}, {"type": "duration", "var": "$parameters.properties.resolveConfiguration.timeToResolve", "options": ["time-to-resolve"], "help": {"short": "The time (in ISO 8601 duration format) after which the alert should be auto resolved"}}]}, {"type": "array", "var": "$parameters.properties.scopes", "options": ["scopes"], "required": true, "group": "Properties", "help": {"short": "the list of resource id's that this metric alert is scoped to."}, "item": {"type": "string"}}, {"type": "integer32", "var": "$parameters.properties.severity", "options": ["severity"], "required": true, "group": "Properties", "help": {"short": "Alert severity {0, 1, 2, 3, 4}"}}, {"type": "string", "var": "$parameters.properties.targetResourceRegion", "options": ["target-resource-region"], "group": "Properties", "help": {"short": "the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource."}}, {"type": "string", "var": "$parameters.properties.targetResourceType", "options": ["target-resource-type"], "group": "Properties", "help": {"short": "the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource."}}, {"type": "duration", "var": "$parameters.properties.windowSize", "options": ["window-size"], "group": "Properties", "help": {"short": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."}}]}], "operations": [{"operationId": "MetricAlerts_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}], "userAssigned": {"action": "create", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "create", "type": "string"}}, "systemAssigned": {"action": "create", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}, {"type": "ResourceLocation", "name": "location", "arg": "$parameters.location", "required": true}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "arg": "$parameters.properties.actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "arg": "$parameters.properties.actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId", "arg": "$parameters.properties.actions[].actionGroupId"}, {"type": "object", "name": "webHookProperties", "arg": "$parameters.properties.actions[].webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate", "arg": "$parameters.properties.autoMitigate"}, {"type": "object", "name": "criteria", "arg": "$parameters.properties.criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria", "value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion", "value": "DynamicThresholdCriterion"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion", "value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_create>", "name": "dimensions", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].dimensions", "item": {"type": "@MetricDimension_create"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricNamespace"}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].name", "required": true}, {"type": "boolean", "name": "skipMetricValidation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion", "value": "DynamicThresholdCriterion"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].StaticThresholdCriterion", "value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].name", "required": true}, {"type": "string", "name": "query", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods", "props": [{"type": "duration", "name": "for", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods.for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "@MetricDimension_create.name", "required": true}, {"type": "string", "name": "operator", "arg": "@MetricDimension_create.operator", "required": true}, {"type": "array", "name": "values", "arg": "@MetricDimension_create.values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_create"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricNamespace"}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].name", "required": true}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].skipMetricValidation"}, {"type": "float64", "name": "threshold", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].threshold", "required": true}, {"type": "string", "name": "timeAggregation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "arg": "$parameters.properties.customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "arg": "$parameters.properties.evaluationFrequency", "required": true}, {"type": "object", "name": "resolveConfiguration", "arg": "$parameters.properties.resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "arg": "$parameters.properties.resolveConfiguration.autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve", "arg": "$parameters.properties.resolveConfiguration.timeToResolve"}]}, {"type": "array", "name": "scopes", "arg": "$parameters.properties.scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "arg": "$parameters.properties.severity", "required": true}, {"type": "string", "name": "targetResourceRegion", "arg": "$parameters.properties.targetResourceRegion"}, {"type": "string", "name": "targetResourceType", "arg": "$parameters.properties.targetResourceType"}, {"type": "duration", "name": "windowSize", "arg": "$parameters.properties.windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.autoMitigate", "options": ["auto-mitigate"], "group": "", "help": {"short": "Automatically resolve the alert."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.description", "options": ["description"], "group": "", "help": {"short": "Free-text description of the rule."}}, {"type": "boolean", "var": "$parameters.properties.enabled", "options": ["enabled"], "group": "", "help": {"short": "Whether the metric alert rule is enabled."}}, {"type": "duration", "var": "$parameters.properties.evaluationFrequency", "options": ["evaluation-frequency"], "group": "", "help": {"short": "Frequency with which to evaluate the rule in `##h##m##s` format."}}, {"type": "array", "var": "$parameters.properties.scopes", "options": ["scopes"], "group": "", "help": {"short": "Space-separated list of scopes the rule applies to. The resources specified in this parameter must be of the same type and exist in the same location."}, "item": {"nullable": true, "type": "string"}}, {"type": "integer32", "var": "$parameters.properties.severity", "options": ["severity"], "group": "", "help": {"short": "Severity of the alert from 0 (critical) to 4 (verbose)."}}, {"nullable": true, "type": "duration", "var": "$parameters.properties.windowSize", "options": ["window-size"], "group": "", "help": {"short": "Time over which to aggregate metrics in `##h##m##s` format."}}, {"nullable": true, "type": "object", "var": "$parameters.tags", "options": ["tags"], "group": "", "help": {"short": "Space-separated tags: key[=value] [key[=value] ...]."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}, {"name": "Identity", "args": [{"type": "string", "var": "$parameters.identity.type", "options": ["type"], "hide": true, "group": "Identity", "help": {"short": "Type of managed service identity. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "None", "value": "None"}, {"name": "SystemAssigned", "value": "SystemAssigned"}, {"name": "UserAssigned", "value": "UserAssigned"}]}}, {"nullable": true, "type": "object", "var": "$parameters.identity.userAssignedIdentities", "options": ["user-assigned-identities"], "hide": true, "group": "Identity", "help": {"short": "The list of user identities associated with the resource. The user identity dictionary key references will be Azure resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."}, "additionalProps": {"item": {"nullable": true, "blank": {"value": {}}, "type": "object"}}}]}, {"name": "Properties", "args": [{"nullable": true, "type": "object", "var": "$parameters.properties.actionProperties", "options": ["action-properties"], "group": "Properties", "help": {"short": "The properties of an action properties."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}, {"nullable": true, "type": "array", "var": "$parameters.properties.actions", "options": ["actions"], "hide": true, "group": "Properties", "help": {"short": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "string", "var": "$parameters.properties.actions[].actionGroupId", "options": ["action-group-id"], "help": {"short": "the id of the action group to use."}}, {"nullable": true, "type": "object", "var": "$parameters.properties.actions[].webHookProperties", "options": ["web-hook-properties"], "help": {"short": "This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}]}}, {"type": "object", "var": "$parameters.properties.criteria", "options": ["criteria"], "hide": true, "group": "Properties", "help": {"short": "defines the specific alert criteria information."}, "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria", "options": ["microsoft-azure-monitor-multiple-resource-multiple-metric-criteria"], "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf", "options": ["all-of"], "help": {"short": "the list of multiple metric criteria for this 'all of' operation. "}, "item": {"nullable": true, "type": "object", "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion", "options": ["dynamic-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "options": ["alert-sensitivity"], "help": {"short": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern."}, "enum": {"items": [{"name": "High", "value": "High"}, {"name": "Low", "value": "Low"}, {"name": "Medium", "value": "Medium"}]}}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods", "options": ["failing-periods"], "help": {"short": "The minimum number of violations required within the selected lookback time window required to raise an alert."}, "args": [{"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.minFailingPeriodsToAlert", "options": ["min-failing-periods-to-alert"], "help": {"short": "The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods."}}, {"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.numberOfEvaluationPeriods", "options": ["number-of-evaluation-periods"], "help": {"short": "The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points."}}]}, {"nullable": true, "type": "dateTime", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "options": ["ignore-data-before"], "help": {"short": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"}, "format": {"protocol": "iso"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.operator", "options": ["operator"], "help": {"short": "The operator used to compare the metric value against the threshold."}, "enum": {"items": [{"name": "GreaterOrLessThan", "value": "GreaterOrLessThan"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "LessThan", "value": "LessThan"}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion", "options": ["static-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.operator", "options": ["operator"], "help": {"short": "the criteria operator."}, "enum": {"items": [{"name": "Equals", "value": "Equals"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "GreaterThanOrEqual", "value": "GreaterThanOrEqual"}, {"name": "LessThan", "value": "LessThan"}, {"name": "LessThanOrEqual", "value": "LessThanOrEqual"}]}}, {"type": "float64", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.threshold", "options": ["threshold"], "help": {"short": "the criteria threshold value that activates the alert."}}]}, {"nullable": true, "type": "array<@MetricDimension_update>", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].dimensions", "options": ["dimensions"], "help": {"short": "List of dimension conditions."}, "item": {"nullable": true, "type": "@MetricDimension_update"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricName", "options": ["metric-name"], "help": {"short": "Name of the metric."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricNamespace", "options": ["metric-namespace"], "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].name", "options": ["name"], "help": {"short": "Name of the criteria."}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].skipMetricValidation", "options": ["skip-metric-validation"], "help": {"short": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].timeAggregation", "options": ["time-aggregation"], "help": {"short": "the criteria time aggregation types."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Maximum", "value": "Maximum"}, {"name": "Minimum", "value": "Minimum"}, {"name": "Total", "value": "Total"}]}}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria", "options": ["microsoft-azure-monitor-prom-ql-criteria"], "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf", "options": ["all-of"], "help": {"short": "The list of promQL criteria. Alert will be raised when all conditions are met."}, "item": {"nullable": true, "type": "object", "args": [{"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion", "options": ["dynamic-threshold-criterion"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "options": ["alert-sensitivity"], "help": {"short": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "High", "value": "High"}, {"name": "Low", "value": "Low"}, {"name": "Medium", "value": "Medium"}]}}, {"nullable": true, "type": "dateTime", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "options": ["ignore-data-before"], "help": {"short": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)"}, "format": {"protocol": "iso"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.operator", "options": ["operator"], "help": {"short": "The operator used to compare the metric value against the threshold. Previously undocumented values might be returned"}, "enum": {"items": [{"name": "GreaterOrLessThan", "value": "GreaterOrLessThan"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "LessThan", "value": "LessThan"}]}}]}, {"blank": {"value": {}}, "type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].StaticThresholdCriterion", "options": ["static-threshold-criterion"]}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].name", "options": ["name"], "help": {"short": "Name of the criteria."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].query", "options": ["query"], "help": {"short": "The query used to evaluate the alert rule"}}]}}, {"nullable": true, "type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods", "options": ["failing-periods"], "help": {"short": "Configuration for failing periods in query-based alerts."}, "args": [{"type": "duration", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods.for", "options": ["for"], "help": {"short": "The amount of time (in ISO 8601 duration format) alert must be active before firing."}}]}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria", "options": ["microsoft-azure-monitor-single-resource-multiple-metric-criteria"], "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf", "options": ["all-of"], "help": {"short": "The list of metric criteria for this 'all of' operation. "}, "item": {"nullable": true, "type": "object", "args": [{"nullable": true, "type": "array", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].dimensions", "options": ["dimensions"], "help": {"short": "List of dimension conditions."}, "item": {"nullable": true, "type": "object", "args": [{"type": "string", "var": "@MetricDimension_update.name", "options": ["name"], "help": {"short": "Name of the dimension."}}, {"type": "string", "var": "@MetricDimension_update.operator", "options": ["operator"], "help": {"short": "the dimension operator. Only 'Include' and 'Exclude' are supported"}}, {"type": "array", "var": "@MetricDimension_update.values", "options": ["values"], "help": {"short": "list of dimension values."}, "item": {"nullable": true, "type": "string"}}], "cls": "MetricDimension_update"}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricName", "options": ["metric-name"], "help": {"short": "Name of the metric."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricNamespace", "options": ["metric-namespace"], "help": {"short": "Namespace of the metric."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].name", "options": ["name"], "help": {"short": "Name of the criteria."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].operator", "options": ["operator"], "help": {"short": "the criteria operator."}, "enum": {"items": [{"name": "Equals", "value": "Equals"}, {"name": "GreaterThan", "value": "GreaterThan"}, {"name": "GreaterThanOrEqual", "value": "GreaterThanOrEqual"}, {"name": "LessThan", "value": "LessThan"}, {"name": "LessThanOrEqual", "value": "LessThanOrEqual"}]}}, {"nullable": true, "type": "boolean", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].skipMetricValidation", "options": ["skip-metric-validation"], "help": {"short": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped."}}, {"type": "float64", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].threshold", "options": ["threshold"], "help": {"short": "the criteria threshold value that activates the alert."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].timeAggregation", "options": ["time-aggregation"], "help": {"short": "the criteria time aggregation types."}, "enum": {"items": [{"name": "Average", "value": "Average"}, {"name": "Count", "value": "Count"}, {"name": "Maximum", "value": "Maximum"}, {"name": "Minimum", "value": "Minimum"}, {"name": "Total", "value": "Total"}]}}]}}]}, {"type": "object", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria", "options": ["microsoft-azure-monitor-webtest-location-availability-criteria"], "args": [{"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.componentId", "options": ["component-id"], "help": {"short": "The Application Insights resource Id."}}, {"type": "float", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.failedLocationCount", "options": ["failed-location-count"], "help": {"short": "The number of failed locations."}}, {"type": "string", "var": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.webTestId", "options": ["web-test-id"], "help": {"short": "The Application Insights web test Id."}}]}]}, {"nullable": true, "type": "object", "var": "$parameters.properties.customProperties", "options": ["custom-properties"], "group": "Properties", "help": {"short": "The properties of an alert payload."}, "additionalProps": {"item": {"nullable": true, "type": "string"}}}, {"nullable": true, "type": "object", "var": "$parameters.properties.resolveConfiguration", "options": ["resolve-configuration"], "group": "Properties", "help": {"short": "The configuration for how the alert is resolved. Applicable for PromQLCriteria."}, "args": [{"type": "boolean", "var": "$parameters.properties.resolveConfiguration.autoResolved", "options": ["auto-resolved"], "help": {"short": "Indicates whether the alert should be auto resolved"}}, {"nullable": true, "type": "duration", "var": "$parameters.properties.resolveConfiguration.timeToResolve", "options": ["time-to-resolve"], "help": {"short": "The time (in ISO 8601 duration format) after which the alert should be auto resolved"}}]}, {"nullable": true, "type": "string", "var": "$parameters.properties.targetResourceRegion", "options": ["target-resource-region"], "hide": true, "group": "Properties", "help": {"short": "the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource."}}, {"nullable": true, "type": "string", "var": "$parameters.properties.targetResourceType", "options": ["target-resource-type"], "hide": true, "group": "Properties", "help": {"short": "the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource."}}]}], "operations": [{"operationId": "MetricAlerts_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "IdentityObject", "name": "identity", "props": [{"type": "string", "name": "type", "arg": "$parameters.identity.type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "arg": "$parameters.identity.userAssignedIdentities", "additionalProps": {"item": {"type": "object"}}}]}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "arg": "$parameters.properties.actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "arg": "$parameters.properties.actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId", "arg": "$parameters.properties.actions[].actionGroupId"}, {"type": "object", "name": "webHookProperties", "arg": "$parameters.properties.actions[].webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate", "arg": "$parameters.properties.autoMitigate"}, {"type": "object", "name": "criteria", "arg": "$parameters.properties.criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria", "value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion", "value": "DynamicThresholdCriterion"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion", "value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_update>", "name": "dimensions", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].dimensions", "item": {"type": "@MetricDimension_update"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].metricNamespace"}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].name", "required": true}, {"type": "boolean", "name": "skipMetricValidation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.failingPeriods.numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].DynamicThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_MultipleResourceMultipleMetricCriteria.allOf[].StaticThresholdCriterion.threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion", "value": "DynamicThresholdCriterion"}, {"arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].StaticThresholdCriterion", "value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].name", "required": true}, {"type": "string", "name": "query", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.allOf[].DynamicThresholdCriterion.operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods", "props": [{"type": "duration", "name": "for", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_PromQLCriteria.failingPeriods.for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "arg": "@MetricDimension_update.name", "required": true}, {"type": "string", "name": "operator", "arg": "@MetricDimension_update.operator", "required": true}, {"type": "array", "name": "values", "arg": "@MetricDimension_update.values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_update"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricName", "required": true}, {"type": "string", "name": "metricNamespace", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].metricNamespace"}, {"type": "string", "name": "name", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].name", "required": true}, {"type": "string", "name": "operator", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].skipMetricValidation"}, {"type": "float64", "name": "threshold", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].threshold", "required": true}, {"type": "string", "name": "timeAggregation", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_SingleResourceMultipleMetricCriteria.allOf[].timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "arg": "$parameters.properties.criteria.Microsoft_Azure_Monitor_WebtestLocationAvailabilityCriteria.webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "arg": "$parameters.properties.customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description", "arg": "$parameters.properties.description"}, {"type": "boolean", "name": "enabled", "arg": "$parameters.properties.enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "arg": "$parameters.properties.evaluationFrequency", "required": true}, {"type": "object", "name": "resolveConfiguration", "arg": "$parameters.properties.resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "arg": "$parameters.properties.resolveConfiguration.autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve", "arg": "$parameters.properties.resolveConfiguration.timeToResolve"}]}, {"type": "array", "name": "scopes", "arg": "$parameters.properties.scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "arg": "$parameters.properties.severity", "required": true}, {"type": "string", "name": "targetResourceRegion", "arg": "$parameters.properties.targetResourceRegion"}, {"type": "string", "name": "targetResourceType", "arg": "$parameters.properties.targetResourceType"}, {"type": "duration", "name": "windowSize", "arg": "$parameters.properties.windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "arg": "$parameters.tags", "additionalProps": {"item": {"type": "string"}}}], "clientFlatten": true}}}}, {"operationId": "MetricAlerts_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}], "commandGroups": [{"name": "identity", "commands": [{"name": "assign", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "subresource": "identity", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Set the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "MetricAlerts_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"action": "assign", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "assign", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "assign", "type": "string"}}, "systemAssigned": {"action": "assign", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"operationId": "MetricAlerts_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}]}, {"name": "remove", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "subresource": "identity", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters.identity", "args": [{"blank": {"value": "True"}, "type": "string", "var": "$parameters.identity.systemAssigned", "options": ["system-assigned", "mi-system-assigned"], "group": "Parameters.identity", "help": {"short": "Set the system managed identity."}}, {"blank": {"value": []}, "type": "array", "var": "$parameters.identity.userAssigned", "options": ["user-assigned", "mi-user-assigned"], "group": "Parameters.identity", "help": {"short": "Set the user managed identities."}, "item": {"type": "string"}}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "MetricAlerts_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Subresource", "json": {"schema": {"action": "remove", "type": "IdentityObject", "name": "parameters.identity", "required": true, "userAssigned": {"action": "remove", "type": "array", "name": "userAssigned", "arg": "$parameters.identity.userAssigned", "item": {"action": "remove", "type": "string"}}, "systemAssigned": {"action": "remove", "type": "string", "name": "systemAssigned", "arg": "$parameters.identity.systemAssigned"}}}}}, {"operationId": "MetricAlerts_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}]}, {"name": "show", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}", "version": "2024-03-01-preview", "subresource": "identity", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0=/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["n", "name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the alert rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "subresourceSelector": {"var": "$Subresource", "ref": "$Instance", "json": {"type": "object", "name": "parameters", "prop": {"type": "object", "name": "identity"}}}, "operations": [{"operationId": "MetricAlerts_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Insights/metricAlerts/{}"}}, {"type": "IdentityObject", "name": "identity", "props": [{"readOnly": true, "type": "string", "name": "principalId"}, {"readOnly": true, "type": "string", "name": "tenantId"}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "None"}, {"value": "SystemAssigned"}, {"value": "UserAssigned"}]}}, {"type": "object", "name": "userAssignedIdentities", "additionalProps": {"item": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "clientId"}, {"readOnly": true, "type": "string", "name": "principalId"}]}}}]}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true, "props": [{"type": "object", "name": "actionProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "array", "name": "actions", "item": {"type": "object", "props": [{"type": "string", "name": "actionGroupId"}, {"type": "object", "name": "webHookProperties", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["actionGroupId"]}, {"type": "boolean", "name": "autoMitigate"}, {"type": "object", "name": "criteria", "required": true, "props": [{"type": "string", "name": "odata.type", "required": true, "enum": {"items": [{"value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.PromQLCriteria"}, {"value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"}, {"value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"}]}}], "discriminators": [{"property": "odata.type", "value": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array<@MetricDimension_read>", "name": "dimensions", "item": {"type": "@MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "object", "name": "failingPeriods", "required": true, "props": [{"type": "float", "name": "minFailingPeriodsToAlert", "required": true}, {"type": "float", "name": "numberOfEvaluationPeriods", "required": true}]}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion", "props": [{"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "float64", "name": "threshold", "required": true}]}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.PromQLCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "query", "required": true}], "discriminators": [{"property": "criterionType", "value": "DynamicThresholdCriterion", "props": [{"type": "string", "name": "alertSensitivity", "required": true, "enum": {"items": [{"value": "High"}, {"value": "Low"}, {"value": "Medium"}]}}, {"type": "dateTime", "name": "ignoreDataBefore", "format": {"protocol": "iso"}}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "GreaterOrLessThan"}, {"value": "GreaterThan"}, {"value": "LessThan"}]}}]}, {"property": "criterionType", "value": "StaticThresholdCriterion"}]}, "identifiers": ["name"]}, {"type": "object", "name": "failingPeriods", "props": [{"type": "duration", "name": "for", "required": true}]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "props": [{"type": "array", "name": "allOf", "item": {"type": "object", "props": [{"const": true, "default": {"value": "StaticThresholdCriterion"}, "type": "string", "name": "criterionType", "required": true, "enum": {"items": [{"value": "DynamicThresholdCriterion"}, {"value": "StaticThresholdCriterion"}]}}, {"type": "array", "name": "dimensions", "item": {"type": "object", "props": [{"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true}, {"type": "array", "name": "values", "required": true, "item": {"type": "string"}}], "cls": "MetricDimension_read"}, "identifiers": ["name"]}, {"type": "string", "name": "metricName", "required": true}, {"type": "string", "name": "metricNamespace"}, {"type": "string", "name": "name", "required": true}, {"type": "string", "name": "operator", "required": true, "enum": {"items": [{"value": "Equals"}, {"value": "GreaterThan"}, {"value": "GreaterThanOrEqual"}, {"value": "LessThan"}, {"value": "LessThanOrEqual"}]}}, {"type": "boolean", "name": "skipMetricValidation"}, {"type": "float64", "name": "threshold", "required": true}, {"type": "string", "name": "timeAggregation", "required": true, "enum": {"items": [{"value": "Average"}, {"value": "Count"}, {"value": "Maximum"}, {"value": "Minimum"}, {"value": "Total"}]}}]}, "identifiers": ["name"]}]}, {"property": "odata.type", "value": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", "props": [{"type": "string", "name": "componentId", "required": true}, {"type": "float", "name": "failedLocationCount", "required": true}, {"type": "string", "name": "webTestId", "required": true}]}]}, {"type": "object", "name": "customProperties", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "description"}, {"type": "boolean", "name": "enabled", "required": true}, {"type": "duration", "name": "evaluationFrequency", "required": true}, {"readOnly": true, "type": "boolean", "name": "isMigrated"}, {"readOnly": true, "type": "dateTime", "name": "lastUpdatedTime", "format": {"protocol": "iso"}}, {"type": "object", "name": "resolveConfiguration", "props": [{"type": "boolean", "name": "autoResolved", "required": true}, {"type": "duration", "name": "timeToResolve"}]}, {"type": "array", "name": "scopes", "required": true, "item": {"type": "string"}}, {"type": "integer32", "name": "severity", "required": true}, {"type": "string", "name": "targetResourceRegion"}, {"type": "string", "name": "targetResourceType"}, {"type": "duration", "name": "windowSize"}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "MetricAlertResource_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Subresource", "clientFlatten": true}]}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml new file mode 100644 index 000000000..4965d9490 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30=/2024-03-01-preview.xml @@ -0,0 +1,2922 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.json new file mode 100644 index 000000000..bf45657e4 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}/status", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0vc3RhdHVz/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "insights metric-alert status", "commands": [{"name": "list", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}/status", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0vc3RhdHVz/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["rule-name"], "required": true, "idPart": "name", "help": {"short": "The name of the rule."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "MetricAlertsStatus_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "value", "item": {"type": "object", "props": [{"type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "dimensions", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "status"}, {"type": "dateTime", "name": "timestamp", "format": {"protocol": "iso"}}]}, {"type": "string", "name": "type"}]}, "identifiers": ["id"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.xml new file mode 100644 index 000000000..f82cacc60 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVz/2024-03-01-preview.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.json new file mode 100644 index 000000000..962b51c1d --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}/status/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0vc3RhdHVzL3tzdGF0dXNOYW1lfQ==/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "insights metric-alert status", "commands": [{"name": "show", "version": "2024-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/metricalerts/{}/status/{}", "version": "2024-03-01-preview", "swagger": "mgmt-plane/monitor/ResourceProviders/Microsoft.Insights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW5zaWdodHMvbWV0cmljQWxlcnRzL3tydWxlTmFtZX0vc3RhdHVzL3tzdGF0dXNOYW1lfQ==/V/MjAyNC0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "string", "var": "$Path.ruleName", "options": ["rule-name"], "required": true, "idPart": "name", "help": {"short": "The name of the rule."}}, {"type": "string", "var": "$Path.statusName", "options": ["n", "name", "status-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The name of the status."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "MetricAlertsStatus_ListByName", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "ruleName", "arg": "$Path.ruleName", "required": true}, {"type": "string", "name": "statusName", "arg": "$Path.statusName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "array", "name": "value", "item": {"type": "object", "props": [{"type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "dimensions", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "status"}, {"type": "dateTime", "name": "timestamp", "format": {"protocol": "iso"}}]}, {"type": "string", "name": "type"}]}, "identifiers": ["id"]}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.xml new file mode 100644 index 000000000..8616632e3 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5pbnNpZ2h0cy9tZXRyaWNhbGVydHMve30vc3RhdHVzL3t9/2024-03-01-preview.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +