diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json index f99acfe16e6b..627786075af7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json @@ -19,6 +19,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType":"StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", "dimensions": [ @@ -65,6 +66,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType":"StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", "dimensions": [ diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json new file mode 100644 index 000000000000..35e8264e7de9 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "MetricAlertOnMultipleResources", + "api-version": "2018-03-01", + "parameters": { + "location": "global", + "tags": {}, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "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" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType":"Microsoft.Compute/virtualMachines", + "targetResourceRegion":"southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + } + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "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" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType":"Microsoft.Compute/virtualMachines", + "targetResourceRegion":"southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + } + } + ] + }, + "autoMitigate":false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + } + } + } diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json new file mode 100644 index 000000000000..59765d180233 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "chiricutin", + "api-version": "2018-03-01", + "parameters": { + "location": "global", + "tags": {}, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType":"Microsoft.Compute/virtualMachines", + "targetResourceRegion":"southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + }, + "ignoreDataBefore": "2019-04-04T21:00:00.000Z" + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType":"Microsoft.Compute/virtualMachines", + "targetResourceRegion":"southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + }, + "ignoreDataBefore": "2019-04-04T21:00:00.000Z" + } + ] + }, + "autoMitigate":false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + } + } + } \ No newline at end of file diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json index 3865f1ac124c..c7aa4f165acf 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json @@ -20,6 +20,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", "dimensions": [ @@ -66,6 +67,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType": "StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", "dimensions": [ diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json new file mode 100644 index 000000000000..5ac5532e4c23 --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json @@ -0,0 +1,63 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "MetricAlertOnMultipleResources", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertOnMultipleResources", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "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" + ], + "evaluationFrequency": "PT1M", + "windowSize": "PT15M", + "targetResourceType":"Microsoft.Compute/virtualMachines", + "targetResourceRegion":"southcentralus", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + } + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + } + } + } \ No newline at end of file diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json new file mode 100644 index 000000000000..3434c835ef0e --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "gigtest", + "ruleName": "chiricutin", + "api-version": "2018-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/chiricutin", + "type": "Microsoft.Insights/metricAlerts", + "location": "global", + "tags": { + "hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest": "Resource" + }, + "properties": { + "description": "This is the description of the rule1", + "severity": 3, + "enabled": true, + "scopes": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme" + ], + "evaluationFrequency": "Pt1m", + "windowSize": "Pt15m", + "criteria": { + "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", + "allOf": [ + { + "criterionType": "DynamicThresholdCriterion", + "name": "High_CPU_80", + "metricName": "Percentage CPU", + "metricNamespace": "microsoft.compute/virtualmachines", + "operator": "GreaterOrLessThan", + "timeAggregation": "Average", + "dimensions": [], + "alertSensitivity": "Medium", + "failingPeriods": { + "numberOfEvaluationPeriods": 4, + "minFailingPeriodsToAlert": 4 + }, + "ignoreDataBefore": null + } + ] + }, + "autoMitigate": false, + "actions": [ + { + "actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/notificationgroups/group2", + "webhookProperties": { + "key11": "value11", + "key12": "value12" + } + } + ] + } + } + } + } + } \ No newline at end of file diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json index 25da26847945..510dd835dfb5 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json @@ -28,6 +28,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType":"StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "\\Processor(_Total)\\% Processor Time", "dimensions": [ diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json index 555c127d7f0e..b8e115bae254 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json @@ -29,6 +29,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType":"StaticThresholdCriterion", "name": "High_CPU_80", "metricName": "CustomMetric_\\Processor(_Total)\\% Processor Time", "dimensions": [ @@ -70,6 +71,7 @@ "odata.type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", "allOf": [ { + "criterionType":"StaticThresholdCriterion", "name": "Medium_CPU_50", "metricName": "CustomMetric_\\Processor(_Total)\\% Processor Time", "dimensions": [ diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json index 1380d5987407..7c7c65bd8648 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json @@ -117,7 +117,9 @@ "Get an alert rule for single resource": { "$ref": "./examples/getMetricAlertSingleResource.json" }, "Get an alert rule for multiple resources": { "$ref": "./examples/getMetricAlertMultipleResource.json" }, "Get an alert rule on resource group(s)": { "$ref": "./examples/getMetricAlertResourceGroup.json" }, - "Get an alert rule on subscription": { "$ref": "./examples/getMetricAlertSubscription.json" } + "Get an alert rule on subscription": { "$ref": "./examples/getMetricAlertSubscription.json" }, + "Get a dynamic alert rule for single resource": { "$ref": "./examples/getDynamicMetricAlertSingleResource.json" }, + "Get a dynamic alert rule for multiple resources": { "$ref": "./examples/getDynamicMetricAlertMultipleResource.json" } } }, "put": { @@ -155,7 +157,9 @@ "Create or update an alert rule for Single Resource": { "$ref": "./examples/createOrUpdateMetricAlertSingleResource.json" }, "Create or update an alert rule for Multiple Resource": { "$ref": "./examples/createOrUpdateMetricAlertMultipleResource.json" }, "Create or update an alert rule on Resource group(s)": { "$ref": "./examples/createOrUpdateMetricAlertResourceGroup.json" }, - "Create or update an alert rule on Subscription ": { "$ref": "./examples/createOrUpdateMetricAlertSubscription.json" } + "Create or update an alert rule on Subscription ": { "$ref": "./examples/createOrUpdateMetricAlertSubscription.json" }, + "Create or update a dynamic alert rule for Single Resource": { "$ref": "./examples/createOrUpdateDynamicMetricAlertSingleResource.json" }, + "Create or update a dynamic alert rule for Multiple Resources": { "$ref": "./examples/createOrUpdateDynamicMetricAlertMultipleResource.json" } } }, "patch": { @@ -553,25 +557,10 @@ } ], "required": [ - "name", - "metricName", "operator", - "timeAggregation", "threshold" ], "properties": { - "name": { - "type": "string", - "description": "Name of the criteria." - }, - "metricName": { - "type": "string", - "description": "Name of the metric." - }, - "metricNamespace": { - "type": "string", - "description": "Namespace of the metric." - }, "operator": { "enum": [ "Equals", @@ -587,30 +576,10 @@ }, "description": "the criteria operator." }, - "timeAggregation": { - "enum": [ - "Average", - "Minimum", - "Maximum", - "Total" - ], - "x-ms-enum": { - "name": "AggregationType", - "modelAsString": true - }, - "description": "the criteria time aggregation types." - }, "threshold": { "type": "number", "format": "double", "description": "the criteria threshold value that activates the alert." - }, - "dimensions": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricDimension" - }, - "description": "List of dimension conditions." } }, "description": "Criterion to filter metrics." @@ -668,18 +637,119 @@ "properties":{ "criterionType" : { "enum":[ - "StaticThresholdCriterion" + "StaticThresholdCriterion", + "DynamicThresholdCriterion" ], "x-ms-enum" : { "name" : "criterionType", "modelAsString": true }, "description":" Specifies the type of threshold criteria" + }, + "name": { + "type": "string", + "description": "Name of the criteria." + }, + "metricName": { + "type": "string", + "description": "Name of the metric." + }, + "metricNamespace": { + "type": "string", + "description": "Namespace of the metric." + }, + "timeAggregation": { + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total" + ], + "x-ms-enum": { + "name": "AggregationType", + "modelAsString": true + }, + "description": "the criteria time aggregation types." + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricDimension" + }, + "description": "List of dimension conditions." + } + }, + "required": [ "criterionType", "name", "metricName", "timeAggregation" ], + "description": "The types of conditions for a multi resource alert." + }, + "DynamicMetricCriteria" : { + "x-ms-discriminator-value": "DynamicThresholdCriterion", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/MultiMetricCriteria" + } + ], + "required": [ + "operator", + "alertSensitivity", + "failingPeriods" + ], + "properties": { + "operator": { + "enum": [ + "GreaterThan", + "LessThan", + "GreaterOrLessThan" + ], + "x-ms-enum": { + "name": "DynamicThresholdOperator", + "modelAsString": true + }, + "description": "The operator used to compare the metric value against the threshold." + }, + "alertSensitivity": { + "enum" : [ + "Low", + "Medium", + "High" + ], + "x-ms-enum" : { + "name" : "DynamicThresholdSensitivity", + "modelAsString": true + }, + "description": "The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern." + }, + "failingPeriods" : { + "type" : "object", + "$ref" : "#/definitions/DynamicThresholdFailingPeriods", + "description" : "The minimum number of violations required within the selected lookback time window required to raise an alert." + }, + "ignoreDataBefore" : { + "type" : "string", + "format": "date-time", + "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)" } }, - "required": ["criterionType"], - "description": "The types of conditions for a multi resource alert" - } + "description": "Criterion for dynamic threshold." + }, + "DynamicThresholdFailingPeriods" : { + "required": [ + "numberOfEvaluationPeriods", + "minFailingPeriodsToAlert" + ], + "properties": { + "numberOfEvaluationPeriods": { + "type": "number", + "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." + }, + "minFailingPeriodsToAlert": { + "type": "number", + "description": "The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods." + } + }, + "description": "The minimum number of violations required within the selected lookback time window required to raise an alert." + } }, "parameters": { "SubscriptionIdParameter": {