UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 48 kB
{"openapi":"3.0.0","info":{"description":"Azure Monitor client to create/update/delete metric based alerts.","title":"MonitorManagementClient","version":"2018-03-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-ms-code-generation-settings":{"name":"MonitorManagementClient"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"monitor-metricAlert_API","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts":{"get":{"description":"Retrieve alert rule definitions in a subscription.","operationId":"MetricAlerts_ListBySubscription","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request for a list of metric alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResourceCollection"},"examples":{"List metric alert rules":{"$ref":"#/components/examples/List_metric_alert_rules"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlerts"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts":{"get":{"description":"Retrieve alert rule definitions in a resource group.","operationId":"MetricAlerts_ListByResourceGroup","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request for a list of metric alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResourceCollection"},"examples":{"List metric alert rules":{"$ref":"#/components/examples/List_metric_alert_rules"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlerts"],"x-ms-pageable":{}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}":{"delete":{"description":"Delete an alert rule definition.","operationId":"MetricAlerts_Delete","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request to delete an metric alert rule"},"204":{"description":"No content: the request was successful, but the response is empty"}},"tags":["MetricAlerts"]},"get":{"description":"Retrieve an alert rule definition.","operationId":"MetricAlerts_Get","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request for a list of metric alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResource"},"examples":{"Get a dynamic alert rule for multiple resources":{"$ref":"#/components/examples/Get_a_dynamic_alert_rule_for_multiple_resources"},"Get a dynamic alert rule for single resource":{"$ref":"#/components/examples/Get_a_dynamic_alert_rule_for_single_resource"},"Get an alert rule for multiple resources":{"$ref":"#/components/examples/Get_an_alert_rule_for_multiple_resources"},"Get an alert rule for single resource":{"$ref":"#/components/examples/Get_an_alert_rule_for_single_resource"},"Get an alert rule on resource group(s)":{"$ref":"#/components/examples/Get_an_alert_rule_on_resource_group_s_"},"Get an alert rule on subscription":{"$ref":"#/components/examples/Get_an_alert_rule_on_subscription"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlerts"]},"patch":{"description":"Update an metric alert definition.","operationId":"MetricAlerts_Update","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResourcePatch"}}},"description":"The parameters of the rule to update.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResource"},"examples":{"Create or update an alert rule":{"$ref":"#/components/examples/Create_or_update_an_alert_rule"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlerts"]},"put":{"description":"Create or update an metric alert definition.","operationId":"MetricAlerts_CreateOrUpdate","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResource"}}},"description":"The parameters of the rule to create or update.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertResource"},"examples":{"Create or update a dynamic alert rule for Multiple Resources":{"$ref":"#/components/examples/Create_or_update_a_dynamic_alert_rule_for_Multiple_Resources"},"Create or update a dynamic alert rule for Single Resource":{"$ref":"#/components/examples/Create_or_update_a_dynamic_alert_rule_for_Single_Resource"},"Create or update an alert rule for Multiple Resource":{"$ref":"#/components/examples/Create_or_update_an_alert_rule_for_Multiple_Resource"},"Create or update an alert rule for Single Resource":{"$ref":"#/components/examples/Create_or_update_an_alert_rule_for_Single_Resource"},"Create or update an alert rule on Resource group(s)":{"$ref":"#/components/examples/Create_or_update_an_alert_rule_on_Resource_group_s_"},"Create or update an alert rule on Subscription ":{"$ref":"#/components/examples/Create_or_update_an_alert_rule_on_Subscription_"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlerts"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status":{"get":{"description":"Retrieve an alert rule status.","operationId":"MetricAlertsStatus_List","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request for a list of metric alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertStatusCollection"},"examples":{"Get an alert rule status":{"$ref":"#/components/examples/Get_an_alert_rule_status"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlertsStatus"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}":{"get":{"description":"Retrieve an alert rule status.","operationId":"MetricAlertsStatus_ListByName","parameters":[{"$ref":"#/components/parameters/SubscriptionIdParameter"},{"$ref":"#/components/parameters/ResourceGroupNameParameter"},{"$ref":"#/components/parameters/RuleNameParameter"},{"$ref":"#/components/parameters/StatusNameParameter"},{"$ref":"#/components/parameters/ApiVersionParameter"}],"responses":{"200":{"description":"Successful request for a list of metric alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricAlertStatusCollection"},"examples":{"Get an alert rule status":{"$ref":"#/components/examples/Get_an_alert_rule_status"}}}}},"default":{"description":"BadRequest","content":{"application/json":{"schema":{"description":"Describes the format of Error response.","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["MetricAlertsStatus"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_metric_alert_rules":{"value":{"value":[{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/highcpu","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"CustomMetric_\\Processor(_Total)\\% Processor Time","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"},{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/mediumcpu","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"CustomMetric_\\Processor(_Total)\\% Processor Time","name":"Medium_CPU_50","operator":"GreaterThan","threshold":50.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"description":"Med cpu alert","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":4,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}]}},"Get_a_dynamic_alert_rule_for_multiple_resources":{"value":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"alertSensitivity":"Medium","criterionType":"DynamicThresholdCriterion","dimensions":[],"failingPeriods":{"minFailingPeriodsToAlert":4,"numberOfEvaluationPeriods":4},"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterOrLessThan","timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_a_dynamic_alert_rule_for_single_resource":{"value":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"alertSensitivity":"Medium","criterionType":"DynamicThresholdCriterion","dimensions":[],"failingPeriods":{"minFailingPeriodsToAlert":4,"numberOfEvaluationPeriods":4},"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterOrLessThan","timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_an_alert_rule_for_multiple_resources":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1","/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_an_alert_rule_for_single_resource":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"\\Processor(_Total)\\% Processor Time","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_an_alert_rule_on_resource_group_s_":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1/providers/providers/microsoft.insights/metricalerts/MetricAlertAtResourceGroupLevel","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1","/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_an_alert_rule_on_subscription":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertAtSubscriptionLevel","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_an_alert_rule":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"\\Processor(_Total)\\% Processor Time","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_a_dynamic_alert_rule_for_Multiple_Resources":{"value":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"alertSensitivity":"Medium","criterionType":"DynamicThresholdCriterion","dimensions":[],"failingPeriods":{"minFailingPeriodsToAlert":4,"numberOfEvaluationPeriods":4},"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterOrLessThan","timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_a_dynamic_alert_rule_for_Single_Resource":{"value":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"alertSensitivity":"Medium","criterionType":"DynamicThresholdCriterion","dimensions":[],"failingPeriods":{"minFailingPeriodsToAlert":4,"numberOfEvaluationPeriods":4},"ignoreDataBefore":"2019-04-04T21:00:00.000Z","metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterOrLessThan","timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_an_alert_rule_for_Multiple_Resource":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1","/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_an_alert_rule_for_Single_Resource":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"\\Processor(_Total)\\% Processor Time","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"Pt1m","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],"severity":3,"windowSize":"Pt15m"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_an_alert_rule_on_Resource_group_s_":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1/providers/providers/microsoft.insights/metricalerts/MetricAlertAtResourceGroupLevel","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1","/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Create_or_update_an_alert_rule_on_Subscription_":{"value":{"id":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertAtSubscriptionLevel","location":"global","properties":{"actions":[{"actionGroupId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2","webhookProperties":{"key11":"value11","key12":"value12"}}],"autoMitigate":false,"criteria":{"allOf":[{"criterionType":"StaticThresholdCriterion","dimensions":[],"metricName":"Percentage CPU","metricNamespace":"microsoft.compute/virtualmachines","name":"High_CPU_80","operator":"GreaterThan","threshold":80.5,"timeAggregation":"Average"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"description":"This is the description of the rule1","enabled":true,"evaluationFrequency":"PT1M","scopes":["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"],"severity":3,"targetResourceRegion":"southcentralus","targetResourceType":"Microsoft.Compute/virtualMachines","windowSize":"PT15M"},"tags":{"hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource"},"type":"Microsoft.Insights/metricAlerts"}},"Get_an_alert_rule_status":{"value":{"value":[{"id":"/subscriptions/009f6022-67ec-423e-9aa7-691182870588/resourceGroups/EastUs/providers/microsoft.insights/metricAlerts/custom1","name":"cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l","properties":{"dimensions":{"resourceId":"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"},"status":"Healthy","timestamp":"2018-01-17T20:17:25.6293237Z"},"type":"Microsoft.Insights/metricAlerts/status"}]}}},"parameters":{"ApiVersionParameter":{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"List metric alert rules":{"value":"2018-03-01"},"Delete an alert rule":{"value":"2018-03-01"},"Get a dynamic alert rule for multiple resources":{"value":"2018-03-01"},"Get a dynamic alert rule for single resource":{"value":"2018-03-01"},"Get an alert rule for multiple resources":{"value":"2018-03-01"},"Get an alert rule for single resource":{"value":"2018-03-01"},"Get an alert rule on resource group(s)":{"value":"2018-03-01"},"Get an alert rule on subscription":{"value":"2018-03-01"},"Create or update an alert rule":{"value":"2018-03-01"},"Create or update a dynamic alert rule for Multiple Resources":{"value":"2018-03-01"},"Create or update a dynamic alert rule for Single Resource":{"value":"2018-03-01"},"Create or update an alert rule for Multiple Resource":{"value":"2018-03-01"},"Create or update an alert rule for Single Resource":{"value":"2018-03-01"},"Create or update an alert rule on Resource group(s)":{"value":"2018-03-01"},"Create or update an alert rule on Subscription ":{"value":"2018-03-01"},"Get an alert rule status":{"value":"2018-03-01"}}},"ResourceGroupNameParameter":{"description":"The name of the resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List metric alert rules":{"value":"gigtest"},"Delete an alert rule":{"value":"gigtest"},"Get a dynamic alert rule for multiple resources":{"value":"gigtest"},"Get a dynamic alert rule for single resource":{"value":"gigtest"},"Get an alert rule for multiple resources":{"value":"gigtest"},"Get an alert rule for single resource":{"value":"gigtest"},"Get an alert rule on resource group(s)":{"value":"gigtest1"},"Get an alert rule on subscription":{"value":"gigtest"},"Create or update an alert rule":{"value":"gigtest"},"Create or update a dynamic alert rule for Multiple Resources":{"value":"gigtest"},"Create or update a dynamic alert rule for Single Resource":{"value":"gigtest"},"Create or update an alert rule for Multiple Resource":{"value":"gigtest"},"Create or update an alert rule for Single Resource":{"value":"gigtest"},"Create or update an alert rule on Resource group(s)":{"value":"gigtest1"},"Create or update an alert rule on Subscription ":{"value":"gigtest"},"Get an alert rule status":{"value":"EastUs"}}},"RuleNameParameter":{"description":"The name of the rule.","in":"path","name":"ruleName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Delete an alert rule":{"value":"chiricutin"},"Get a dynamic alert rule for multiple resources":{"value":"MetricAlertOnMultipleResources"},"Get a dynamic alert rule for single resource":{"value":"chiricutin"},"Get an alert rule for multiple resources":{"value":"MetricAlertOnMultipleResources"},"Get an alert rule for single resource":{"value":"chiricutin"},"Get an alert rule on resource group(s)":{"value":"MetricAlertAtResourceGroupLevel"},"Get an alert rule on subscription":{"value":"MetricAlertAtSubscriptionLevel"},"Create or update an alert rule":{"value":"chiricutin"},"Create or update a dynamic alert rule for Multiple Resources":{"value":"MetricAlertOnMultipleResources"},"Create or update a dynamic alert rule for Single Resource":{"value":"chiricutin"},"Create or update an alert rule for Multiple Resource":{"value":"MetricAlertOnMultipleResources"},"Create or update an alert rule for Single Resource":{"value":"chiricutin"},"Create or update an alert rule on Resource group(s)":{"value":"MetricAlertAtResourceGroupLevel"},"Create or update an alert rule on Subscription ":{"value":"MetricAlertAtSubscriptionLevel"},"Get an alert rule status":{"value":"custom1"}}},"StatusNameParameter":{"description":"The name of the status.","in":"path","name":"statusName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get an alert rule status":{"value":"cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l"}}},"SubscriptionIdParameter":{"description":"The Azure subscription Id.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List metric alert rules":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Delete an alert rule":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Get a dynamic alert rule for multiple resources":{"value":"00000000-0000-0000-0000-000000000000"},"Get a dynamic alert rule for single resource":{"value":"00000000-0000-0000-0000-000000000000"},"Get an alert rule for multiple resources":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Get an alert rule for single resource":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Get an alert rule on resource group(s)":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Get an alert rule on subscription":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Create or update an alert rule":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Create or update a dynamic alert rule for Multiple Resources":{"value":"00000000-0000-0000-0000-000000000000"},"Create or update a dynamic alert rule for Single Resource":{"value":"00000000-0000-0000-0000-000000000000"},"Create or update an alert rule for Multiple Resource":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Create or update an alert rule for Single Resource":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Create or update an alert rule on Resource group(s)":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Create or update an alert rule on Subscription ":{"value":"14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"},"Get an alert rule status":{"value":"009f6022-67ec-423e-9aa7-691182870588"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"DynamicMetricCriteria":{"allOf":[{"$ref":"#/components/schemas/MultiMetricCriteria"}],"description":"Criterion for dynamic threshold.","properties":{"alertSensitivity":{"description":"The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.","enum":["Low","Medium","High"],"x-ms-enum":{"modelAsString":true,"name":"DynamicThresholdSensitivity"}},"failingPeriods":{"$ref":"#/components/schemas/DynamicThresholdFailingPeriods"},"ignoreDataBefore":{"description":"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":"date-time","type":"string"},"operator":{"description":"The operator used to compare the metric value against the threshold.","enum":["GreaterThan","LessThan","GreaterOrLessThan"],"x-ms-enum":{"modelAsString":true,"name":"DynamicThresholdOperator"}}},"required":["operator","alertSensitivity","failingPeriods"],"type":"object","x-ms-discriminator-value":"DynamicThresholdCriterion"},"DynamicThresholdFailingPeriods":{"description":"The minimum number of violations required within the selected lookback time window required to raise an alert.","properties":{"minFailingPeriodsToAlert":{"description":"The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.","type":"number"},"numberOfEvaluationPeriods":{"description":"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":"number"}},"required":["numberOfEvaluationPeriods","minFailingPeriodsToAlert"]},"MetricAlertAction":{"description":"An alert action.","properties":{"actionGroupId":{"description":"the id of the action group to use.","type":"string"},"webhookProperties":{"additionalProperties":{"description":"the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.","type":"string"},"description":"The properties of a webhook object.","type":"object"}}},"MetricAlertCriteria":{"additionalProperties":{"type":"object"},"description":"The rule criteria that defines the conditions of the alert rule.","discriminator":{"propertyName":"odata.type"},"properties":{"odata.type":{"description":"specifies the type of the alert criteria.","enum":["Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria","Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"],"x-ms-enum":{"modelAsString":true,"name":"odatatype"}}},"required":["odata.type"],"type":"object"},"MetricAlertMultipleResourceMultipleMetricCriteria":{"allOf":[{"$ref":"#/components/schemas/MetricAlertCriteria"}],"description":"Specifies the metric alert criteria for multiple resource that has multiple metric criteria.","properties":{"allOf":{"description":"the list of multiple metric criteria for this 'all of' operation. ","items":{"$ref":"#/components/schemas/MultiMetricCriteria"},"type":"array"}},"type":"object","x-ms-discriminator-value":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"MetricAlertProperties":{"description":"An alert rule.","properties":{"actions":{"description":"the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.","items":{"$ref":"#/components/schemas/MetricAlertAction"},"type":"array"},"autoMitigate":{"description":"the flag that indicates whether the alert should be auto resolved or not.","type":"boolean"},"criteria":{"$ref":"#/components/schemas/MetricAlertCriteria"},"description":{"description":"the description of the metric alert that will be included in the alert email.","type":"string"},"enabled":{"description":"the flag that indicates whether the metric alert is enabled.","type":"boolean"},"evaluationFrequency":{"description":"how often the metric alert is evaluated represented in ISO 8601 duration format.","format":"duration","type":"string"},"lastUpdatedTime":{"description":"Last time the rule was updated in ISO8601 format.","format":"date-time","readOnly":true,"type":"string"},"scopes":{"description":"the list of resource id's that this metric alert is scoped to.","items":{"type":"string"},"type":"array"},"severity":{"description":"Alert severity {0, 1, 2, 3, 4}","type":"integer"},"targetResourceRegion":{"description":"the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria.","type":"string"},"targetResourceType":{"description":"the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria.","type":"string"},"windowSize":{"description":"the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.","format":"duration","type":"string"}},"required":["enabled","description","severity","evaluationFrequency","windowSize","criteria"]},"MetricAlertResource":{"allOf":[{"$ref":"#/components/schemas/Resource"}],"description":"The metric alert resource.","properties":{"properties":{"$ref":"#/components/schemas/MetricAlertProperties"}},"required":["properties"],"type":"object"},"MetricAlertResourceCollection":{"description":"Represents a collection of alert rule resources.","properties":{"value":{"description":"the values for the alert rule resources.","items":{"$ref":"#/components/schemas/MetricAlertResource"},"type":"array"}}},"MetricAlertResourcePatch":{"description":"The metric alert resource for patch operations.","properties":{"properties":{"$ref":"#/components/schemas/MetricAlertProperties"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"}}},"MetricAlertSingleResourceMultipleMetricCriteria":{"allOf":[{"$ref":"#/components/schemas/MetricAlertCriteria"}],"description":"Specifies the metric alert criteria for a single resource that has multiple metric criteria.","properties":{"allOf":{"description":"The list of metric criteria for this 'all of' operation. ","items":{"$ref":"#/components/schemas/MetricCriteria"},"type":"array"}},"type":"object","x-ms-discriminator-value":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"MetricAlertStatus":{"description":"An alert status.","properties":{"id":{"description":"The alert rule arm id.","type":"string"},"name":{"description":"The status name.","type":"string"},"properties":{"$ref":"#/components/schemas/MetricAlertStatusProperties"},"type":{"description":"The extended resource type name.","type":"string"}}},"MetricAlertStatusCollection":{"description":"Represents a collection of alert rule resources.","properties":{"value":{"description":"the values for the alert rule resources.","items":{"$ref":"#/components/schemas/MetricAlertStatus"},"type":"array"}}},"MetricAlertStatusProperties":{"description":"An alert status properties.","properties":{"dimensions":{"additionalProperties":{"type":"string"},"description":"An object describing the type of the dimensions.","type":"object"},"status":{"description":"status value","type":"string"},"timestamp":{"description":"UTC time when the status was checked.","format":"date-time","type":"string"}}},"MetricCriteria":{"allOf":[{"$ref":"#/components/schemas/MultiMetricCriteria"}],"description":"Criterion to filter metrics.","properties":{"operator":{"description":"the criteria operator.","enum":["Equals","NotEquals","GreaterThan","GreaterThanOrEqual","LessThan","LessThanOrEqual"],"x-ms-enum":{"modelAsString":true,"name":"Operator"}},"threshold":{"description":"the criteria threshold value that activates the alert.","format":"double","type":"number"}},"required":["operator","threshold"],"type":"object","x-ms-discriminator-value":"StaticThresholdCriterion"},"MetricDimension":{"description":"Specifies a metric dimension.","properties":{"name":{"description":"Name of the dimension.","type":"string"},"operator":{"description":"the dimension operator. Only 'Include' and 'Exclude' are supported","type":"string"},"values":{"description":"list of dimension values.","items":{"type":"string"},"type":"array"}},"required":["name","operator","values"]},"MultiMetricCriteria":{"additionalProperties":{"type":"object"},"description":"The types of conditions for a multi resource alert.","discriminator":{"propertyName":"criterionType"},"properties":{"criterionType":{"description":"Specifies the type of threshold criteria","enum":["StaticThresholdCriterion","DynamicThresholdCriterion"],"x-ms-enum":{"modelAsString":true,"name":"criterionType"}},"dimensions":{"description":"List of dimension conditions.","items":{"$ref":"#/components/schemas/MetricDimension"},"type":"array"},"metricName":{"description":"Name of the metric.","type":"string"},"metricNamespace":{"description":"Namespace of the metric.","type":"string"},"name":{"description":"Name of the criteria.","type":"string"},"timeAggregation":{"description":"the criteria time aggregation types.","enum":["Average","Minimum","Maximum","Total"],"x-ms-enum":{"modelAsString":true,"name":"AggregationType"}}},"required":["criterionType","name","metricName","timeAggregation"],"type":"object"},"Resource":{"description":"An azure resource object","properties":{"id":{"description":"Azure resource Id","readOnly":true,"type":"string"},"location":{"description":"Resource location","type":"string","x-ms-mutability":["create","read"]},"name":{"description":"Azure resource name","readOnly":true,"type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags"},"type":{"description":"Azure resource type","readOnly":true,"type":"string"}},"required":["location"],"x-ms-azure-resource":true}}}}