Skip to content

Commit

Permalink
Adding 2023-07-01-preview
Browse files Browse the repository at this point in the history
a) Adding maintenance related fields for events
b) Adding maintenance related fields for impacted resources
c) Adding subeventType for events
  • Loading branch information
mkatkam committed Aug 22, 2023
1 parent ff7e78b commit 446c8a3
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,17 @@
"modelAsString": true
}
},
"eventSubType": {
"type": "string",
"description": "Sub type of the event. Currently used to determine retirement communications for health advisory events",
"enum": [
"Retirement"
],
"x-ms-enum": {
"name": "EventSubTypeValues",
"modelAsString": true
}
},
"eventSource": {
"type": "string",
"description": "Source of event.",
Expand Down Expand Up @@ -1356,6 +1367,18 @@
"impactType": {
"type": "string",
"description": "The type of the impact"
},
"maintenanceId": {
"type": "string",
"description": "Unique identifier for planned maintenance event."
},
"maintenanceType": {
"type": "string",
"description": "The type of planned maintenance event."
},
"argQuery": {
"type": "string",
"description": "Azure Resource Graph query to fetch the affected resources from their existing Azure Resource Graph locations."
}
}
}
Expand Down Expand Up @@ -2048,6 +2071,31 @@
"type": "string",
"description": "Impacted resource region name."
},
"resourceName": {
"readOnly": true,
"type": "string",
"description": "Resource name."
},
"resourceGroup": {
"readOnly": true,
"type": "string",
"description": "Resource group name."
},
"maintenanceStatus": {
"readOnly": true,
"type": "string",
"description": "Status of maintenance for the impacted resource."
},
"maintenanceStartTime": {
"readOnly": true,
"type": "string",
"description": "Start time of maintenance for the impacted resource."
},
"maintenanceEndTime": {
"readOnly": true,
"type": "string",
"description": "End time of maintenance for the impacted resource."
},
"info": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@
"enableChatWithUs": false,
"priority": 2,
"lastUpdateTime": "2018-11-08T00:00:00Z",
"hirStage": "resolved"
"hirStage": "resolved",
"maintenanceId": "{maintenanceId}",
"maintenanceType": "{maintenanceType}",
"argQuery": "{argQuery}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
"enableChatWithUs": false,
"priority": 2,
"lastUpdateTime": "2018-11-08T00:00:00Z",
"hirStage": "resolved"
"hirStage": "resolved",
"maintenanceId": "{maintenanceId}",
"maintenanceType": "{maintenanceType}",
"argQuery": "{argQuery}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,50 @@
"enableChatWithUs": false,
"priority": 2,
"lastUpdateTime": "2018-11-08T00:00:00Z",
"hirStage": "resolved"
"hirStage": "resolved",
"maintenanceId": "{maintenanceId}",
"maintenanceType": "{maintenanceType}",
"argQuery": "{argQuery}"
}
},
{
"id": "Microsoft.ResourceHealth/events/ABH3-RET",
"name": "ABH3-RET",
"type": "Microsoft.ResourceHealth/events",
"properties": {
"eventType": "HealthAdvisory",
"eventSubType": "Retirement",
"eventSource": "ServiceHealth",
"status": "Active",
"title": "retirement test",
"summary": "retirement test",
"description": "retirement test",
"platformInitiated": true,
"header": "retirement test",
"level": "Warning",
"eventLevel": "Warning",
"impactStartTime": "2023-08-14T19:10:00Z",
"impactMitigationTime": "2023-08-14T20:10:00Z",
"impact": [
{
"impactedService": "Virtual Machines",
"impactedRegions": [
{
"impactedRegion": "West US",
"status": "Active",
"impactedSubscriptions": [
"{subscriptionId}"
],
"impactedTenants": [],
"lastUpdateTime": "2023-08-14T20:10:00Z"
}
]
}
],
"recommendedActions": {},
"isHIR": false,
"priority": 22,
"lastUpdateTime": "2023-08-14T20:10:00Z"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"properties": {
"targetResourceType": "Microsoft.Compute/VirtualMachines",
"targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm",
"targetRegion": "westus"
"targetRegion": "westus",
"resourceName": "{resourceName}",
"resourceGroup": "{resourceGroup}",
"maintenanceStatus": "{maintenanceStatus}",
"maintenanceStartTime": "{maintenanceStartTime}",
"maintenanceEndTime": "{maintenanceEndTime}"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
"properties": {
"targetResourceType": "Microsoft.Compute/VirtualMachines",
"targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/TEST/providers/Microsoft.Compute/virtualMachines/testvm",
"targetRegion": "westus"
"targetRegion": "westus",
"resourceName": "{resourceName}",
"resourceGroup": "{resourceGroup}",
"maintenanceStatus": "{maintenanceStatus}",
"maintenanceStartTime": "{maintenanceStartTime}",
"maintenanceEndTime": "{maintenanceEndTime}"
}
},
{
Expand Down Expand Up @@ -51,7 +56,12 @@
"properties": {
"targetResourceType": "Microsoft.Compute/VirtualMachines",
"targetResourceId": "/subscriptions/4970d23e-ed41-4670-9c19-02a1d2808dd9/resourceGroups/Dev2/providers/Microsoft.Compute/virtualMachines/testvm2",
"targetRegion": "westus"
"targetRegion": "westus",
"resourceName": "{resourceName}",
"resourceGroup": "{resourceGroup}",
"maintenanceStatus": "{maintenanceStatus}",
"maintenanceStartTime": "{maintenanceStartTime}",
"maintenanceEndTime": "{maintenanceEndTime}"
}
}
],
Expand Down

0 comments on commit 446c8a3

Please sign in to comment.