forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (Azure#7920) * fix(metricAlert_API): add missing properties to web test metric alert * docs(metricAlert_API): change properties description * fix(metricAlert_API): remove templateType from webtest metric alert rules * fix(metricAlert_API): change subscription description * fix(metricAlert_API): prettier checks * fix(): lint warnings * fix(): lint warnings * fix(): run prettier * fix(metricAlert_API): add 'None' option to AggregationType enum in order to be align with 2018-01-01 metricDefintions_API.json * fix(metricAlert_API): align AggregationType enum with metricDefinitions * fix(): revert changes to un-brack ARM api * fix(): change webTestId description * fix(): add none to timeAggregation enum for compatbility * fix(): remove type: string and none value from timeAggregation enum
- Loading branch information
Showing
3 changed files
with
150 additions
and
7 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...nager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateWebTestMetricAlert.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,66 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789101", | ||
"resourceGroupName": "rg-example", | ||
"ruleName": "webtest-name-example", | ||
"api-version": "2018-03-01", | ||
"parameters": { | ||
"location": "global", | ||
"tags": { | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example": "Resource", | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example": "Resource" | ||
}, | ||
"properties": { | ||
"description": "Automatically created alert rule for availability test \"component-example\" a", | ||
"enabled": true, | ||
"severity": 4, | ||
"windowSize": "PT15M", | ||
"evaluationFrequency": "PT1M", | ||
"criteria": { | ||
"failedLocationCount": 2, | ||
"webTestId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", | ||
"componentId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", | ||
"odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" | ||
}, | ||
"actions": [], | ||
"scopes": [ | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"location": "global", | ||
"type": "Microsoft.Insights/metricAlerts", | ||
"name": "webtest-name-example", | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/metricalerts/webtest-name-example", | ||
"tags": { | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example": "Resource", | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example": "Resource" | ||
}, | ||
"properties": { | ||
"description": "Automatically created alert rule for availability test \"webtest-name-example\" a", | ||
"severity": 4, | ||
"enabled": true, | ||
"scopes": [ | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example", | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example" | ||
], | ||
"evaluationFrequency": "PT1M", | ||
"windowSize": "PT15M", | ||
"criteria": { | ||
"webTestId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example", | ||
"componentId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example", | ||
"failedLocationCount": 2, | ||
"odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" | ||
}, | ||
"actions": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getWebTestMetricAlert.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,41 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "12345678-1234-1234-1234-123456789101", | ||
"resourceGroupName": "rg-example", | ||
"ruleName": "webtest-name-example", | ||
"api-version": "2018-03-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"location": "global", | ||
"type": "Microsoft.Insights/metricAlerts", | ||
"name": "webtest-name-example", | ||
"id": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/metricalerts/webtest-name-example", | ||
"tags": { | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example": "Resource", | ||
"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example": "Resource" | ||
}, | ||
"properties": { | ||
"description": "Automatically created alert rule for availability test \"webtest-name-example\"", | ||
"severity": 4, | ||
"enabled": true, | ||
"scopes": [ | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example", | ||
"/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example" | ||
], | ||
"evaluationFrequency": "PT1M", | ||
"windowSize": "PT15M", | ||
"criteria": { | ||
"webTestId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/webtest-name-example", | ||
"componentId": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/component-example", | ||
"failedLocationCount": 2, | ||
"odata.type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" | ||
}, | ||
"actions": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
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