Skip to content

Instantly share code, notes, and snippets.

@bobvanluijt
Created February 6, 2017 21:11
Show Gist options
  • Save bobvanluijt/506e22a4e72fe45e9adccb18ebe405f5 to your computer and use it in GitHub Desktop.
Save bobvanluijt/506e22a4e72fe45e9adccb18ebe405f5 to your computer and use it in GitHub Desktop.
Weave - event
{
"Event": {
"externalTypeName": "clouddevices.Event",
"properties": {
"commandPatch": {
"description": "Command-related changes (if applicable).",
"properties": {
"commandId": {
"description": "ID of the affected command.",
"type": "string"
},
"state": {
"description": "New command state.",
"type": "string"
}
},
"type": "object"
},
"connectionStatus": {
"description": "New device connection state (if connectivity change event).",
"type": "string"
},
"deviceId": {
"description": "The device that was affected by this event.",
"type": "string"
},
"id": {
"description": "ID of the event.",
"type": "string"
},
"kind": {
"default": "weave#event",
"description": "Identifies what kind of resource this is. Value: the fixed string \"weave#event\".",
"type": "string"
},
"statePatch": {
"$ref": "#/definitions/JsonObject",
"description": "The device state patch (if applicable)."
},
"timeMs": {
"description": "Time the event was generated in milliseconds since epoch UTC.",
"format": "int64",
"type": "string"
},
"type": {
"description": "Type of the event.",
"enum": [
"adapterDeactivated",
"commandCancelled",
"commandCreated",
"commandDeleted",
"commandExpired",
"commandUpdated",
"deviceAclUpdated",
"deviceConnectivityChange",
"deviceCreated",
"deviceDeleted",
"devicePlaceUpdated",
"deviceTransferred",
"deviceUpdated",
"deviceUseTimeUpdated",
"deviceUserAclCreated",
"deviceUserAclDeleted",
"deviceUserAclUpdated",
"eventsDeleted",
"eventsRecordingDisabled",
"eventsRecordingEnabled",
"placeCreated",
"placeDeleted",
"placeMemberAdded",
"placeMemberRemoved",
"placeUpdated",
"roomCreated",
"roomDeleted",
"roomUpdated"
],
"type": "string"
},
"userEmail": {
"description": "User that caused the event (if applicable).",
"type": "string"
}
},
"type": "object"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment