Skip to content

Commit 72517f2

Browse files
srrudrayLeiwang3SQL
authored andcommitted
S360 - Swagger Correctness - Microsoft.ResourceHealth (Azure#16920)
* 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
1 parent 14dee30 commit 72517f2

File tree

10 files changed

+185
-0
lines changed

10 files changed

+185
-0
lines changed

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/ResourceHealth.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
"$ref": "#/definitions/ErrorResponse"
197197
}
198198
}
199+
},
200+
"x-ms-examples": {
201+
"GetHealthHistoryByResource": {
202+
"$ref": "./examples/Operations_List.json"
203+
}
199204
}
200205
}
201206
},
@@ -569,6 +574,10 @@
569574
"modelAsString": true
570575
}
571576
},
577+
"title": {
578+
"type": "string",
579+
"description": "Title description of the availability status."
580+
},
572581
"summary": {
573582
"type": "string",
574583
"description": "Summary description of the availability status."

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatus_GetByResource.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"location": "eastus",
1414
"properties": {
1515
"availabilityState": "Unavailable",
16+
"title": "Unavailable",
1617
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
1718
"reasonType": "Unplanned",
1819
"reasonChronicity": "Persistent",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_List.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"location": "eastus",
1515
"properties": {
1616
"availabilityState": "Unavailable",
17+
"title": "Unavailable",
1718
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
1819
"reasonType": "Unplanned",
1920
"reasonChronicity": "Persistent",
@@ -47,6 +48,7 @@
4748
"location": "eastus",
4849
"properties": {
4950
"availabilityState": "Available",
51+
"title": "Available",
5052
"summary": "This virtual machine is running normally",
5153
"reasonChronicity": "Persistent",
5254
"detailedStatus": "There aren’t any known Azure platform problems affecting this virtual machine",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListByResourceGroup.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"properties": {
1818
"availabilityState": "Available",
1919
"summary": "Vm is available",
20+
"title": "Available",
2021
"reasonType": "Unplanned",
2122
"reasonChronicity": "Persistent",
2223
"detailedStatus": "We have not seen any issues with your virtual machine",
@@ -43,6 +44,7 @@
4344
"location": "eastus",
4445
"properties": {
4546
"availabilityState": "Unavailable",
47+
"title": "Unavailable",
4648
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
4749
"reasonType": "Unplanned",
4850
"reasonChronicity": "Persistent",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/preview/2020-05-01-preview/examples/AvailabilityStatuses_ListBySubscriptionId.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"location": "eastus",
1616
"properties": {
1717
"availabilityState": "Available",
18+
"title": "Available",
1819
"summary": "Vm is available",
1920
"reasonType": "Unplanned",
2021
"reasonChronicity": "Persistent",
@@ -42,6 +43,7 @@
4243
"location": "eastus",
4344
"properties": {
4445
"availabilityState": "Unavailable",
46+
"title": "Unavailable",
4547
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
4648
"reasonType": "Unplanned",
4749
"reasonChronicity": "Persistent",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-05-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.ResourceHealth/Operations/read",
11+
"display": {
12+
"provider": "Microsoft ResourceHealth",
13+
"resource": "Availability Status",
14+
"operation": "Get Operations",
15+
"description": "Get the operations available for the Microsoft ResourceHealth"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.ResourceHealth/Notifications/read",
20+
"display": {
21+
"provider": "Microsoft ResourceHealth",
22+
"resource": "Notification",
23+
"operation": "Receive notification",
24+
"description": "Receives ARM notifications"
25+
}
26+
},
27+
{
28+
"name": "Microsoft.ResourceHealth/AvailabilityStatuses/read",
29+
"display": {
30+
"provider": "Microsoft ResourceHealth",
31+
"resource": "Availability Status",
32+
"operation": "Get Availability Statuses",
33+
"description": "Gets the availability statuses for all resources in the specified scope"
34+
}
35+
},
36+
{
37+
"name": "Microsoft.ResourceHealth/AvailabilityStatuses/current/read",
38+
"display": {
39+
"provider": "Microsoft ResourceHealth",
40+
"resource": "Availability Status",
41+
"operation": "Get Availability Status",
42+
"description": "Gets the availability status for the specified resource"
43+
}
44+
},
45+
{
46+
"name": "Microsoft.ResourceHealth/events/read",
47+
"display": {
48+
"provider": "Microsoft ResourceHealth",
49+
"resource": "Events",
50+
"operation": "Get Service Health Events",
51+
"description": "Get Service Health Events for given subscription"
52+
}
53+
},
54+
{
55+
"name": "Microsoft.ResourceHealth/emergingissues/read",
56+
"display": {
57+
"provider": "Microsoft ResourceHealth",
58+
"resource": "Emerging Issues",
59+
"operation": "Get Azure Emerging Issues",
60+
"description": "Get Azure services' emerging issues"
61+
}
62+
},
63+
{
64+
"name": "Microsoft.ResourceHealth/potentialoutages/read",
65+
"display": {
66+
"provider": "Microsoft ResourceHealth"
67+
}
68+
},
69+
{
70+
"name": "Microsoft.ResourceHealth/impactedResources/read",
71+
"display": {
72+
"provider": "Microsoft ResourceHealth",
73+
"resource": "Impacted Resources",
74+
"operation": "Get Impacted Resources",
75+
"description": "Get Impacted Resources for given subscription"
76+
}
77+
},
78+
{
79+
"name": "Microsoft.ResourceHealth/register/action",
80+
"display": {
81+
"provider": "Microsoft ResourceHealth",
82+
"resource": "Registration",
83+
"operation": "Register with the Provider",
84+
"description": "Registers the subscription for the Microsoft ResourceHealth"
85+
}
86+
},
87+
{
88+
"name": "Microsoft.ResourceHealth/unregister/action",
89+
"display": {
90+
"provider": "Microsoft ResourceHealth",
91+
"resource": "Unregistration",
92+
"operation": "Unregister with the Provider",
93+
"description": "Unregisters the subscription for the Microsoft ResourceHealth"
94+
}
95+
},
96+
{
97+
"name": "Microsoft.Resourcehealth/healthevent/action",
98+
"display": {
99+
"provider": "Microsoft ResourceHealth",
100+
"resource": "Availability Status",
101+
"operation": "HealthEvent Change",
102+
"description": "Denotes the change in health state for the specified resource"
103+
}
104+
},
105+
{
106+
"name": "Microsoft.Resourcehealth/healthevent/Activated/action",
107+
"display": {
108+
"provider": "Microsoft ResourceHealth",
109+
"resource": "Health Event",
110+
"operation": "Health Event Activated",
111+
"description": "Denotes the change in health state for the specified resource"
112+
}
113+
},
114+
{
115+
"name": "Microsoft.Resourcehealth/healthevent/Updated/action",
116+
"display": {
117+
"provider": "Microsoft ResourceHealth",
118+
"resource": "Health Event",
119+
"operation": "Health Event Updated",
120+
"description": "Denotes the change in health state for the specified resource"
121+
}
122+
},
123+
{
124+
"name": "Microsoft.Resourcehealth/healthevent/Resolved/action",
125+
"display": {
126+
"provider": "Microsoft ResourceHealth",
127+
"resource": "Health Event",
128+
"operation": "Health Event Resolved",
129+
"description": "Denotes the change in health state for the specified resource"
130+
}
131+
},
132+
{
133+
"name": "Microsoft.Resourcehealth/healthevent/InProgress/action",
134+
"display": {
135+
"provider": "Microsoft ResourceHealth",
136+
"resource": "Health Event",
137+
"operation": "Health Event InProgress",
138+
"description": "Denotes the change in health state for the specified resource"
139+
}
140+
},
141+
{
142+
"name": "Microsoft.Resourcehealth/healthevent/Pending/action",
143+
"display": {
144+
"provider": "Microsoft ResourceHealth",
145+
"resource": "Health Event",
146+
"operation": "Health Event Pending",
147+
"description": "Denotes the change in health state for the specified resource"
148+
}
149+
},
150+
{
151+
"name": "Microsoft.ResourceHealth/metadata/read",
152+
"display": {
153+
"provider": "Microsoft ResourceHealth",
154+
"resource": "Metadata",
155+
"operation": "Read Metadata",
156+
"description": "Gets Metadata"
157+
}
158+
}
159+
]
160+
}
161+
}
162+
}
163+
}

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatus_GetByResource.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"location": "eastus",
1414
"properties": {
1515
"availabilityState": "Unavailable",
16+
"title": "Unavailable",
1617
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
1718
"reasonType": "Unplanned",
1819
"reasonChronicity": "Persistent",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_List.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"location": "eastus",
1515
"properties": {
1616
"availabilityState": "Unavailable",
17+
"title": "Unavailable",
1718
"summary": "We're sorry, we couldn't automatically recover your virtual machine",
1819
"reasonType": "Unplanned",
1920
"reasonChronicity": "Persistent",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListByResourceGroup.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"location": "eastus",
1717
"properties": {
1818
"availabilityState": "Available",
19+
"title": "Available",
1920
"summary": "Vm is available",
2021
"reasonType": "Unplanned",
2122
"reasonChronicity": "Persistent",
@@ -43,6 +44,7 @@
4344
"location": "eastus",
4445
"properties": {
4546
"availabilityState": "Unavailable",
47+
"title": "Unavailable",
4648
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
4749
"reasonType": "Unplanned",
4850
"reasonChronicity": "Persistent",

specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2020-05-01/examples/AvailabilityStatuses_ListBySubscriptionId.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"location": "eastus",
1616
"properties": {
1717
"availabilityState": "Available",
18+
"title": "Available",
1819
"summary": "Vm is available",
1920
"reasonType": "Unplanned",
2021
"reasonChronicity": "Persistent",
@@ -42,6 +43,7 @@
4243
"location": "eastus",
4344
"properties": {
4445
"availabilityState": "Unavailable",
46+
"title": "Unavailable",
4547
"summary": "We are sorry, we couldn't automatically recovery our virtualmachine",
4648
"reasonType": "Unplanned",
4749
"reasonChronicity": "Persistent",

0 commit comments

Comments
 (0)