Skip to content

Commit b49b8b5

Browse files
authored
[Hub Generated] Review request for Microsoft.Insights to add version stable/2018-03-01 (#9790)
* update patch required fields to nothing * removed readonly properties from patch * removed sub module * fix CI checks which failed * reverted description
1 parent 9a5ad06 commit b49b8b5

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/metricAlert_API.json

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,70 @@
543543
},
544544
"description": "An alert rule."
545545
},
546+
"MetricAlertPropertiesPatch": {
547+
"properties": {
548+
"description": {
549+
"type": "string",
550+
"description": "the description of the metric alert that will be included in the alert email."
551+
},
552+
"severity": {
553+
"type": "integer",
554+
"format": "int32",
555+
"description": "Alert severity {0, 1, 2, 3, 4}"
556+
},
557+
"enabled": {
558+
"type": "boolean",
559+
"description": "the flag that indicates whether the metric alert is enabled."
560+
},
561+
"scopes": {
562+
"type": "array",
563+
"items": {
564+
"type": "string"
565+
},
566+
"description": "the list of resource id's that this metric alert is scoped to."
567+
},
568+
"evaluationFrequency": {
569+
"type": "string",
570+
"format": "duration",
571+
"description": "how often the metric alert is evaluated represented in ISO 8601 duration format."
572+
},
573+
"windowSize": {
574+
"type": "string",
575+
"format": "duration",
576+
"description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold."
577+
},
578+
"targetResourceType": {
579+
"type": "string",
580+
"description": "the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
581+
},
582+
"targetResourceRegion": {
583+
"type": "string",
584+
"description": "the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria."
585+
},
586+
"criteria": {
587+
"$ref": "#/definitions/MetricAlertCriteria",
588+
"description": "defines the specific alert criteria information."
589+
},
590+
"autoMitigate": {
591+
"type": "boolean",
592+
"description": "the flag that indicates whether the alert should be auto resolved or not. The default is true."
593+
},
594+
"actions": {
595+
"type": "array",
596+
"items": {
597+
"$ref": "#/definitions/MetricAlertAction"
598+
},
599+
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
600+
},
601+
"lastUpdatedTime": {
602+
"readOnly": true,
603+
"type": "string",
604+
"format": "date-time",
605+
"description": "Last time the rule was updated in ISO8601 format."
606+
}
607+
},
608+
"description": "An alert rule properties for patch."
609+
},
546610
"MetricAlertResource": {
547611
"type": "object",
548612
"allOf": [
@@ -572,7 +636,7 @@
572636
},
573637
"properties": {
574638
"x-ms-client-flatten": true,
575-
"$ref": "#/definitions/MetricAlertProperties",
639+
"$ref": "#/definitions/MetricAlertPropertiesPatch",
576640
"description": "The alert rule properties of the resource."
577641
}
578642
},

0 commit comments

Comments
 (0)