Skip to content

tracks

Subscription

Subscribes to changes in any Track based on the given filter.

Response

Returns TrackMessage

Arguments

NameTypeDescription
filterFilterTrackMessageInput

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
}
}