tracks
Subscription
Subscribes to changes in any Track based on the given filter.
Response
Returns TrackMessage
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterTrackMessageInput | Filter tracks by unique identifier of the data source, tag, message state, etc. |
Example
subscription tracks( $filter: FilterTrackMessageInput) { tracks( filter: $filter ) { message { id dataSource { id name type labels } video { id startTime endTime cloudAvailable url thumbnailUrl displayName resolutionHeight resolutionWidth frameRate } modelId tag startTime endTime finished detections { id timestamp metadata createdAt updatedAt direction } properties { __typename } metadata zoneIntersections { id startTime endTime } geofenceIntersections { id startTime endTime } } state }}{ "data": { "tracks": { "message": { "id": "58b9a930-5ec7-8c7d-8931-530b08e58c11", "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] }, "video": { "id": "f8bac42b-3c2d-8091-bb6a-f5aeaa45f850", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "cloudAvailable": true, "url": "url-4cc8", "thumbnailUrl": "thumbnailUrl-d8b7", "displayName": "displayName-359f", "resolutionHeight": "resolutionHeight-066e", "resolutionWidth": "resolutionWidth-62f0", "frameRate": 453.14 }, "modelId": "f3b1dcb1-ac50-8fce-8509-3e824b58448b", "tag": "tag-70cb", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "finished": false, "detections": [ { "id": "6dc9a1cf-6a1e-8bbd-ae52-f8c5902b1b53", "timestamp": "2025-01-01T00:00:00.000Z", "metadata": {}, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "direction": 635.4 } ], "properties": { "__typename": "TrackProperties" }, "metadata": {}, "zoneIntersections": [ { "id": "3e8d4d0c-927e-8530-96d0-45d6d7e4010e", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" } ], "geofenceIntersections": [ { "id": "d5c01ed1-9d21-87b5-90c4-9ac51d76470f", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" } ] }, "state": "END" } }}