-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Insights to add version …
…stable/2018-03-01 (#12372) * fixed customer feedback * added reference to new example * added real reference * harel PR fixes * added target resource prop to multi examples * added suppression to model validation * fixed prettier check
- Loading branch information
Showing
16 changed files
with
155 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
...icrosoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertWithDimensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7", | ||
"resourceGroupName": "gigtest", | ||
"ruleName": "MetricAlertOnMultipleDimensions", | ||
"api-version": "2018-03-01", | ||
"parameters": { | ||
"location": "global", | ||
"tags": {}, | ||
"properties": { | ||
"description": "This is the description of the rule1", | ||
"enabled": true, | ||
"severity": 3, | ||
"windowSize": "P1D", | ||
"evaluationFrequency": "PT1H", | ||
"scopes": [ | ||
"/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource" | ||
], | ||
"criteria": { | ||
"allOf": [ | ||
{ | ||
"metricName": "Availability", | ||
"metricNamespace": "Microsoft.KeyVault/vaults", | ||
"operator": "GreaterThan", | ||
"timeAggregation": "Average", | ||
"name": "Metric1", | ||
"dimensions": [ | ||
{ | ||
"name": "ActivityName", | ||
"operator": "Include", | ||
"values": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"name": "StatusCode", | ||
"operator": "Include", | ||
"values": [ | ||
"200" | ||
] | ||
} | ||
], | ||
"criterionType": "StaticThresholdCriterion", | ||
"threshold": 55 | ||
} | ||
], | ||
"odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" | ||
}, | ||
"actions": [ | ||
{ | ||
"actionGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", | ||
"webHookProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
} | ||
], | ||
"autoMitigate": true | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/providers/microsoft.insights/metricalerts/MetricAlertWithDimensions", | ||
"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/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource" | ||
], | ||
"evaluationFrequency": "PT1H", | ||
"windowSize": "P1D", | ||
"targetResourceType": "Microsoft.KeyVault/vaults", | ||
"targetResourceRegion": "southcentralus", | ||
"criteria": { | ||
"odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", | ||
"allOf": [ | ||
{ | ||
"metricName": "Availability", | ||
"metricNamespace": "Microsoft.KeyVault/vaults", | ||
"operator": "GreaterThan", | ||
"timeAggregation": "Average", | ||
"name": "Metric1", | ||
"dimensions": [ | ||
{ | ||
"name": "ActivityName", | ||
"operator": "Include", | ||
"values": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"name": "StatusCode", | ||
"operator": "Include", | ||
"values": [ | ||
"200" | ||
] | ||
} | ||
], | ||
"criterionType": "StaticThresholdCriterion", | ||
"threshold": 55 | ||
} | ||
] | ||
}, | ||
"autoMitigate": false, | ||
"actions": [ | ||
{ | ||
"actionGroupId": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", | ||
"webHookProperties": { | ||
"key11": "value11", | ||
"key12": "value12" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters