Skip to content

Commit

Permalink
S360 - Swagger Correctness - Microsoft.ResourceHealth (#16920)
Browse files Browse the repository at this point in the history
* Update ResourceHealth.json

fixed s360

* Update AvailabilityStatus_GetByResource.json

s360

* Update AvailabilityStatuses_List.json

s360

* Update AvailabilityStatuses_ListByResourceGroup.json

s360

* Update AvailabilityStatuses_ListByResourceGroup.json

s360

* Update AvailabilityStatuses_ListBySubscriptionId.json

s360

* Update AvailabilityStatus_GetByResource.json

s360

* Update AvailabilityStatuses_List.json

s360

* Update AvailabilityStatuses_ListByResourceGroup.json

s360

* Update AvailabilityStatuses_ListByResourceGroup.json

s360

* Update AvailabilityStatuses_ListBySubscriptionId.json

s360

* Update ResourceHealth.json

s360

* Update ResourceHealth.json

removing the "title" change in Line 370 - see if checks will be good

* Prettie changes

* Update ResourceHealth.json

fixing PR check Operations_List

* Update ResourceHealth.json

fixing PR checks

* Update ResourceHealth.json

fix PR checks 9:06AM

* Update ResourceHealth.json

fix PR checks

* Update ResourceHealth.json

fixed spaces

* Update ResourceHealth.json

fixed ResourceHealth.json

* Create Operations_List.json

fixed PR checks

* Update ResourceHealth.json

fixed PR checks

* Update ResourceHealth.json

fixed PR checks

* Update ResourceHealth.json

trying to fix

* Prettie changes 2 files

* Update Operations_List.json

fixed PR comment
  • Loading branch information
srrudray authored Dec 29, 2021
1 parent b5007f3 commit 008c081
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 0 deletions.
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 @@
{
"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

0 comments on commit 008c081

Please sign in to comment.