Skip to content
Merged
Show file tree
Hide file tree
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 Aug 7, 2023
6fafe58
Create client_created_or_updated.json
george-guirguis Aug 7, 2023
95fc10a
Add files via upload
george-guirguis Aug 7, 2023
f76607c
Create client_created_or_updated.json
george-guirguis Aug 7, 2023
9e62468
Add files via upload
george-guirguis Aug 7, 2023
44d89e1
Update clientsession_disconnected.json
george-guirguis Aug 7, 2023
ef4ad4e
Update client_deleted.json
george-guirguis Aug 7, 2023
ecc61ba
Update clientsession_connected.json
george-guirguis Aug 7, 2023
a874fd8
Update clientsession_connected.json
george-guirguis Aug 7, 2023
d0c124c
Update clientsession_disconnected.json
george-guirguis Aug 7, 2023
cd0d4b0
keyvalue_deleted
george-guirguis Aug 21, 2023
e483857
addressed prettiercheck and added object type
george-guirguis Aug 22, 2023
299dc10
fixes for eg events
JoshLove-msft Aug 24, 2023
a48fe1b
more changes
JoshLove-msft Aug 24, 2023
6ec679d
paths
JoshLove-msft Aug 24, 2023
7c9681f
disconnect enum
JoshLove-msft Aug 24, 2023
3c03d75
date time
JoshLove-msft Aug 24, 2023
74d3408
arch board updates
JoshLove-msft Aug 28, 2023
015284b
brace
JoshLove-msft Aug 28, 2023
23e982a
fix
JoshLove-msft Aug 28, 2023
4bf1cbc
fix
JoshLove-msft Aug 28, 2023
4f9e318
fix casing
JoshLove-msft Aug 28, 2023
c469ea0
fix description
JoshLove-msft Sep 5, 2023
3c26506
revert swagger changes
JoshLove-msft Sep 5, 2023
2005ee8
add x-ms-examples
JoshLove-msft Sep 5, 2023
79cf385
apply prettier
JoshLove-msft Sep 5, 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
Expand Up @@ -672,6 +672,146 @@
"failedLockTokens",
"succeededLockTokens"
]
},
"EventGridNamespaceMQTTClientCreatedOrUpdatedEventData": {
"type": "object",
"description": "Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event.",
"allOf": [
{
"$ref": "#/definitions/MQTTClientCreatedOrUpdatedEventProperties"
}
],
"properties": {}
},
"EventGridNamespaceMQTTClientDeletedEventData": {
"type": "object",
"description": "Event data for Microsoft.EventGrid.MQTTClientDeleted event.",
"allOf": [
{
"$ref": "#/definitions/MQTTClientDeletedEventProperties"
}
],
"properties": {}
},
"EventGridNamespaceMQTTClientSessionConnectedEventData": {
"type": "object",
"description": "Event data for Microsoft.EventGrid.MQTTClientSessionConnected event.",
"allOf": [
{
"$ref": "#/definitions/MQTTClientSessionConnectedEventProperties"
}
],
"properties": {}
},
"EventGridNamespaceMQTTClientSessionDisconnectedEventData": {
"type": "object",
"description": "Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event.",
"allOf": [
{
"$ref": "#/definitions/MQTTClientSessionDisconnectedEventProperties"
}
],
"properties": {}
},
"MQTTClientCreatedOrUpdatedEventProperties": {
"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."
},
"state": {
"type": "string",
"description": "Configured state of the client. The value could be Enabled or Disabled."
},
"createdOn": {
"type": "string",
"description": "Time the client resource is created based on the provider's UTC time."
},
"updatedOn": {
"type": "string",
"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."
}
}
},
"MQTTClientDeletedEventProperties": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for MQTT Client Deleted 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 deleted."
}
}
},
"MQTTClientSessionConnectedEventProperties": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Connected 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."
},
"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."
},
"namespaceName": {
"type": "string",
"description": "Name of the Event Grid namespace where the MQTT client was connected"
},
"sequenceNumber": {
"type": "string",
"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."
}
}
},
"MQTTClientSessionDisconnectedEventProperties": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for MQTT Client Session Disconnected.",
"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."
},
"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."
},
"namespaceName": {
"type": "string",
"description": "Name of the Event Grid namespace where the MQTT client was disconnected."
},
"sequenceNumber": {
"type": "string",
"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."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,43 +262,6 @@
"CustomEventEvent": {
"type": "object",
"description": "Properties of an event published to an Event Grid topic using a custom schema"
},
"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
}
}
}
},
"parameters": {
Expand Down
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."
Comment thread
JoshLove-msft marked this conversation as resolved.
Outdated
}
}
}
}
}
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"
}
}
}
Loading