-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Merged
lmazuel
merged 35 commits into
Azure:main
from
Supriya-R-Dixit:sdixit/azureResourceNotifications
Sep 29, 2023
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ae8cc2d
including all json and examples for system topics introduced by ARN
Supriya-R-Dixit 63c4f66
amended the readme file to include the json files for topic types
Supriya-R-Dixit 83906d0
Merge branch 'Azure:main' into sdixit/azureResourceNotifications
Supriya-R-Dixit 33873dd
including all json files
Supriya-R-Dixit efab60b
Merge branch 'sdixit/azureResourceNotifications' of https://github.co…
Supriya-R-Dixit 7d2f16c
included references to example json files
Supriya-R-Dixit 69f7432
corrected the examles folder name
Supriya-R-Dixit b83dbd0
made changes to resources.json
Supriya-R-Dixit 374bd61
included common.json for common properties across all ARN event types
Supriya-R-Dixit c925127
testing $ref
Supriya-R-Dixit f3bd8e4
testing $ref
Supriya-R-Dixit 2e82c8f
changed $ref and braces around apiVersion
Supriya-R-Dixit 6d5dfc9
changed "DateTime" to "dateTime"
Supriya-R-Dixit bc47b06
fixed dateTime
Supriya-R-Dixit b26f95a
dateTime need a pattern with string
Supriya-R-Dixit b9ff29a
included format property for resourceeventtime
Supriya-R-Dixit b968d58
created a common properties event for deleted events
Supriya-R-Dixit 0fcc077
corrected the extra comma
Supriya-R-Dixit 8cec4fb
fixed prettier formatting
Supriya-R-Dixit c413ef0
corrected additionalproperties
Supriya-R-Dixit 884eca5
added cloud event schema samples
Supriya-R-Dixit 1eaf8f3
renamed cloud events schema folder
Supriya-R-Dixit c563439
changes to cloud event schema folder
Supriya-R-Dixit f104fb8
included example for availability status changed under cloud events
Supriya-R-Dixit 593d50d
ensured the eventdata has a verb in it
Supriya-R-Dixit bfa8e2b
removed "azure" from the common events naming
Supriya-R-Dixit 5f920b6
changed names of the base event defintions
Supriya-R-Dixit 827ccf9
removed the type filed under additional properties
Supriya-R-Dixit 5c9e1a4
updated base event type names as suggested by reviewer
Supriya-R-Dixit eeb894e
removed files related to resources and maintenance resources as they
Supriya-R-Dixit 0697502
removed references to maintenance and resources jsons
Supriya-R-Dixit 57b6fd1
modified the base event structure according to feedback
Supriya-R-Dixit 3447549
fixed formatting issues.
Supriya-R-Dixit ba3ae19
edited description an description and removed few base events which are
Supriya-R-Dixit d253b82
changed naming of the base event type as per feedback from Josh Love
Supriya-R-Dixit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...entgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of Health Resources events published to Azure Event Grid via Azure Resource Notifications", | ||
| "description": "Describes the schema of the Health Resources events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsResourceUpdatedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_AvailabilityStatusChanged.json" | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAvailabilityStatusChangedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/HealthResources_AvailabilityStatusChanged.json" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAnnotatedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated event.", | ||
| "type": "object", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "./common.json#/definitions/ResourceNotificationsResourceUpdatedEventData" | ||
| } | ||
| ], | ||
| "x-ms-examples": { | ||
| "ResourceNotificationsHealthResourcesAnnotatedEventGridSchema": { | ||
| "$ref": "./examples/event-grid-schema/HealthResources_ResourceAnnotated.json" | ||
| }, | ||
| "ResourceNotificationsHealthResourcesAnnotatedCloudEventsSchema": { | ||
| "$ref": "./examples/cloud-events-schema/HealthResources_ResourceAnnotated.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
75 changes: 75 additions & 0 deletions
75
...cation/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "Schema of the common properties for Azure Resource Notifications (ARN) System topics", | ||
| "description": "Describes the schema of the the common properties across all topic types published by ARN to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "ResourceNotificationsResourceUpdatedDetails": { | ||
| "description": "Describes the schema of the properties under resource info which are common across all ARN system topic events", | ||
| "type": "object", | ||
| "properties": { | ||
| "id": { | ||
| "description": "id of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "name": { | ||
| "description": "name of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "the type of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "location": { | ||
| "description": "the location of the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "tags": { | ||
| "description": "the tags on the resource for which the event is being emitted", | ||
| "type": "string" | ||
| }, | ||
| "properties": { | ||
| "description": "properties in the payload of the resource for which the event is being emitted", | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "description": "properties in the payload of the resource for which the event is being emitted" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsOperationalDetails": { | ||
| "description": "details of operational info", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceEventTime": { | ||
| "description": "Date and Time when resource was updated", | ||
| "type": "string", | ||
| "format": "date-time" | ||
| } | ||
| } | ||
| }, | ||
| "ResourceNotificationsResourceUpdatedEventData": { | ||
| "description": "Describes the schema of the common properties across all ARN system topic events", | ||
| "type": "object", | ||
| "properties": { | ||
| "resourceInfo": { | ||
JoshLove-msft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "description": "resourceInfo details for update event", | ||
| "$ref": "#/definitions/ResourceNotificationsResourceUpdatedDetails", | ||
| "x-ms-client-name": "resourceDetails" | ||
| }, | ||
| "operationalInfo": { | ||
| "description": "details about operational info", | ||
| "$ref": "#/definitions/ResourceNotificationsOperationalDetails", | ||
| "x-ms-client-name": "operationalDetails" | ||
| }, | ||
| "apiVersion": { | ||
| "description": "api version of the resource properties bag", | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
26 changes: 26 additions & 0 deletions
26
...le/2018-01-01/examples/cloud-events-schema/HealthResources_AvailabilityStatusChanged.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { | ||
| "id": "1fb6fa94-d965-4306-abeq-4810f0774e97", | ||
| "source": "/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": "2023-07-24T19:20:37.9245071Z", | ||
| "previousAvailabilityState": "Unavailable", | ||
| "availabilityState": "Available" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2023-12-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged", | ||
| "specversion": "1.0", | ||
| "time": "2023-07-24T19:20:37.9245071Z" | ||
| } |
29 changes: 29 additions & 0 deletions
29
...ons/stable/2018-01-01/examples/cloud-events-schema/HealthResources_ResourceAnnotated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "id": "8945cf9b-e220-496e-ab4f-f3a239318995", | ||
| "source": "/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" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2022-08-01" | ||
| }, | ||
| "type": "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated", | ||
| "specversion": "1.0", | ||
| "time": "2023-07-24T19:20:37.9245071Z" | ||
| } |
27 changes: 27 additions & 0 deletions
27
...able/2018-01-01/examples/event-grid-schema/HealthResources_AvailabilityStatusChanged.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "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": "2023-07-24T19:20:37.9245071Z", | ||
| "previousAvailabilityState": "Unavailable", | ||
| "availabilityState": "Available" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2023-12-01" | ||
| }, | ||
| "eventType": "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2023-07-24T19:20:37.9245071Z" | ||
| } |
30 changes: 30 additions & 0 deletions
30
...tions/stable/2018-01-01/examples/event-grid-schema/HealthResources_ResourceAnnotated.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| { | ||
| "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" | ||
| } | ||
| }, | ||
| "operationalInfo": { | ||
| "resourceEventTime": "2023-07-24T19:20:37.9245071Z" | ||
| }, | ||
| "apiVersion": "2022-08-01" | ||
| }, | ||
| "eventType": "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated", | ||
| "dataVersion": "1", | ||
| "metadataVersion": "1", | ||
| "eventTime": "2023-07-24T19:20:37.9245071Z" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.