-
Notifications
You must be signed in to change notification settings - Fork 5.8k
including all json files and examples for system topics introduced by ARN #25848
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
Changes from 8 commits
ae8cc2d
63c4f66
83906d0
33873dd
efab60b
7d2f16c
69f7432
b83dbd0
374bd61
c925127
f3bd8e4
2e82c8f
6d5dfc9
bc47b06
b26f95a
b9ff29a
b968d58
0fcc077
8cec4fb
c413ef0
884eca5
1eaf8f3
c563439
f104fb8
593d50d
bfa8e2b
5f920b6
827ccf9
5c9e1a4
eeb894e
0697502
57b6fd1
3447549
ba3ae19
d253b82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be pointing to health resources. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for description.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "HealthResourcesAvailabilityStatusChangedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "Data specific to the resource", | ||
| "$ref": "#/definitions/ResourceInfoForAvailabilityStatusChangedEvent" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource payload", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "HealthResourcesAvailabilityStatusChangedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_AvailabilityStatusChanged.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceInfoForAvailabilityStatusChangedEvent": { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "description": "details of resourceInfo", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the base resource whose availability status has been impacted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource whose availability status has been influenced", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource whose availability status has been impacted", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the resource payload of the resource whose availability status has been impacted", | ||
| "type": "object" | ||
| } | ||
| } | ||
| }, | ||
| "HealthResourcesResourceAnnotatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "Data specific to the resource", | ||
| "$ref": "#/definitions/ResourceInfoAboutResourceAnnotatedEvent" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource payload", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "HealthResourcesResourceAnnotatedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_ResourceAnnotated.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceInfoAboutResourceAnnotatedEvent": { | ||
| "description": "Resource information related to Annotation event", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the base resource for which the annotation event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource for which the annotation event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource for which the annotation event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the resource payload of the resource whose availability status has been impacted", | ||
| "type": "object" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "MaintenanceResourcesScheduledEventEmittedEventData": { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.MaintenanceResources.ScheduledEventEmitted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "Data specific to the resource", | ||
| "$ref": "#/definitions/ResourceInfoForScheduledEventEmittedEvent" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource payload", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "MaintenanceResourcesScheduledEventEmittedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/MaintenanceResources_ScheduledEventEmitted.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceInfoForScheduledEventEmittedEvent": { | ||
| "description": "Resource information related to scheduled event", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the base resource which is being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "location": { | ||
| "description": "the location of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "tags": { | ||
| "description": "tags on the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the resource payload", | ||
| "type": "object" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Azure Resource Management events published to Azure Event Grid via Azure Resource Notifications", | ||
| "description": "Describes the schema of the Azure Resource Management events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceManagementCreatedOrUpdatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.CreatedOrUpdated event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "Data specific to the resource", | ||
| "$ref": "#/definitions/ResourceInfoAboutCreatedOrUpdatedEvent" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource payload", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ResourceManagementCreatedorUpdatedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/Resources_CreatedOrUpdated.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceInfoAboutCreatedOrUpdatedEvent": { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "description": "details of resourceInfo", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the base resource which is being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "location": { | ||
| "description": "the location of the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "tags": { | ||
| "description": "tags on the resource being created or updated", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the resource payload", | ||
| "type": "object" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceManagementDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.Resources.Deleted event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
| "description": "Data specific to the resource", | ||
| "$ref": "#/definitions/ResourceInfoAboutDeletedEvent" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource payload", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ResourceManagementDeletedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/Resources_Deleted.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceInfoAboutDeletedEvent": { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "description": "Resource information related to resource being deleted. Resource properties bag not present", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the base resource which is being deleted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource being deleted", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource being deleted", | ||
| "type": "string" | ||
| }, | ||
| "location": { | ||
| "description": "the location of the resource being deleted", | ||
| "type": "string" | ||
| }, | ||
| "tags": { | ||
| "description": "tags on the resource being deleted", | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "id": "1fb6fa94-d965-4306-abeq-4810f0774e97", | ||
| "topic": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/availabilityStatuses/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.ResourceHealth/availabilityStatuses", | ||
| "properties": { | ||
| "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "targetResourceType": "Microsoft.Compute/virtualMachines", | ||
| "occurredTime": "2022-11-10T19:59:59.6470000Z", | ||
| "previousAvailabilityState": "Unavailable", | ||
| "availabilityState": "Available" | ||
| } | ||
| }, | ||
| "apiVersion": "2020-09-01" | ||
| }, | ||
| "eventType": "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2022-11-10T19:59:59.6470000Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "id": "8945cf9b-e220-496e-ab4f-f3a239318995", | ||
| "topic": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}/providers/Microsoft.ResourceHealth/resourceAnnotations/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.ResourceHealth/resourceAnnotations", | ||
| "properties": { | ||
| "targetResourceId": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}", | ||
| "targetResourceType": "Microsoft.Compute/virtualMachines", | ||
| "occurredTime": "2023-07-24T19:20:37.9245071Z", | ||
| "annotationName": "VirtualMachineDeallocationInitiated", | ||
| "reason": "Stopping and deallocating", | ||
| "summary": "This virtual machine is stopped and deallocated as requested by an authorized user or process.", | ||
| "context": "Customer Initiated", | ||
| "category": "Not Applicable" | ||
| } | ||
| }, | ||
| "apiVersion": "2022-08-01" | ||
| }, | ||
| "eventType": "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2023-07-24T19:20:37.9245071Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
|
JoshLove-msft marked this conversation as resolved.
Outdated
|
||
| "id": "3da1b9aa-5204-4335-8c33-c54e315dcffe", | ||
| "topic": "/subscriptions/{subscription-id}", | ||
| "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", | ||
| "data": { | ||
| "resourceInfo": { | ||
| "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/providers/microsoft.maintenance/scheduledevents/{event-id}", | ||
| "name": "{event-id}", | ||
| "type": "Microsoft.Maintenance/scheduledEvents", | ||
| "location": "eastus", | ||
| "properties": { | ||
| "DurationInSeconds": 5, | ||
| "Description": "Virtual machine is being paused because of a memory-preserving Live Migration operation.", | ||
| "EventId": "3da1b9aa-5204-4335-8c33-c54e315dcffe", | ||
| "EventSource": "Platform", | ||
| "EventStatus": "Started", | ||
| "EventType": "Freeze", | ||
| "NotBefore": "2023-06-05T07:26:26Z", | ||
| "Resources": [ | ||
| "myvmss_1", | ||
| "myvmss_2" | ||
| ], | ||
| "ResourceType": "VirtualMachine" | ||
| }, | ||
| "apiVersion": "2023-07-01" | ||
| }, | ||
| "eventType": "Microsoft.ResourceNotifications.MaintenanceResources.ScheduledEventEmitted", | ||
| "dataVersion": "3.0", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2017-06-26T18:41:00.9584103Z" | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.