Skip to content
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

S360 - Swagger Correctness - Microsoft.ResourceHealth #16920

Merged
merged 28 commits into from
Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a17cc70
Update ResourceHealth.json
srrudray Nov 30, 2021
9da267b
Update AvailabilityStatus_GetByResource.json
srrudray Nov 30, 2021
ef72335
Update AvailabilityStatuses_List.json
srrudray Nov 30, 2021
8d6fad7
Update AvailabilityStatuses_ListByResourceGroup.json
srrudray Nov 30, 2021
aa444cd
Update AvailabilityStatuses_ListByResourceGroup.json
srrudray Nov 30, 2021
8cfdb31
Update AvailabilityStatuses_ListBySubscriptionId.json
srrudray Nov 30, 2021
150f347
Update AvailabilityStatus_GetByResource.json
srrudray Nov 30, 2021
2842c70
Update AvailabilityStatuses_List.json
srrudray Nov 30, 2021
ac61b87
Update AvailabilityStatuses_ListByResourceGroup.json
srrudray Nov 30, 2021
c59c2cf
Update AvailabilityStatuses_ListByResourceGroup.json
srrudray Nov 30, 2021
0c70566
Update AvailabilityStatuses_ListBySubscriptionId.json
srrudray Nov 30, 2021
a0de171
Update ResourceHealth.json
srrudray Nov 30, 2021
66cc4b9
Update ResourceHealth.json
srrudray Dec 27, 2021
8e0270d
Merge branch 'Azure:main' into sravan_nov30
srrudray Dec 27, 2021
e5148eb
Prettie changes
srrudray Dec 28, 2021
4991f97
Update ResourceHealth.json
srrudray Dec 28, 2021
032845c
Merge branch 'Azure:main' into sravan_nov30
srrudray Dec 28, 2021
061586d
Update ResourceHealth.json
srrudray Dec 28, 2021
b4cc3e2
Update ResourceHealth.json
srrudray Dec 28, 2021
a655508
Update ResourceHealth.json
srrudray Dec 28, 2021
652ec5b
Update ResourceHealth.json
srrudray Dec 28, 2021
bf739f2
Update ResourceHealth.json
srrudray Dec 28, 2021
ed21092
Create Operations_List.json
srrudray Dec 28, 2021
f949722
Update ResourceHealth.json
srrudray Dec 28, 2021
9847ead
Update ResourceHealth.json
srrudray Dec 28, 2021
bf79535
Update ResourceHealth.json
srrudray Dec 28, 2021
dceda4a
Prettie changes 2 files
srrudray Dec 28, 2021
5e44d47
Update Operations_List.json
srrudray Dec 29, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"GetHealthHistoryByResource": {
"$ref": "./examples/Operations_List.json"
}
}
}
},
Expand Down Expand Up @@ -569,6 +574,10 @@
"modelAsString": true
}
},
"title": {
"type": "string",
"description": "Title description of the availability status."
},
"summary": {
"type": "string",
"description": "Summary description of the availability status."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down Expand Up @@ -47,6 +48,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "This virtual machine is running normally",
"reasonChronicity": "Persistent",
"detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"properties": {
"availabilityState": "Available",
"summary": "Vm is available",
"title": "Available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
"detailedStatus": "We have not seen any issues with your virtual machine",
Expand All @@ -43,6 +44,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "Vm is available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down Expand Up @@ -42,6 +43,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example format is wrong. Pls fix this example format.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed it

"parameters": {
"api-version": "2020-05-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ResourceHealth/Operations/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Availability Status",
"operation": "Get Operations",
"description": "Get the operations available for the Microsoft ResourceHealth"
}
},
{
"name": "Microsoft.ResourceHealth/Notifications/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Notification",
"operation": "Receive notification",
"description": "Receives ARM notifications"
}
},
{
"name": "Microsoft.ResourceHealth/AvailabilityStatuses/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Availability Status",
"operation": "Get Availability Statuses",
"description": "Gets the availability statuses for all resources in the specified scope"
}
},
{
"name": "Microsoft.ResourceHealth/AvailabilityStatuses/current/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Availability Status",
"operation": "Get Availability Status",
"description": "Gets the availability status for the specified resource"
}
},
{
"name": "Microsoft.ResourceHealth/events/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Events",
"operation": "Get Service Health Events",
"description": "Get Service Health Events for given subscription"
}
},
{
"name": "Microsoft.ResourceHealth/emergingissues/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Emerging Issues",
"operation": "Get Azure Emerging Issues",
"description": "Get Azure services' emerging issues"
}
},
{
"name": "Microsoft.ResourceHealth/potentialoutages/read",
"display": {
"provider": "Microsoft ResourceHealth"
}
},
{
"name": "Microsoft.ResourceHealth/impactedResources/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Impacted Resources",
"operation": "Get Impacted Resources",
"description": "Get Impacted Resources for given subscription"
}
},
{
"name": "Microsoft.ResourceHealth/register/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Registration",
"operation": "Register with the Provider",
"description": "Registers the subscription for the Microsoft ResourceHealth"
}
},
{
"name": "Microsoft.ResourceHealth/unregister/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Unregistration",
"operation": "Unregister with the Provider",
"description": "Unregisters the subscription for the Microsoft ResourceHealth"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Availability Status",
"operation": "HealthEvent Change",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/Activated/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Health Event",
"operation": "Health Event Activated",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/Updated/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Health Event",
"operation": "Health Event Updated",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/Resolved/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Health Event",
"operation": "Health Event Resolved",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/InProgress/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Health Event",
"operation": "Health Event InProgress",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.Resourcehealth/healthevent/Pending/action",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Health Event",
"operation": "Health Event Pending",
"description": "Denotes the change in health state for the specified resource"
}
},
{
"name": "Microsoft.ResourceHealth/metadata/read",
"display": {
"provider": "Microsoft ResourceHealth",
"resource": "Metadata",
"operation": "Read Metadata",
"description": "Gets Metadata"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "Vm is available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down Expand Up @@ -43,6 +44,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Available",
"title": "Available",
"summary": "Vm is available",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down Expand Up @@ -42,6 +43,7 @@
"location": "eastus",
"properties": {
"availabilityState": "Unavailable",
"title": "Unavailable",
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
"reasonType": "Unplanned",
"reasonChronicity": "Persistent",
Expand Down