Skip to content
Merged
Changes from all commits
Commits
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 @@ -3,8 +3,7 @@
"info": {
"version": "2018-01-01",
"title": "Schema of Azure IoT Hub events published to Azure Event Grid",
"description":
"Describes the schema of the Azure IoT Hub events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
"description": "Describes the schema of the Azure IoT Hub events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent."
},
"paths": {},
"definitions": {
Expand Down Expand Up @@ -44,6 +43,15 @@
],
"properties": {}
},
"IotHubDeviceTelemetryEventData": {
"description": "Event data for Microsoft.Devices.DeviceTelemetry event.",
"allOf": [
{
"$ref": "#/definitions/DeviceTelemetryEventProperties"
}
],
"properties": {}
},
"DeviceLifeCycleEventProperties": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, DeviceDeleted).",
Expand All @@ -58,7 +66,7 @@
},
"twin": {
"description": "Information about the device twin, which is the cloud representation of application device metadata.",
"$ref" : "#/definitions/DeviceTwinInfo"
"$ref": "#/definitions/DeviceTwinInfo"
}
}
},
Expand All @@ -80,7 +88,31 @@
},
"deviceConnectionStateEventInfo": {
"description": "Information about the device connection state event.",
"$ref" : "#/definitions/DeviceConnectionStateEventInfo"
"$ref": "#/definitions/DeviceConnectionStateEventInfo"
}
}
},
"DeviceTelemetryEventProperties": {
"type": "object",
"description": "Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry).",
"properties": {
"body": {
"type": "object",
"description": "The content of the message from the device."
},
"properties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Application properties are user-defined strings that can be added to the message. These fields are optional."
},
"systemProperties": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "System properties help identify contents and source of the messages."
}
}
},
Expand Down Expand Up @@ -118,11 +150,11 @@
"properties": {
"desired": {
"description": "A portion of the properties that can be written only by the application back-end, and read by the device.",
"$ref" : "#/definitions/DeviceTwinProperties"
"$ref": "#/definitions/DeviceTwinProperties"
},
"reported": {
"description": "A portion of the properties that can be written only by the device, and read by the application back-end.",
"$ref" : "#/definitions/DeviceTwinProperties"
"$ref": "#/definitions/DeviceTwinProperties"
}
}
},
Expand Down Expand Up @@ -160,28 +192,28 @@
"properties": {
"metadata": {
"description": "Metadata information for the properties JSON document.",
"$ref" : "#/definitions/DeviceTwinMetadata",
"x-ms-client-name" : "$metadata"
"$ref": "#/definitions/DeviceTwinMetadata",
"x-ms-client-name": "$metadata"
},
"version": {
"type": "number",
"description": "Version of device twin properties.",
"x-ms-client-name" : "$version"
"x-ms-client-name": "$version"
}
}
},
"DeviceTwinMetadata" : {
"DeviceTwinMetadata": {
"type": "object",
"description": "Metadata information for the properties JSON document.",
"properties": {
"lastUpdated": {
"type": "string",
"description": "The ISO8601 timestamp of the last time the properties were updated.",
"x-ms-client-name" : "$lastUpdated"
"x-ms-client-name": "$lastUpdated"
}
}
},
"DeviceConnectionStateEventInfo" : {
"DeviceConnectionStateEventInfo": {
"type": "object",
"description": "Information about the device connection state event.",
"properties": {
Expand Down