Schema queryapi-subscriptions-websocket.json
Resolve referenced schemas (may reorder keys)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Describes a data Grain sent via the a Query API WebSocket subscription",
"title": "Query API data Grain",
"required": [
"grain_type",
"source_id",
"flow_id",
"origin_timestamp",
"sync_timestamp",
"creation_timestamp",
"rate",
"duration",
"grain"
],
"properties": {
"grain_type": {
"description": "Type of data contained within the 'grain' attribute's payload",
"type": "string",
"enum": [
"event"
]
},
"source_id": {
"description": "Source ID of the Query API instance issuing the data Grain",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"flow_id": {
"description": "Subscription ID under the /subscriptions/ resource of the Query API",
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
},
"origin_timestamp": {
"description": "TAI timestamp at which this data Grain's payload was generated in the format <ts_secs>:<ts_nsecs>",
"type": "string",
"pattern": "^[0-9]+:[0-9]+$"
},
"sync_timestamp": {
"description": "TAI timestamp at which this data Grain's payload was generated in the format <ts_secs>:<ts_nsecs>",
"type": "string",
"pattern": "^[0-9]+:[0-9]+$"