geofenceIntersections
Subscription
Subscribes to changes in any GeofenceIntersection based on the given filter.
Response
Returns GeofenceIntersectionMessage
Arguments
| Name | Type | Description |
|---|---|---|
filter | FilterGeofenceIntersectionMessageInput | Filter detections by unique identifier of the device, unique identifier of the geofence, tag, message state, etc. |
Example
subscription geofenceIntersections( $filter: FilterGeofenceIntersectionMessageInput) { geofenceIntersections( filter: $filter ) { message { id geofence { id name labels active } track { id modelId tag startTime endTime finished metadata } startTime endTime } state }}{ "data": { "geofenceIntersections": { "message": { "id": "d5c01ed1-9d21-87b5-90c4-9ac51d76470f", "geofence": { "id": "a9cd2c5d-0ca1-8c25-a90a-11ef7a2bdb24", "name": "name-163f", "labels": [ "labels-914c" ], "active": false }, "track": { "id": "58b9a930-5ec7-8c7d-8931-530b08e58c11", "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, "metadata": {} }, "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" }, "state": "UPDATE" } }}