-
Notifications
You must be signed in to change notification settings - Fork 5.8k
added fetchEventDetails initial commit #21896
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
leniatgh
merged 5 commits into
dev-resourcehealth-Microsoft.ResourceHealth-2022-10-01-preview
from
dev-resourcehealth/aohri/2022-10-01-preview-fetcheventDetails
Dec 21, 2022
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8606966
added fetchEventDetails initial commit
abhayohri c0b9321
linter fixes
abhayohri d9f905b
removed filterparam
abhayohri ae539e9
re-add incorrectly deleted filter parameter
abhayohri 39467a7
removed query start time parameter
abhayohri 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
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
103 changes: 103 additions & 0 deletions
103
.../preview/2022-10-01-preview/examples/Event_fetchDetailsBySubscriptionIdAndTrackingId.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,103 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "subscriptionId", | ||
| "eventTrackingId": "eventTrackingId", | ||
| "api-version": "2022-10-01-preview", | ||
| "$filter": "properties/status eq 'Active'", | ||
| "queryStartTime": "7/10/2022" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", | ||
| "name": "{eventTrackingId}", | ||
| "type": "/providers/Microsoft.ResourceHealth/events", | ||
| "properties": { | ||
| "eventType": "ServiceIssue", | ||
| "eventSource": "ResourceHealth", | ||
| "status": "Active", | ||
| "title": "ACTIVE: Virtual machines in West US", | ||
| "summary": "An outage alert is being investigated. More information will be provided as it is known.", | ||
| "header": "Your service might have been impacted by an Azure service issue", | ||
| "article": { | ||
| "articleContent": "<html>An outage alert is being investigated. More information will be provided as it is known</html>" | ||
| }, | ||
| "links": [ | ||
| { | ||
| "type": "Hyperlink", | ||
| "displayText": { | ||
| "value": "Request RCA", | ||
| "localizedValue": "Request RCA" | ||
| }, | ||
| "extensionName": "Microsoft_Azure_Health", | ||
| "bladeName": "RequestRCABlade", | ||
| "parameters": { | ||
| "trackingId": "{eventTrackingId}", | ||
| "rcaRequested": "False" | ||
| } | ||
| }, | ||
| { | ||
| "type": "Button", | ||
| "displayText": { | ||
| "value": "Sign up for updates", | ||
| "localizedValue": "Sign up for updates" | ||
| }, | ||
| "extensionName": "Microsoft_Azure_Health", | ||
| "bladeName": "AzureHealthBrowseBlade", | ||
| "parameters": { | ||
| "trackingId": "{eventTrackingId}" | ||
| } | ||
| } | ||
| ], | ||
| "level": "Warning", | ||
| "eventLevel": "Informational", | ||
| "impactStartTime": "2018-11-07T00:00:00Z", | ||
| "impactMitigationTime": "2018-11-08T00:00:00Z", | ||
| "impact": [ | ||
| { | ||
| "impactedService": "Virtual Machines", | ||
| "impactedRegions": [ | ||
| { | ||
| "impactedRegion": "West US", | ||
| "status": "Active", | ||
| "impactedSubscriptions": [ | ||
| "{subscriptionId}" | ||
| ], | ||
| "impactedTenants": [], | ||
| "lastUpdateTime": "2017-12-05T21:05:00Z" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "recommendedActions": { | ||
| "message": "Recommended actions title", | ||
| "actions": [ | ||
| { | ||
| "groupId": 23243, | ||
| "actionText": "action 1" | ||
| }, | ||
| { | ||
| "groupId": 23432, | ||
| "actionText": "action 2" | ||
| } | ||
| ], | ||
| "localeCode": "en" | ||
| }, | ||
| "faqs": [ | ||
| { | ||
| "question": "This is a question", | ||
| "answer": "This is an answer", | ||
| "localeCode": "en" | ||
| } | ||
| ], | ||
| "isHIR": false, | ||
| "enableMicrosoftSupport": true, | ||
| "enableChatWithUs": false, | ||
| "priority": 2, | ||
| "lastUpdateTime": "2018-11-08T00:00:00Z", | ||
| "hirStage": "resolved" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
102 changes: 102 additions & 0 deletions
102
...Health/preview/2022-10-01-preview/examples/Event_fetchDetailsByTenantIdAndTrackingId.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,102 @@ | ||
| { | ||
| "parameters": { | ||
| "eventTrackingId": "eventTrackingId", | ||
| "api-version": "2022-10-01-preview", | ||
| "$filter": "properties/status eq 'Active'", | ||
| "queryStartTime": "7/10/2022" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/providers/Microsoft.ResourceHealth/events/{eventTrackingId}", | ||
| "name": "{eventTrackingId}", | ||
| "type": "/providers/Microsoft.ResourceHealth/events", | ||
| "properties": { | ||
| "eventType": "ServiceIssue", | ||
| "eventSource": "ResourceHealth", | ||
| "status": "Active", | ||
| "title": "ACTIVE: Virtual machines in West US", | ||
| "summary": "An outage alert is being investigated. More information will be provided as it is known.", | ||
| "header": "Your service might have been impacted by an Azure service issue", | ||
| "article": { | ||
| "articleContent": "<html>An outage alert is being investigated. More information will be provided as it is known</html>" | ||
| }, | ||
| "links": [ | ||
| { | ||
| "type": "Hyperlink", | ||
| "displayText": { | ||
| "value": "Request RCA", | ||
| "localizedValue": "Request RCA" | ||
| }, | ||
| "extensionName": "Microsoft_Azure_Health", | ||
| "bladeName": "RequestRCABlade", | ||
| "parameters": { | ||
| "trackingId": "{eventTrackingId}", | ||
| "rcaRequested": "False" | ||
| } | ||
| }, | ||
| { | ||
| "type": "Button", | ||
| "displayText": { | ||
| "value": "Sign up for updates", | ||
| "localizedValue": "Sign up for updates" | ||
| }, | ||
| "extensionName": "Microsoft_Azure_Health", | ||
| "bladeName": "AzureHealthBrowseBlade", | ||
| "parameters": { | ||
| "trackingId": "{eventTrackingId}" | ||
| } | ||
| } | ||
| ], | ||
| "level": "Warning", | ||
| "eventLevel": "Informational", | ||
| "impactStartTime": "2018-11-07T00:00:00Z", | ||
| "impactMitigationTime": "2018-11-08T00:00:00Z", | ||
| "impact": [ | ||
| { | ||
| "impactedService": "Virtual Machines", | ||
| "impactedRegions": [ | ||
| { | ||
| "impactedRegion": "West US", | ||
| "status": "Active", | ||
| "impactedSubscriptions": [], | ||
| "impactedTenants": [ | ||
| "00000000-0000-0000-0000-000000000000" | ||
| ], | ||
| "lastUpdateTime": "2017-12-05T21:05:00Z" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "recommendedActions": { | ||
| "message": "Recommended actions title", | ||
| "actions": [ | ||
| { | ||
| "groupId": 23243, | ||
| "actionText": "action 1" | ||
| }, | ||
| { | ||
| "groupId": 23432, | ||
| "actionText": "action 2" | ||
| } | ||
| ], | ||
| "localeCode": "en" | ||
| }, | ||
| "faqs": [ | ||
| { | ||
| "question": "This is a question", | ||
| "answer": "This is an answer", | ||
| "localeCode": "en" | ||
| } | ||
| ], | ||
| "isHIR": false, | ||
| "enableMicrosoftSupport": true, | ||
| "enableChatWithUs": false, | ||
| "priority": 2, | ||
| "lastUpdateTime": "2018-11-08T00:00:00Z", | ||
| "hirStage": "resolved" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
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.