-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Event Grid MQTT System events #25526
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
Merged
Changes from 17 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ba33ac6
added event grid namespace system events
george-guirguis 6fafe58
Create client_created_or_updated.json
george-guirguis 95fc10a
Add files via upload
george-guirguis f76607c
Create client_created_or_updated.json
george-guirguis 9e62468
Add files via upload
george-guirguis 44d89e1
Update clientsession_disconnected.json
george-guirguis ef4ad4e
Update client_deleted.json
george-guirguis ecc61ba
Update clientsession_connected.json
george-guirguis a874fd8
Update clientsession_connected.json
george-guirguis d0c124c
Update clientsession_disconnected.json
george-guirguis cd0d4b0
keyvalue_deleted
george-guirguis e483857
addressed prettiercheck and added object type
george-guirguis 299dc10
fixes for eg events
JoshLove-msft a48fe1b
more changes
JoshLove-msft 6ec679d
paths
JoshLove-msft 7c9681f
disconnect enum
JoshLove-msft 3c03d75
date time
JoshLove-msft 74d3408
arch board updates
JoshLove-msft 015284b
brace
JoshLove-msft 23e982a
fix
JoshLove-msft 4bf1cbc
fix
JoshLove-msft 4f9e318
fix casing
JoshLove-msft c469ea0
fix description
JoshLove-msft 3c26506
revert swagger changes
JoshLove-msft 2005ee8
add x-ms-examples
JoshLove-msft 79cf385
apply prettier
JoshLove-msft 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
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
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
177 changes: 177 additions & 0 deletions
177
specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/SystemEvents.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,177 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-01-01", | ||
| "title": "EventGrid SystemEvents", | ||
| "description": "Azure EventGrid System Events" | ||
| }, | ||
| "paths": {}, | ||
| "definitions": { | ||
| "SubscriptionValidationEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "validationCode": { | ||
| "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", | ||
| "type": "string", | ||
| "readOnly": true | ||
| }, | ||
| "validationUrl": { | ||
| "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionValidationResponse": { | ||
| "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", | ||
| "type": "object", | ||
| "properties": { | ||
| "validationResponse": { | ||
| "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "SubscriptionDeletedEventData": { | ||
| "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event.", | ||
| "type": "object", | ||
| "properties": { | ||
| "eventSubscriptionId": { | ||
| "description": "The Azure resource ID of the deleted event subscription.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } | ||
| } | ||
| }, | ||
| "EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": { | ||
| "type": "object", | ||
| "description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "state": { | ||
| "type": "string", | ||
| "description": "Configured state of the client. The value could be Enabled or Disabled", | ||
| "enum": [ | ||
| "Enabled", | ||
| "Disabled" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "mqttClientState", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "createdOn": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "Time the client resource is created based on the provider's UTC time." | ||
| }, | ||
| "updatedOn": { | ||
| "type": "string", | ||
| "format": "date-time", | ||
| "description": "Time the client resource is last updated based on the provider's UTC time. If the client resource was never updated, this value is identical to the value of the 'createdOn' property." | ||
| }, | ||
| "attributes": { | ||
| "type": "object", | ||
| "description": "The key-value attributes that are assigned to the client resource.", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "EventGridNamespaceMQTTClientDeletedEventData": { | ||
| "type": "object", | ||
| "description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" | ||
| } | ||
| ], | ||
| "properties": {} | ||
| }, | ||
| "EventGridNamespaceMQTTClientSessionConnectedEventData": { | ||
| "type": "object", | ||
| "description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "clientSessionName": { | ||
| "type": "string", | ||
| "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." | ||
| }, | ||
| "sequenceNumber": { | ||
| "type": "number", | ||
| "format": "int64", | ||
| "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." | ||
| } | ||
| } | ||
| }, | ||
| "EventGridNamespaceMQTTClientSessionDisconnectedEventData": { | ||
| "type": "object", | ||
| "description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.", | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/EventGridNamespaceMQTTClientEventData" | ||
| } | ||
| ], | ||
| "properties": { | ||
| "clientSessionName": { | ||
| "type": "string", | ||
| "description": "Unique identifier for the MQTT client's session. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." | ||
| }, | ||
| "sequenceNumber": { | ||
| "type": "number", | ||
| "format": "int64", | ||
| "description": "A number that helps indicate order of MQTT client session connected or disconnected events. Latest event will have a sequence number that is higher than the previous event." | ||
| }, | ||
| "disconnectionReason": { | ||
| "type": "string", | ||
| "description": "Reason for the disconnection of the MQTT client's session. The value could be one of the values in the disconnection reasons table.", | ||
| "enum": [ | ||
| "ClientAuthenticationError", | ||
| "ClientAuthorizationError", | ||
| "ClientError", | ||
| "ClientInitiatedDisconnect", | ||
| "ConnectionLost", | ||
| "IpForbidden", | ||
| "QuotaExceeded", | ||
| "ServerError", | ||
| "ServerInitiatedDisconnect", | ||
| "SessionOverflow", | ||
| "SessionTakenOver" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "mqttClientDisconnectionReason", | ||
| "modelAsString": true | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "EventGridNamespaceMQTTClientEventData": { | ||
| "type": "object", | ||
| "description": "Schema of the Data property of an EventGridEvent for MQTT Client Created Or Updated event.", | ||
| "properties": { | ||
| "clientAuthenticationName": { | ||
| "type": "string", | ||
| "description": "Unique identifier for the MQTT client that the client presents to the service for authentication. This case-sensitive string can be up to 128 characters long, and supports UTF-8 characters." | ||
| }, | ||
| "clientName": { | ||
| "type": "string", | ||
| "description": "Name of the client resource in the Event Grid namespace." | ||
| }, | ||
| "namespaceName": { | ||
| "type": "string", | ||
| "description": "Name of the Event Grid namespace where the MQTT client was created or updated." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
19 changes: 19 additions & 0 deletions
19
...t.EventGrid/stable/2018-01-01/examples/cloud-events-schema/client_created_or_updated.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,19 @@ | ||
| { | ||
| "specversion": "1.0", | ||
| "id": "383d1562-c95f-4095-936c-688e72c6b2bb", | ||
| "time": "2023-07-29T01:14:35.8928724Z", | ||
| "type": "Microsoft.EventGrid.MQTTClientCreatedOrUpdated", | ||
| "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.EventGrid/namespaces/myns", | ||
| "subject": "clients/client1", | ||
| "data": { | ||
| "createdOn": "2023-07-29T01:14:34.2048108Z", | ||
| "updatedOn": "2023-07-29T01:14:34.2048108Z", | ||
| "namespaceName": "myns", | ||
| "clientName": "client1", | ||
| "clientAuthenticationName": "client1", | ||
| "state": "Enabled", | ||
| "attributes": { | ||
| "attribute1": "value1" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
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.