New Position (v1.0.0)
Event is triggered after a new position has been stored in the IotProcessing timescale db and the championCheck result has processed the position.
Event
Overview
The NewPosition event is triggered after Todo
Message transport details
- Servicebus: ht-tst-service-bus
- Topic: positions
- Subject: New Position
Schema
schema.json { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Position", "type": "object", "properties": { "uuid": {"type": ["string", "null"]}, "tagId": {"type": ["string", "null"]}, "companyId": {"type": ["string", "null"]}, "tagIdentifier": {"type": ["string", "null"]}, "toolId": {"type": ["string", "null"]}, "phoneId": {"type": ["string", "null"]}, "userId": {"type": ["string", "null"]}, "date": {"type": "string", "format": "date-time"}, "longitude": {"type": "number"}, "latitude": {"type": "number"}, "accuracyMeters": {"type": ["number", "null"]}, "accuracyPercentage": {"type": ["number", "null"]}, "isStrong": {"type": ["boolean", "null"]}, "type": {"type": "string"}, "dataSource": { "type": ["string"], "enum": [ "BTV", "MobileGateway", "Gateway", "Full-ComputedLocation", "Full-Gps", "IET10RC1-Gps", "IET10RC1-Wifi2Macs", "IET10RC1-Wifi1Macs", "IET10RC1-NoWifi-NoGps", "IET10RC1-HeartBeat33", "IET10RC1-HeartBeat39", "IET10RC1-Magnet", "IET10-ComputedLocation", "Computed", "Manual", "QRCode", "Phone", "PhoneSighting" ] }, "magnetClosed": {"type": ["boolean", "null"]}, "batteryLevel": {"type": ["number", "null"]}, "workingHours": {"type": ["number", "null"]}, "workingMinutes": {"type": ["number", "null"]}, "numberWakeUps": {"type": ["number", "null"]}, "workingMeasureInProgress": {"type": ["boolean", "null"]}, "fillingStatus": {"type": ["number", "null"]}, "gatewayIdentifier": {"type": ["string", "null"]}, "correlationId": {"type": "string"}, "reason": { "type": ["string", "null"], "enum": ["Movement", "Periodic", null] }, "inMotion": {"type": ["boolean", "null"]}, "bleType": {"type": ["string", "null"]}, "currentChampion": { "type": ["object", "null"], "properties": { "uuid": {"type": ["string", "null"]}, "tagId": {"type": ["string", "null"]}, "tagIdentifier": {"type": ["string", "null"]}, "toolId": {"type": ["string", "null"]}, "phoneId": {"type": ["string", "null"]}, "userId": {"type": ["string", "null"]}, "date": {"type": "string", "format": "date-time"}, "longitude": {"type": "number"}, "latitude": {"type": "number"}, "accuracyMeters": {"type": ["number", "null"]}, "accuracyPercentage": {"type": ["number", "null"]}, "isStrong": {"type": ["boolean", "null"]}, "type": {"type": "string"}, "dataSource": { "type": ["string"], "enum": [ "BTV", "MobileGateway", "Gateway", "Full-ComputedLocation", "Full-Gps", "IET10RC1-Gps", "IET10RC1-Wifi2Macs", "IET10RC1-Wifi1Macs", "IET10RC1-NoWifi-NoGps", "IET10RC1-HeartBeat33", "IET10RC1-HeartBeat39", "IET10RC1-Magnet", "IET10-ComputedLocation", "Computed", "Manual", "QRCode", "Phone", "PhoneSighting" ] }, "magnetClosed": {"type": ["boolean", "null"]}, "batteryLevel": {"type": ["number", "null"]}, "workingHours": {"type": ["number", "null"]}, "workingMinutes": {"type": ["number", "null"]}, "numberWakeUps": {"type": ["number", "null"]}, "workingMeasureInProgress": {"type": ["boolean", "null"]}, "fillingStatus": {"type": ["number", "null"]}, "gatewayIdentifier": {"type": ["string", "null"]}, "correlationId": {"type": "string"}, "reason": { "type": ["string", "null"], "enum": ["Movement", "Periodic", null] }, "inMotion": {"type": ["boolean", "null"]}, "bleType": {"type": ["string", "null"]} }, "required": [ "tagId", "toolId", "phoneId", "userId", "date", "longitude", "latitude", "accuracyMeters", "accuracyPercentage", "type", "dataSource", "magnetClosed", "batteryLevel", "workingHours", "workingMinutes", "numberWakeUps", "workingMeasureInProgress", "fillingStatus", "gatewayIdentifier", "correlationId" ] } }, "required": [ "tagId", "toolId", "phoneId", "userId", "date", "longitude", "latitude", "accuracyMeters", "accuracyPercentage", "type", "dataSource", "magnetClosed", "batteryLevel", "workingHours", "workingMinutes", "numberWakeUps", "workingMeasureInProgress", "fillingStatus", "gatewayIdentifier", "correlationId" ], "additionalProperties": false, "anyOf": [ { "properties": { "tagIdentifier": {"not": {"type": ["null"]}} } }, { "properties": { "toolId": {"not": {"type": ["null"]}} } } ] }
Schema viewer
Payload Example
{ "tagId": "CBFA909E", "tagIdentifier": "CBFA909E", "toolId": "6A068B70-0E00-4DBB-952B-08DBAEB6AE14", "longitude": 17.5526048, "latitude": 46.9209471, "accuracyMeters": 11.951000213623047, "accuracyPercentage": null, "type": "PhoneGPS", "dataSource": "PhoneSighting", "magnetClosed": null, "batteryLevel": 33, "workingHours": null, "workingMinutes": null, "workingMeasureInProgress": null, "numberWakeUps": null, "fillingStatus": null, "gatewayIdentifier": null, "correlationId": "77772850-4f85-4904-8bf7-be35761afbbe", "phoneId": "233deb64-0290-439c-ab8d-d30d2025bbb4", "userId": "378eb9cd-e844-4828-a809-08db9e31a2e3", "reason": null, "inMotion": null, "bleType": null, "uuid": "fdfc1548-83bc-43e3-8794-208a0ee7bd2d", "isStrong": true, "currentChampion": { "tagId": "CBFA909E", "tagIdentifier": "CBFA909E", "toolId": "6A068B70-0E00-4DBB-952B-08DBAEB6AE14", "date": "2025-09-17T08:11:35.848Z", "longitude": 17.552548, "latitude": 46.9209216, "accuracyMeters": 12.739999771118164, "accuracyPercentage": null, "type": "PhoneGPS", "dataSource": "PhoneSighting", "magnetClosed": null, "batteryLevel": 83, "workingHours": null, "workingMinutes": null, "workingMeasureInProgress": null, "numberWakeUps": null, "fillingStatus": null, "gatewayIdentifier": null, "correlationId": "1f9a2aa1-e643-4cba-ae90-21de95ff82e5", "phoneId": "233deb64-0290-439c-ab8d-d30d2025bbb4", "userId": "378eb9cd-e844-4828-a809-08db9e31a2e3", "reason": null, "inMotion": null, "bleType": null, "uuid": "39d1ac44-cee9-4443-a2ab-44d600b1bf7b", "isStrong": true, }, "date": "2025-10-22T10:22:34.467Z"}