Skip to content
Merged
Show file tree
Hide file tree
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 Sep 18, 2023
63c4f66
amended the readme file to include the json files for topic types
Supriya-R-Dixit Sep 18, 2023
83906d0
Merge branch 'Azure:main' into sdixit/azureResourceNotifications
Supriya-R-Dixit Sep 18, 2023
33873dd
including all json files
Supriya-R-Dixit Sep 18, 2023
efab60b
Merge branch 'sdixit/azureResourceNotifications' of https://github.co…
Supriya-R-Dixit Sep 19, 2023
7d2f16c
included references to example json files
Supriya-R-Dixit Sep 19, 2023
69f7432
corrected the examles folder name
Supriya-R-Dixit Sep 19, 2023
b83dbd0
made changes to resources.json
Supriya-R-Dixit Sep 19, 2023
374bd61
included common.json for common properties across all ARN event types
Supriya-R-Dixit Sep 25, 2023
c925127
testing $ref
Supriya-R-Dixit Sep 25, 2023
f3bd8e4
testing $ref
Supriya-R-Dixit Sep 25, 2023
2e82c8f
changed $ref and braces around apiVersion
Supriya-R-Dixit Sep 25, 2023
6d5dfc9
changed "DateTime" to "dateTime"
Supriya-R-Dixit Sep 25, 2023
bc47b06
fixed dateTime
Supriya-R-Dixit Sep 25, 2023
b26f95a
dateTime need a pattern with string
Supriya-R-Dixit Sep 25, 2023
b9ff29a
included format property for resourceeventtime
Supriya-R-Dixit Sep 25, 2023
b968d58
created a common properties event for deleted events
Supriya-R-Dixit Sep 25, 2023
0fcc077
corrected the extra comma
Supriya-R-Dixit Sep 25, 2023
8cec4fb
fixed prettier formatting
Supriya-R-Dixit Sep 25, 2023
c413ef0
corrected additionalproperties
Supriya-R-Dixit Sep 25, 2023
884eca5
added cloud event schema samples
Supriya-R-Dixit Sep 26, 2023
1eaf8f3
renamed cloud events schema folder
Supriya-R-Dixit Sep 26, 2023
c563439
changes to cloud event schema folder
Supriya-R-Dixit Sep 26, 2023
f104fb8
included example for availability status changed under cloud events
Supriya-R-Dixit Sep 26, 2023
593d50d
ensured the eventdata has a verb in it
Supriya-R-Dixit Sep 26, 2023
bfa8e2b
removed "azure" from the common events naming
Supriya-R-Dixit Sep 26, 2023
5f920b6
changed names of the base event defintions
Supriya-R-Dixit Sep 27, 2023
827ccf9
removed the type filed under additional properties
Supriya-R-Dixit Sep 27, 2023
5c9e1a4
updated base event type names as suggested by reviewer
Supriya-R-Dixit Sep 27, 2023
eeb894e
removed files related to resources and maintenance resources as they
Supriya-R-Dixit Sep 27, 2023
0697502
removed references to maintenance and resources jsons
Supriya-R-Dixit Sep 27, 2023
57b6fd1
modified the base event structure according to feedback
Supriya-R-Dixit Sep 28, 2023
3447549
fixed formatting issues.
Supriya-R-Dixit Sep 28, 2023
ba3ae19
edited description an description and removed few base events which are
Supriya-R-Dixit Sep 28, 2023
d253b82
changed naming of the base event type as per feedback from Josh Love
Supriya-R-Dixit Sep 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
}
}
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": {
"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"
}
}
}
}
}
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"
}
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"
}
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"
}
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"
}
8 changes: 6 additions & 2 deletions specification/eventgrid/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ input-file:
- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json

- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
```

### Tag: package-2023-06-01-preview
Expand Down Expand Up @@ -172,7 +173,8 @@ input-file:
- Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json

- Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
```

### Suppression
Expand Down Expand Up @@ -264,6 +266,8 @@ input-file:
- $(this-folder)/Microsoft.ContainerService/stable/2018-01-01/ContainerService.json
- $(this-folder)/Microsoft.ApiManagement/stable/2018-01-01/APIManagement.json
- $(this-folder)/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/common.json
- $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json
```

If there are files that should not be in the `all-api-versions` set,
Expand Down