v1

latestOpenAPI 3.1.02026-07-171921144.8 KB
realtime

Get a single alert rule

Retrieve a single real-time VLM alert rule by ID. Reads from Elasticsearch when persistence is enabled, otherwise from the in-memory registry.

get/api/v1/realtime/{alert_rule_id}

Path parameters

alert_rule_idstring uuid required

Response

Alert rule

statusstring

Example response

{
  "rule": {
    "alert_type": "collision",
    "chunk_duration": 30,
    "chunk_overlap_duration": 5,
    "created_at": "2025-06-01T12:00:00Z",
    "enable_reasoning": true,
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "live_stream_url": "rtsp://localhost:8554/media/video1",
    "model": "nvidia/cosmos3-nano-reasoner",
    "num_frames_per_second_or_fixed_frames_chunk": 10,
    "prompt": "Detect vehicle collisions.",
    "sensor_id": "cc06804c-7f11-4865-bb00-6b2db072086f",
    "sensor_name": "Camera_123",
    "status": "active",
    "system_prompt": "",
    "use_fps_for_chunking": true,
    "vlm_input_height": 256,
    "vlm_input_width": 256
  },
  "status": "success"
}