From ab55d464273adbecea2a8d7825249a159586e586 Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:31:32 -0800 Subject: [PATCH 1/3] Update ResourceHealth.json fixing Swagger changes --- .../stable/2020-05-01/ResourceHealth.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json index c5756b42382e..7d442409fea9 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json @@ -367,6 +367,10 @@ "modelAsString": true } }, + "title": { + "type": "string", + "description": "Title description of the availability status." + }, "summary": { "type": "string", "description": "Summary description of the availability status." From cc086452fcaabf4309a20917f87307dc589c80cf Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:38:01 -0800 Subject: [PATCH 2/3] Update ResourceHealth.json fixing PR checks --- .../stable/2020-05-01/ResourceHealth.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json index 7d442409fea9..9f9d57aa5ad6 100644 --- a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/ResourceHealth.json @@ -149,6 +149,11 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "GetHealthHistoryByResource": { + "$ref": "./examples/Operations_List.json" + } } } }, From 5fb11ef93261fd1cbe6d8769d1b11b2abfec990d Mon Sep 17 00:00:00 2001 From: srrudray <53835817+srrudray@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:39:56 -0800 Subject: [PATCH 3/3] Create Operations_List.json add new file --- .../2020-05-01/examples/Operations_List.json | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/Operations_List.json diff --git a/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/Operations_List.json b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/Operations_List.json new file mode 100644 index 000000000000..759828c58c0a --- /dev/null +++ b/specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/Operations_List.json @@ -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" + } + } + ] + } + } + } +}