Skip to content

detectionActivity

Subscription

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

Response

Returns Detection

Arguments

NameTypeDescription
filterFilterDetectionActivityInput

Filter detections by unique identifier of the device, unique identifier of the zone or geofence, type of the event, etc.

Example

subscription detectionActivity(
$filter: FilterDetectionActivityInput
) {
detectionActivity(
filter: $filter
) {
id
track {
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
}
}
timestamp
frame {
number
}
polygon {
type
coordinates
crs {
type
properties
}
}
position {
type
coordinates
crs {
type
properties
}
}
zones {
id
dataSource {
id
name
type
labels
}
name
polygon {
type
coordinates
}
active
createdAt
updatedAt
}
geofences {
id
name
labels
site {
id
name
timezone
}
pointOfInterest {
id
name
metadata
}
bounds {
height
}
active
}
metadata
createdAt
updatedAt
direction
}
}