-
Notifications
You must be signed in to change notification settings - Fork 5.9k
actionRules - AlertsManagement #4955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0317e67
actionRules - AlertsManagement
roramcmsft 6fad44a
Code review spelling and JSON fix
roramcmsft 1c05fd8
Update AlertsManagement.json
roramcmsft b1f1443
Update AlertsManagement.json
roramcmsft 72be070
Changed enabled flag to status enum
roramcmsft db27395
added location as mandatory parameter
roramcmsft 95f5b3f
changed "createdDateTime"/"createdUserName" to "createdAt"/"createdBy"
roramcmsft de9cb88
new line at end of file
roramcmsft 01a19cd
new line at end of file
roramcmsft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2,062 changes: 2,062 additions & 0 deletions
2,062
...anager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/AlertsManagement.json
Large diffs are not rendered by default.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
...osoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/ActionRules_Create.json
This file contains hidden or 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,70 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "actionRuleName": "DailySuppression", | ||
| "actionRule": { | ||
| "properties": { | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| }, | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"DailySuppression", | ||
| "tags": {} | ||
| } | ||
| } | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
...osoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/ActionRules_Delete.json
This file contains hidden or 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,15 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "actionRuleName": "DailySuppression", | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| true | ||
| } | ||
| } | ||
| } | ||
| } | ||
45 changes: 45 additions & 0 deletions
45
...soft.AlertsManagement/preview/2018-11-02-privatepreview/examples/ActionRules_GetById.json
This file contains hidden or 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,45 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "actionRuleName": "DailySuppression" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"DailySuppression", | ||
| "tags": {} | ||
| } | ||
| } | ||
| } | ||
| } |
82 changes: 82 additions & 0 deletions
82
...Management/preview/2018-11-02-privatepreview/examples/ActionRules_List_ResourceGroup.json
This file contains hidden or 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,82 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", | ||
| "resourceGroup": "alertscorrelationrg" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules?api-version=2018-11-02-privatepreview&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1", | ||
| "value": [ | ||
| { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"DailySuppression", | ||
| "tags": {} | ||
| }, | ||
| { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "Resource", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.Compute/VirtualMachines/testResource"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev1", "Sev3" ], | ||
| "monitorService": [ "Platform", "Application Insights" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Weekly", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "19:00:00", | ||
| "endTime": "10:00:00", | ||
| "recurrenceValues": [ 0, 3, 6 ] | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for weekly suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"WeeklySuppression", | ||
| "tags": {} | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
81 changes: 81 additions & 0 deletions
81
...sManagement/preview/2018-11-02-privatepreview/examples/ActionRules_List_Subscription.json
This file contains hidden or 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,81 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "nextLink":"https://management.azure.com:443/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/providers/Microsoft.AlertsManagement/actionRules?api-version=2018-11-02-privatepreview&ctoken=%2bRID%3aPlwOAPHEGwB9UwEAAAAgCw%3d%3d%23RT%3a2%23TRC%3a500%23RTD%3aqtQyMDE4LTA2LTEyVDE1OjEyOjE1", | ||
| "value": [ | ||
| { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"DailySuppression", | ||
| "tags": {} | ||
| }, | ||
| { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "Resource", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.Compute/VirtualMachines/testResource"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev1", "Sev3" ], | ||
| "monitorService": [ "Platform", "Application Insights" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Weekly", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "19:00:00", | ||
| "endTime": "10:00:00", | ||
| "recurrenceValues": [ 0, 3, 6 ] | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for weekly suppression", | ||
| "resourceGroup": "alertsrg", | ||
| "enabled": true, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/WeeklySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"WeeklySuppression", | ||
| "tags": {} | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
55 changes: 55 additions & 0 deletions
55
...rosoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/ActionRules_Patch.json
This file contains hidden or 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,55 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-11-02-privatepreview", | ||
| "subscriptionId": "1e3ff1c0-771a-4119-a03b-be82a51e232d", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "actionRuleName": "DailySuppression", | ||
| "patchObject": { | ||
| "properties": { | ||
| "enabled": false, | ||
| "tags": { | ||
| "suppress": "test" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties":{ | ||
| "scope": { | ||
| "type": "ResourceGroup", | ||
| "values": ["/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg"] | ||
| }, | ||
| "conditions": { | ||
| "severity": [ "Sev0", "Sev2" ], | ||
| "monitorService": [ "Platform", "Application Insights" ], | ||
| "targetResourceType": [ "Microsoft.Compute/VirtualMachines" ] | ||
| }, | ||
| "suppressionConfig": { | ||
| "recurrenceType" : "Daily", | ||
| "schedule": { | ||
| "startDate": "12/09/2018", | ||
| "endDate": "12/18/2018", | ||
| "startTime": "06:00:00", | ||
| "endTime": "14:00:00" | ||
| } | ||
| }, | ||
| "description": "Action rule on resource group for daily suppression", | ||
| "resourceGroup": "alertscorrelationrg", | ||
| "enabled": false, | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "createdUserName":"abc@microsoft.com", | ||
| "lastModifiedUserName":"xyz@microsoft.com" | ||
| }, | ||
| "id":"/subscriptions/1e3ff1c0-771a-4119-a03b-be82a51e232d/resourceGroups/alertscorrelationrg/providers/Microsoft.AlertsManagement/actionRules/DailySuppression", | ||
| "type":"Microsoft.AlertsManagement/actionRules", | ||
| "name":"DailySuppression", | ||
| "tags": { | ||
| "suppress": "test" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
...osoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/Alerts_ChangeState.json
This file contains hidden or 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,38 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-05-05-preview", | ||
| "subscriptionId": "9e261de7-c804-4b9d-9ebf-6f50fe350a9a", | ||
| "alertId": "66114d64-d9d9-478b-95c9-b789d6502100", | ||
| "newState": "Acknowledged", | ||
| "body":{ | ||
| "comments" : "Acknowledging alert" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "properties": { | ||
| "severity":"Sev3", | ||
| "signalType":"Log", | ||
| "alertState":"New", | ||
| "monitorCondition":"Fired", | ||
| "monitorService":"Application Insights", | ||
| "targetResourceName":"alertscorrelationworkerrole_int", | ||
| "targetResourceGroup":"alertscorrelationrg", | ||
| "targetResource":"/subscriptions/dd91de05-d791-4ceb-b6dc-988682dc7d72/resourcegroups/alertscorrelationrg/providers/microsoft.insights/components/alertscorrelationworkerrole_int", | ||
| "targetResourceType":"components", | ||
| "sourceCreatedId":"57c049b5-9654-4bb4-a443-3bac3f725d34", | ||
| "smartGroupId":"a808445e-bb38-4751-85c2-1b109ccc1059", | ||
| "smartGroupingReason":"Alerts that frequently occur together have been grouped.", | ||
| "startDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedDateTime":"2018-06-12T22:05:09Z", | ||
| "lastModifiedUserName":"vikramm@microsoft.com", | ||
| "payload":{} | ||
| }, | ||
| "id":"/subscriptions/9e261de7-c804-4b9d-9ebf-6f50fe350a9a/providers/Microsoft.AlertsManagement/alerts/66114d64-d9d9-478b-95c9-b789d6502100", | ||
| "type":"Microsoft.AlertsManagement/alerts", | ||
| "name":"cpu alert" | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.