Events Examples

Line Cross events are batched in 5-min duration events (i.e. "Order duration" is always 300).

[
  {
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-XXXXXXXXXX",
    "startTime": "2025-02-24T23:54:00.841+00:00",
    "endTime": "2025-02-24T23:59:00.841+00:00",
    "type": "bookmark",
    "siteId": "174da780-3258-11ef-8184-b3b92604ea69",
    "subtype": "ai-lineCrossing",
    "title": "Entrance & Exit Count",
    "subtitle": "AI Parser @ Store XXXXX",
    "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "locationTags": [],
    "createTime": "2025-02-25T00:09:18.180+00:00",
    "details": {
      "Order duration": 300,
      "confirmed": false,
      "origin": "connect-ai/line_crossing",
      "localTime": 1854,
      "lineLabel": "XXXXX",
      "debounceValue": 500,
      "lineCrossingEventType": "entrance_and_exit",
      "lineCrossingsIn": 3,
      "lineCrossingsOut": 2,
      "generatedByEventStandard": true,
      "marker": "ai-lineCrossing"
    },
    "cameras": [
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "name": "XXXXXX"
      }
    ]
  }
]

[
  {
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-XXXXXXXXXX",
    "startTime": "2025-02-24T21:58:22.131+00:00",
    "endTime": "2025-02-24T22:00:13.882+00:00",
    "type": "bookmark",
    "siteId": "174da780-3258-11ef-8184-b3b92604ea69",
    "subtype": "ai-zoneTracking",
    "title": "Queue",
    "subtitle": "AI @ Store XXXXX",
    "deviceId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "locationTags": [],
    "createTime": "2025-02-24T22:00:44.766+00:00",
    "details": {
      "duration_sec": 112,
      "Order duration": 111,
      "confirmed": false,
      "origin": "connect-ai/line_crossing",
			"objectId": 835748,
      "polygonId": "zoneId-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "polygonVertices": "[[0.02,0.56],[0.25,0.43],[0.72,0.82],[0.9,0.69],[0.99,0.99],[0.08,0.98]]",
      "localTime": 1658,
      "zoneTrackingEventType": "queue",
      "zoneTrackingThresholdMin": 60,
      "zoneTime": 112,
			"objectKind": "person", // person or vehicle
      "zoneLabel": "XXXXX",
      "generatedByEventStandard": true,
      "marker": "ai-zoneTracking"
    },
    "cameras": [
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "name": "XXXXXX"
      }
    ]
  }
]

[
    {
        "id": "f76a053e-bcc1-4bdb-9388-73b8195e8236",
        "startTime": "2024-12-02T23:01:31.944+00:00",
        "endTime": "2024-12-02T23:01:31.944+00:00",
        "title": "Abandoned Objects and Obstructions - Spot Check Preview",
        "subtitle": "Spot Check - Preview",
        "deviceId": "1ef2af40-1305-11ef-a011-eb490d2d323a",
        "locationTags": [],
        "createTime": "2024-12-02T23:01:40.636+00:00",
        "details": {
 
            "scheduledActivity": {
                "title": "Abandoned Objects and Obstructions - Spot Check Preview",
                "reason": "scheduled-ai-chat",
                "metadata": {
                    "aiChatPrompt": "Task: Analyze security images to...",
                    "aiChatAnswerFormat": "Location: Specify the overall location...",
                    "aiChatAnswers": "[A] Location: QA-147 Regression\n\nCamera HIK 187:\nState: Obstruction detected.\nDescription: Two chairs are positioned in a way that may obstruct the pathway."
                },
                "schedule": "1 * * * *",
                "reoccurringCount": 1
            },
            ...
        },
        "cameras": [
            {
                "id": "9dbd2e40-1305-11ef-a51e-dd22323cce04",
                "name": "HIK 187"
            }
        ]
    }
]