{
  "before": {
    "at": 1303761.477726473,
    "channels": {
      "rtsp-test-source-01": {
        "at": 1303761.549684177,
        "state": {
          "stream_id": "rtsp-test-01",
          "site_id": null,
          "source_type": "rtsp",
          "state": "running",
          "desired_state": "running",
          "observed_state": "running",
          "run_generation": 1,
          "run_id": "9cd709ec-f7ac-4965-bcbb-9398f3c40674",
          "roles": {
            "det": {
              "state": "first_frame",
              "required": true,
              "initialized": true,
              "last_frame_at": 1789451040.643428,
              "source_stage": "preprocess_output",
              "source_stage_at": 1789451040.7490826,
              "source_stages": {
                "pipeline_state_changed": 1789448824.2821472,
                "decoded_frame_received": 1789451040.7471094,
                "preprocess_output": 1789451040.7490826,
                "infer_output": 1789451040.6758468,
                "consume_entered": 1789451040.6771486,
                "native_completed": 1789451040.6915224,
                "inference_frame_completed": 1789451040.6433842
              },
              "stage_counts": {
                "pipeline_state_changed": 88,
                "decoded_frame_received": 22173,
                "preprocess_output": 22173,
                "infer_output": 22172,
                "consume_entered": 22172,
                "native_completed": 22172,
                "inference_frame_completed": 17888
              },
              "last_error": null,
              "stage_first_at": {
                "pipeline_state_changed": 1789448822.7215917,
                "decoded_frame_received": 1789448824.1911626,
                "preprocess_output": 1789448824.2387598,
                "infer_output": 1789448824.2703612,
                "consume_entered": 1789448824.277234,
                "native_completed": 1789448824.290971,
                "inference_frame_completed": 1789448824.415371
              }
            }
          },
          "last_error": null,
          "cleanup_error": null,
          "cleanup_pending": false,
          "restart_pending": false,
          "last_cleanup": null,
          "started_at": 1789448821.2860403,
          "uptime_s": 2219.5,
          "inference_profile": {
            "roles": [
              "det"
            ],
            "requested_models": {
              "det": "RFDETRMedium"
            },
            "active_models": {
              "det": "RFDETRMedium"
            },
            "degraded_roles": [],
            "score_threshold": 0.5,
            "class_min_confidence": {}
          },
          "metadata_path": {
            "state": "CONNECTED",
            "error": null,
            "display_threshold": 0.25,
            "visual": null,
            "sample_error": null,
            "performance": {
              "analysisFpsTarget": 10.0,
              "sampled_ns": 1303761518580055,
              "counts": {
                "decoded": 22164,
                "selected": 22164,
                "preprocess": 22166,
                "infer": 22168,
                "native": 22170,
                "result": 17888,
                "publisher_submit": 17888
              },
              "first_ns": {
                "decoded": 1301544938471029,
                "selected": 1301544938505147,
                "preprocess": 1301544985976289,
                "infer": 1301545017627187,
                "native": 1301545038319108,
                "result": 1301545162196312,
                "publisher_submit": 1301545162778196
              },
              "last_ns": {
                "decoded": 1303761494445447,
                "selected": 1303761494472781,
                "preprocess": 1303761496454091,
                "infer": 1303761423171722,
                "native": 1303761438853106,
                "result": 1303761389670666,
                "publisher_submit": 1303761390777518
              },
              "detail": false,
              "pending_samples": 0,
              "last_frame": {
                "selected": [
                  22172,
                  2217920488433
                ],
                "preprocess": [
                  22172,
                  2217920488433
                ],
                "infer": [
                  22171,
                  2217820488433
                ],
                "native": [
                  22171,
                  2217820488433
                ],
                "result": [
                  22170,
                  2217720488433
                ],
                "publisher_submit": [
                  22170,
                  2217720488433
                ]
              },
              "observation_missed": 31,
              "durations": {},
              "sourceFpsObserved": null,
              "closed": false,
              "tracking_profiles": []
            },
            "queued": 0,
            "events_created": 613,
            "processed": 17888,
            "stale": 4283
          },
          "scenarios": {
            "active": [
              "INTRUSION"
            ],
            "disabled": []
          },
          "zones": [],
          "frames_in_window": 1000,
          "per_task_buffers": {
            "det": 17888
          },
          "latest": {
            "fn": 22170,
            "det": 7,
            "persons": 5,
            "pose_persons": 0,
            "seg": 0
          }
        },
        "redis": {
          "at": 1303761.549734499,
          "entries": 17889,
          "length": 30,
          "last": "1789451040812-0",
          "pttl": 9978,
          "frame": {
            "schemaVersion": "1",
            "cameraId": "rtsp-test-source-01",
            "sourceId": "rtsp-test-source-01",
            "serverId": "test-ai",
            "streamId": "rtsp-test-01",
            "runId": "9cd709ec-f7ac-4965-bcbb-9398f3c40674",
            "runGeneration": 1,
            "frameSeq": 22171,
            "ptsNs": 2217820488433,
            "ingestTimeWallMs": 1789451040651,
            "frameWidth": 1280,
            "frameHeight": 720,
            "coordinateSpace": "SOURCE_FRAME",
            "format": "XYXY",
            "normalized": true,
            "origin": "TOP_LEFT",
            "configVersion": null,
            "frameTime": {
              "anchorId": null,
              "startWallTimeMs": 1789433784668,
              "anchorRtpTimestamp": 0,
              "rtpClockRate": 90000,
              "rtpTimestamp": 1553028473,
              "rtpTimestampExt": null,
              "detectedAtWallMs": 1789451040539,
              "syncStatus": "ESTIMATED",
              "timeSource": "SYNTHETIC_TEST_ANCHOR"
            },
            "objects": [
              {
                "objectRef": "0",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.9317114353179932,
                "bbox": [
                  0.66058349609375,
                  0.21533203125,
                  0.80133056640625,
                  0.99560546875
                ],
                "trackId": 74161,
                "eventIds": [
                  "47d541ec-66a4-4ce4-a11e-da6ad0faa441"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.73095703125,
                      0.99560546875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "47d541ec-66a4-4ce4-a11e-da6ad0faa441"
                  }
                ]
              },
              {
                "objectRef": "2",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8992984294891357,
                "bbox": [
                  0.428009033203125,
                  0.34344482421875,
                  0.469451904296875,
                  0.56915283203125
                ],
                "trackId": 74481,
                "eventIds": [
                  "2cba6508-51c4-42c0-b56e-840f6f0af6ba"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.44873046875,
                      0.56915283203125
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "2cba6508-51c4-42c0-b56e-840f6f0af6ba"
                  }
                ]
              },
              {
                "objectRef": "3",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8630456924438477,
                "bbox": [
                  0.5641250610351562,
                  0.36212158203125,
                  0.5891952514648438,
                  0.54119873046875
                ],
                "trackId": 73841,
                "eventIds": [
                  "32d2322e-2503-429b-bd30-7044706ea54a"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.57666015625,
                      0.54119873046875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "32d2322e-2503-429b-bd30-7044706ea54a"
                  }
                ]
              },
              {
                "objectRef": "4",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8485961556434631,
                "bbox": [
                  0.6172027587890625,
                  0.44757080078125,
                  0.6542816162109375,
                  0.55145263671875
                ],
                "trackId": 74641,
                "eventIds": [
                  "a120400e-68bc-42d7-8ab0-6d0575da9101"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.6357421875,
                      0.55145263671875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "a120400e-68bc-42d7-8ab0-6d0575da9101"
                  }
                ]
              },
              {
                "objectRef": "6",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.5687152743339539,
                "bbox": [
                  0.636993408203125,
                  0.46466064453125,
                  0.667694091796875,
                  0.55584716796875
                ],
                "trackId": 74801,
                "eventIds": [],
                "labelText": "person",
                "color": "#00CC66",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.65234375,
                      0.55584716796875
                    ],
                    "inside": true,
                    "state": "CONFIRMING",
                    "confidence": 0.5,
                    "eventId": null
                  }
                ]
              }
            ],
            "scenarioConfig": {
              "INTRUSION": {
                "enabled": true,
                "roi_id": "primary",
                "roi_name": "Test center-right",
                "debug_roi": true,
                "roi": [
                  [
                    0.35,
                    0.3
                  ],
                  [
                    0.85,
                    0.3
                  ],
                  [
                    0.85,
                    1
                  ],
                  [
                    0.35,
                    1
                  ]
                ],
                "point_x": 0.5,
                "point_y": 1.0,
                "confidence": 0.5,
                "dwell_seconds": 0.5,
                "rearm_seconds": 1.0,
                "grace_seconds": 0.5,
                "retention_seconds": 30.0,
                "max_states": 1024
              }
            },
            "scenarioRevision": "f597a2b13ad16a3895d3bd2f8e4c8e0e87aa004752d0daccc22eebd10977780a",
            "events": []
          }
        }
      },
      "rtsp-test-source-02": {
        "at": 1303761.612292474,
        "state": {
          "stream_id": "web-cam08-test",
          "site_id": null,
          "source_type": "rtsp",
          "state": "running",
          "desired_state": "running",
          "observed_state": "running",
          "run_generation": 1,
          "run_id": "ab98cea0-67e2-4634-9220-e52f497e91e6",
          "roles": {
            "det": {
              "state": "first_frame",
              "required": true,
              "initialized": true,
              "last_frame_at": 1789451040.8330548,
              "source_stage": "consume_entered",
              "source_stage_at": 1789451040.8374712,
              "source_stages": {
                "pipeline_state_changed": 1789448827.273253,
                "decoded_frame_received": 1789451040.815177,
                "preprocess_output": 1789451040.816699,
                "infer_output": 1789451040.8347185,
                "consume_entered": 1789451040.8374712,
                "native_completed": 1789451040.7665048,
                "inference_frame_completed": 1789451040.8330302
              },
              "stage_counts": {
                "pipeline_state_changed": 88,
                "decoded_frame_received": 22137,
                "preprocess_output": 22137,
                "infer_output": 22137,
                "consume_entered": 22137,
                "native_completed": 22136,
                "inference_frame_completed": 17853
              },
              "last_error": null,
              "stage_first_at": {
                "pipeline_state_changed": 1789448825.4717112,
                "decoded_frame_received": 1789448827.2242,
                "preprocess_output": 1789448827.2252352,
                "infer_output": 1789448827.2551281,
                "consume_entered": 1789448827.2613556,
                "native_completed": 1789448827.2807322,
                "inference_frame_completed": 1789448827.316619
              }
            }
          },
          "last_error": null,
          "cleanup_error": null,
          "cleanup_pending": false,
          "restart_pending": false,
          "last_cleanup": null,
          "started_at": 1789448825.441505,
          "uptime_s": 2215.4,
          "inference_profile": {
            "roles": [
              "det"
            ],
            "requested_models": {
              "det": "RFDETRMedium"
            },
            "active_models": {
              "det": "RFDETRMedium"
            },
            "degraded_roles": [],
            "score_threshold": 0.5,
            "class_min_confidence": {}
          },
          "metadata_path": {
            "state": "CONNECTED",
            "error": null,
            "display_threshold": 0.25,
            "visual": null,
            "sample_error": null,
            "performance": {
              "analysisFpsTarget": 10.0,
              "sampled_ns": 1303761592382289,
              "counts": {
                "decoded": 22116,
                "selected": 22116,
                "preprocess": 22124,
                "infer": 22126,
                "native": 22136,
                "result": 17852,
                "publisher_submit": 17852
              },
              "first_ns": {
                "decoded": 1301547971482786,
                "selected": 1301547971541397,
                "preprocess": 1301547972611655,
                "infer": 1301548002425232,
                "native": 1301548028104053,
                "result": 1301548063482008,
                "publisher_submit": 1301548064028075
              },
              "last_ns": {
                "decoded": 1303761562533176,
                "selected": 1303761562552800,
                "preprocess": 1303761564057392,
                "infer": 1303761582052491,
                "native": 1303761513881173,
                "result": 1303761579588189,
                "publisher_submit": 1303761580431284
              },
              "detail": false,
              "pending_samples": 0,
              "last_frame": {
                "selected": [
                  22136,
                  2215194198280
                ],
                "preprocess": [
                  22136,
                  2215194198280
                ],
                "infer": [
                  22136,
                  2215194198280
                ],
                "native": [
                  22135,
                  2215094198280
                ],
                "result": [
                  22134,
                  2214994198280
                ],
                "publisher_submit": [
                  22134,
                  2214994198280
                ]
              },
              "observation_missed": 70,
              "durations": {},
              "sourceFpsObserved": null,
              "closed": false,
              "tracking_profiles": []
            },
            "queued": 0,
            "events_created": 613,
            "processed": 17853,
            "stale": 4282
          },
          "scenarios": {
            "active": [
              "INTRUSION"
            ],
            "disabled": []
          },
          "zones": [],
          "frames_in_window": 1000,
          "per_task_buffers": {
            "det": 17853
          },
          "latest": {
            "fn": 22134,
            "det": 4,
            "persons": 2,
            "pose_persons": 0,
            "seg": 0
          }
        },
        "redis": {
          "at": 1303761.612345046,
          "entries": 17853,
          "length": 30,
          "last": "1789451040834-0",
          "pttl": 9933,
          "frame": {
            "schemaVersion": "1",
            "cameraId": "rtsp-test-source-02",
            "sourceId": "rtsp-test-source-02",
            "serverId": "test-ai",
            "streamId": "web-cam08-test",
            "runId": "ab98cea0-67e2-4634-9220-e52f497e91e6",
            "runGeneration": 1,
            "frameSeq": 22134,
            "ptsNs": 2214994198280,
            "ingestTimeWallMs": 1789451040662,
            "frameWidth": 1280,
            "frameHeight": 720,
            "coordinateSpace": "SOURCE_FRAME",
            "format": "XYXY",
            "normalized": true,
            "origin": "TOP_LEFT",
            "configVersion": null,
            "frameTime": {
              "anchorId": null,
              "startWallTimeMs": 1789433784668,
              "anchorRtpTimestamp": 0,
              "rtpClockRate": 90000,
              "rtpTimestamp": 3680953188,
              "rtpTimestampExt": null,
              "detectedAtWallMs": 1789474684147,
              "syncStatus": "ESTIMATED",
              "timeSource": "SYNTHETIC_TEST_ANCHOR"
            },
            "objects": [
              {
                "objectRef": "0",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.9803937673568726,
                "bbox": [
                  0.0009765625,
                  0.09912109375,
                  0.826171875,
                  0.98779296875
                ],
                "trackId": 74641,
                "eventIds": [
                  "6c0db9f3-ae45-4677-9b55-7c05bf06804a"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.41357421875,
                      0.98779296875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "6c0db9f3-ae45-4677-9b55-7c05bf06804a"
                  }
                ]
              },
              {
                "objectRef": "3",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.5305101275444031,
                "bbox": [
                  0.6368408203125,
                  0.1982421875,
                  0.7977294921875,
                  0.8271484375
                ],
                "trackId": null,
                "eventIds": [],
                "labelText": "person",
                "color": "#00CC66",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.71728515625,
                      0.8271484375
                    ],
                    "inside": true,
                    "state": "PENDING_ID",
                    "confidence": 0.5,
                    "eventId": null
                  }
                ]
              }
            ],
            "scenarioConfig": {
              "INTRUSION": {
                "enabled": true,
                "roi_id": "primary",
                "roi_name": "Test center-right",
                "debug_roi": true,
                "roi": [
                  [
                    0.35,
                    0.3
                  ],
                  [
                    0.85,
                    0.3
                  ],
                  [
                    0.85,
                    1.0
                  ],
                  [
                    0.35,
                    1.0
                  ]
                ],
                "point_x": 0.5,
                "point_y": 1.0,
                "confidence": 0.5,
                "dwell_seconds": 0.5,
                "rearm_seconds": 1.0,
                "grace_seconds": 0.5,
                "retention_seconds": 30.0,
                "max_states": 1024
              }
            },
            "scenarioRevision": "803a640b541d091c6cc35185dbd84506fff2cc9008cd5f7809ec084abfec4c4c",
            "events": []
          }
        }
      }
    },
    "publisher": {
      "enabled": true,
      "metrics": {
        "sent": 43680,
        "sent_status": 5573,
        "sent_frames": 38107,
        "queued": 0,
        "queuedBytes": 0,
        "channels": 4
      }
    }
  },
  "after": {
    "at": 1303766.651303074,
    "channels": {
      "rtsp-test-source-01": {
        "at": 1303766.683571021,
        "state": {
          "stream_id": "rtsp-test-01",
          "site_id": null,
          "source_type": "rtsp",
          "state": "running",
          "desired_state": "running",
          "observed_state": "running",
          "run_generation": 1,
          "run_id": "9cd709ec-f7ac-4965-bcbb-9398f3c40674",
          "roles": {
            "det": {
              "state": "first_frame",
              "required": true,
              "initialized": true,
              "last_frame_at": 1789451045.8176286,
              "source_stage": "native_completed",
              "source_stage_at": 1789451045.8790526,
              "source_stages": {
                "pipeline_state_changed": 1789448824.2821472,
                "decoded_frame_received": 1789451045.8437197,
                "preprocess_output": 1789451045.8443003,
                "infer_output": 1789451045.8651829,
                "consume_entered": 1789451045.867264,
                "native_completed": 1789451045.8790526,
                "inference_frame_completed": 1789451045.8175678
              },
              "stage_counts": {
                "pipeline_state_changed": 88,
                "decoded_frame_received": 22224,
                "preprocess_output": 22224,
                "infer_output": 22224,
                "consume_entered": 22224,
                "native_completed": 22224,
                "inference_frame_completed": 17940
              },
              "last_error": null,
              "stage_first_at": {
                "pipeline_state_changed": 1789448822.7215917,
                "decoded_frame_received": 1789448824.1911626,
                "preprocess_output": 1789448824.2387598,
                "infer_output": 1789448824.2703612,
                "consume_entered": 1789448824.277234,
                "native_completed": 1789448824.290971,
                "inference_frame_completed": 1789448824.415371
              }
            }
          },
          "last_error": null,
          "cleanup_error": null,
          "cleanup_pending": false,
          "restart_pending": false,
          "last_cleanup": null,
          "started_at": 1789448821.2860403,
          "uptime_s": 2224.6,
          "inference_profile": {
            "roles": [
              "det"
            ],
            "requested_models": {
              "det": "RFDETRMedium"
            },
            "active_models": {
              "det": "RFDETRMedium"
            },
            "degraded_roles": [],
            "score_threshold": 0.5,
            "class_min_confidence": {}
          },
          "metadata_path": {
            "state": "CONNECTED",
            "error": null,
            "display_threshold": 0.25,
            "visual": null,
            "sample_error": null,
            "performance": {
              "analysisFpsTarget": 10.0,
              "sampled_ns": 1303766668160115,
              "counts": {
                "decoded": 22215,
                "selected": 22215,
                "preprocess": 22217,
                "infer": 22220,
                "native": 22222,
                "result": 17940,
                "publisher_submit": 17940
              },
              "first_ns": {
                "decoded": 1301544938471029,
                "selected": 1301544938505147,
                "preprocess": 1301544985976289,
                "infer": 1301545017627187,
                "native": 1301545038319108,
                "result": 1301545162196312,
                "publisher_submit": 1301545162778196
              },
              "last_ns": {
                "decoded": 1303766591069451,
                "selected": 1303766591089856,
                "preprocess": 1303766591683409,
                "infer": 1303766612484931,
                "native": 1303766626435863,
                "result": 1303766563971077,
                "publisher_submit": 1303766564956901
              },
              "detail": false,
              "pending_samples": 0,
              "last_frame": {
                "selected": [
                  22223,
                  2223020488433
                ],
                "preprocess": [
                  22223,
                  2223020488433
                ],
                "infer": [
                  22223,
                  2223020488433
                ],
                "native": [
                  22223,
                  2223020488433
                ],
                "result": [
                  22222,
                  2222920488433
                ],
                "publisher_submit": [
                  22222,
                  2222920488433
                ]
              },
              "observation_missed": 31,
              "durations": {},
              "sourceFpsObserved": null,
              "closed": false,
              "tracking_profiles": []
            },
            "queued": 0,
            "events_created": 615,
            "processed": 17940,
            "stale": 4283
          },
          "scenarios": {
            "active": [
              "INTRUSION"
            ],
            "disabled": []
          },
          "zones": [],
          "frames_in_window": 1000,
          "per_task_buffers": {
            "det": 17940
          },
          "latest": {
            "fn": 22222,
            "det": 8,
            "persons": 5,
            "pose_persons": 0,
            "seg": 0
          }
        },
        "redis": {
          "at": 1303766.683622621,
          "entries": 17941,
          "length": 30,
          "last": "1789451045940-0",
          "pttl": 9967,
          "frame": {
            "schemaVersion": "1",
            "cameraId": "rtsp-test-source-01",
            "sourceId": "rtsp-test-source-01",
            "serverId": "test-ai",
            "streamId": "rtsp-test-01",
            "runId": "9cd709ec-f7ac-4965-bcbb-9398f3c40674",
            "runGeneration": 1,
            "frameSeq": 22223,
            "ptsNs": 2223020488433,
            "ingestTimeWallMs": 1789451045843,
            "frameWidth": 1280,
            "frameHeight": 720,
            "coordinateSpace": "SOURCE_FRAME",
            "format": "XYXY",
            "normalized": true,
            "origin": "TOP_LEFT",
            "configVersion": null,
            "frameTime": {
              "anchorId": null,
              "startWallTimeMs": 1789433784668,
              "anchorRtpTimestamp": 0,
              "rtpClockRate": 90000,
              "rtpTimestamp": 1553496473,
              "rtpTimestampExt": null,
              "detectedAtWallMs": 1789451045739,
              "syncStatus": "ESTIMATED",
              "timeSource": "SYNTHETIC_TEST_ANCHOR"
            },
            "objects": [
              {
                "objectRef": "1",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.9121235609054565,
                "bbox": [
                  0.4196319580078125,
                  0.33917236328125,
                  0.4573211669921875,
                  0.56951904296875
                ],
                "trackId": 74481,
                "eventIds": [
                  "2cba6508-51c4-42c0-b56e-840f6f0af6ba"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.4384765625,
                      0.56951904296875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "2cba6508-51c4-42c0-b56e-840f6f0af6ba"
                  }
                ]
              },
              {
                "objectRef": "2",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8781053423881531,
                "bbox": [
                  0.5491180419921875,
                  0.37408447265625,
                  0.5856475830078125,
                  0.51947021484375
                ],
                "trackId": 73841,
                "eventIds": [
                  "32d2322e-2503-429b-bd30-7044706ea54a"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.5673828125,
                      0.51947021484375
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "32d2322e-2503-429b-bd30-7044706ea54a"
                  }
                ]
              },
              {
                "objectRef": "3",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8244618773460388,
                "bbox": [
                  0.6160888671875,
                  0.4437255859375,
                  0.6544189453125,
                  0.5484619140625
                ],
                "trackId": 74641,
                "eventIds": [
                  "a120400e-68bc-42d7-8ab0-6d0575da9101"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.63525390625,
                      0.5484619140625
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "a120400e-68bc-42d7-8ab0-6d0575da9101"
                  }
                ]
              },
              {
                "objectRef": "5",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.6475753784179688,
                "bbox": [
                  0.6337738037109375,
                  0.46710205078125,
                  0.6591949462890625,
                  0.55535888671875
                ],
                "trackId": 74801,
                "eventIds": [
                  "4e43df0a-02ef-4b72-ba06-89c6c042a120"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.646484375,
                      0.55535888671875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "4e43df0a-02ef-4b72-ba06-89c6c042a120"
                  }
                ]
              },
              {
                "objectRef": "6",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.6442250609397888,
                "bbox": [
                  0.654266357421875,
                  0.446136474609375,
                  0.685577392578125,
                  0.542633056640625
                ],
                "trackId": 74881,
                "eventIds": [
                  "581a0b21-d506-4a6e-b501-90ae5eb7dfb3"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.669921875,
                      0.542633056640625
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "581a0b21-d506-4a6e-b501-90ae5eb7dfb3"
                  }
                ]
              }
            ],
            "scenarioConfig": {
              "INTRUSION": {
                "enabled": true,
                "roi_id": "primary",
                "roi_name": "Test center-right",
                "debug_roi": true,
                "roi": [
                  [
                    0.35,
                    0.3
                  ],
                  [
                    0.85,
                    0.3
                  ],
                  [
                    0.85,
                    1
                  ],
                  [
                    0.35,
                    1
                  ]
                ],
                "point_x": 0.5,
                "point_y": 1.0,
                "confidence": 0.5,
                "dwell_seconds": 0.5,
                "rearm_seconds": 1.0,
                "grace_seconds": 0.5,
                "retention_seconds": 30.0,
                "max_states": 1024
              }
            },
            "scenarioRevision": "f597a2b13ad16a3895d3bd2f8e4c8e0e87aa004752d0daccc22eebd10977780a",
            "events": []
          }
        }
      },
      "rtsp-test-source-02": {
        "at": 1303766.758177829,
        "state": {
          "stream_id": "web-cam08-test",
          "site_id": null,
          "source_type": "rtsp",
          "state": "running",
          "desired_state": "running",
          "observed_state": "running",
          "run_generation": 1,
          "run_id": "ab98cea0-67e2-4634-9220-e52f497e91e6",
          "roles": {
            "det": {
              "state": "first_frame",
              "required": true,
              "initialized": true,
              "last_frame_at": 1789451045.957262,
              "source_stage": "infer_output",
              "source_stage_at": 1789451045.9868417,
              "source_stages": {
                "pipeline_state_changed": 1789448827.273253,
                "decoded_frame_received": 1789451045.9588077,
                "preprocess_output": 1789451045.9614885,
                "infer_output": 1789451045.9868417,
                "consume_entered": 1789451045.882352,
                "native_completed": 1789451045.8953137,
                "inference_frame_completed": 1789451045.9572377
              },
              "stage_counts": {
                "pipeline_state_changed": 88,
                "decoded_frame_received": 22188,
                "preprocess_output": 22188,
                "infer_output": 22188,
                "consume_entered": 22187,
                "native_completed": 22187,
                "inference_frame_completed": 17905
              },
              "last_error": null,
              "stage_first_at": {
                "pipeline_state_changed": 1789448825.4717112,
                "decoded_frame_received": 1789448827.2242,
                "preprocess_output": 1789448827.2252352,
                "infer_output": 1789448827.2551281,
                "consume_entered": 1789448827.2613556,
                "native_completed": 1789448827.2807322,
                "inference_frame_completed": 1789448827.316619
              }
            }
          },
          "last_error": null,
          "cleanup_error": null,
          "cleanup_pending": false,
          "restart_pending": false,
          "last_cleanup": null,
          "started_at": 1789448825.441505,
          "uptime_s": 2220.5,
          "inference_profile": {
            "roles": [
              "det"
            ],
            "requested_models": {
              "det": "RFDETRMedium"
            },
            "active_models": {
              "det": "RFDETRMedium"
            },
            "degraded_roles": [],
            "score_threshold": 0.5,
            "class_min_confidence": {}
          },
          "metadata_path": {
            "state": "CONNECTED",
            "error": null,
            "display_threshold": 0.25,
            "visual": null,
            "sample_error": null,
            "performance": {
              "analysisFpsTarget": 10.0,
              "sampled_ns": 1303766734955112,
              "counts": {
                "decoded": 22167,
                "selected": 22167,
                "preprocess": 22175,
                "infer": 22177,
                "native": 22187,
                "result": 17904,
                "publisher_submit": 17904
              },
              "first_ns": {
                "decoded": 1301547971482786,
                "selected": 1301547971541397,
                "preprocess": 1301547972611655,
                "infer": 1301548002425232,
                "native": 1301548028104053,
                "result": 1301548063482008,
                "publisher_submit": 1301548064028075
              },
              "last_ns": {
                "decoded": 1303766706172025,
                "selected": 1303766706185978,
                "preprocess": 1303766708755594,
                "infer": 1303766734205292,
                "native": 1303766642694591,
                "result": 1303766703902111,
                "publisher_submit": 1303766704642777
              },
              "detail": false,
              "pending_samples": 0,
              "last_frame": {
                "selected": [
                  22187,
                  2220294198280
                ],
                "preprocess": [
                  22187,
                  2220294198280
                ],
                "infer": [
                  22187,
                  2220294198280
                ],
                "native": [
                  22186,
                  2220194198280
                ],
                "result": [
                  22186,
                  2220194198280
                ],
                "publisher_submit": [
                  22186,
                  2220194198280
                ]
              },
              "observation_missed": 70,
              "durations": {},
              "sourceFpsObserved": null,
              "closed": false,
              "tracking_profiles": []
            },
            "queued": 0,
            "events_created": 615,
            "processed": 17905,
            "stale": 4282
          },
          "scenarios": {
            "active": [
              "INTRUSION"
            ],
            "disabled": []
          },
          "zones": [],
          "frames_in_window": 1000,
          "per_task_buffers": {
            "det": 17905
          },
          "latest": {
            "fn": 22186,
            "det": 6,
            "persons": 3,
            "pose_persons": 0,
            "seg": 0
          }
        },
        "redis": {
          "at": 1303766.758205012,
          "entries": 17905,
          "length": 30,
          "last": "1789451045958-0",
          "pttl": 9919,
          "frame": {
            "schemaVersion": "1",
            "cameraId": "rtsp-test-source-02",
            "sourceId": "rtsp-test-source-02",
            "serverId": "test-ai",
            "streamId": "web-cam08-test",
            "runId": "ab98cea0-67e2-4634-9220-e52f497e91e6",
            "runGeneration": 1,
            "frameSeq": 22186,
            "ptsNs": 2220194198280,
            "ingestTimeWallMs": 1789451045855,
            "frameWidth": 1280,
            "frameHeight": 720,
            "coordinateSpace": "SOURCE_FRAME",
            "format": "XYXY",
            "normalized": true,
            "origin": "TOP_LEFT",
            "configVersion": null,
            "frameTime": {
              "anchorId": null,
              "startWallTimeMs": 1789433784668,
              "anchorRtpTimestamp": 0,
              "rtpClockRate": 90000,
              "rtpTimestamp": 3681421188,
              "rtpTimestampExt": null,
              "detectedAtWallMs": 1789474689347,
              "syncStatus": "ESTIMATED",
              "timeSource": "SYNTHETIC_TEST_ANCHOR"
            },
            "objects": [
              {
                "objectRef": "0",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.936168372631073,
                "bbox": [
                  0.62493896484375,
                  0.215576171875,
                  0.77545166015625,
                  0.995361328125
                ],
                "trackId": 74721,
                "eventIds": [
                  "9f5b3ce1-3142-48ec-b5e7-9e3915e741bf"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.7001953125,
                      0.995361328125
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "9f5b3ce1-3142-48ec-b5e7-9e3915e741bf"
                  }
                ]
              },
              {
                "objectRef": "2",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.9048188328742981,
                "bbox": [
                  0.42816162109375,
                  0.345947265625,
                  0.46881103515625,
                  0.568603515625
                ],
                "trackId": 75041,
                "eventIds": [
                  "0cf8fb05-1d2b-474a-bf86-bfd25e8141ac"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.448486328125,
                      0.568603515625
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "0cf8fb05-1d2b-474a-bf86-bfd25e8141ac"
                  }
                ]
              },
              {
                "objectRef": "3",
                "classId": 0,
                "modelKey": "RFDETRMedium",
                "confidence": 0.8598991632461548,
                "bbox": [
                  0.51873779296875,
                  0.3564453125,
                  0.56524658203125,
                  0.5419921875
                ],
                "trackId": 74401,
                "eventIds": [
                  "865628bb-db1b-4631-a462-a7e2e3d8bbf6"
                ],
                "labelText": "person",
                "color": "#FF3030",
                "visible": true,
                "scenarioResults": [
                  {
                    "scenario": "INTRUSION",
                    "point": [
                      0.5419921875,
                      0.5419921875
                    ],
                    "inside": true,
                    "state": "INTRUSION",
                    "confidence": 0.5,
                    "eventId": "865628bb-db1b-4631-a462-a7e2e3d8bbf6"
                  }
                ]
              }
            ],
            "scenarioConfig": {
              "INTRUSION": {
                "enabled": true,
                "roi_id": "primary",
                "roi_name": "Test center-right",
                "debug_roi": true,
                "roi": [
                  [
                    0.35,
                    0.3
                  ],
                  [
                    0.85,
                    0.3
                  ],
                  [
                    0.85,
                    1.0
                  ],
                  [
                    0.35,
                    1.0
                  ]
                ],
                "point_x": 0.5,
                "point_y": 1.0,
                "confidence": 0.5,
                "dwell_seconds": 0.5,
                "rearm_seconds": 1.0,
                "grace_seconds": 0.5,
                "retention_seconds": 30.0,
                "max_states": 1024
              }
            },
            "scenarioRevision": "803a640b541d091c6cc35185dbd84506fff2cc9008cd5f7809ec084abfec4c4c",
            "events": []
          }
        }
      }
    },
    "publisher": {
      "enabled": true,
      "metrics": {
        "sent": 43795,
        "sent_status": 5584,
        "sent_frames": 38211,
        "queued": 0,
        "queuedBytes": 0,
        "channels": 4
      }
    }
  }
}