Skip to main content

monitor_stream

This endpoint monitors a stream which was previously added to EyesOnIt with the add_stream endpoint. When a stream is being monitored, EyesOnIt processes the stream and generates alerts according to the add_stream parameters.

Method: POST

Endpoint: /monitor_stream

Body

{
"stream_url": "rtsp://192.168.1.54/live0",
"duration_seconds": 15
}

Body Attribute Descriptions

NameTypeDescription
streamUrlstringthe URL of the stream to monitor. This value must exactly match the stream URL provided to the add_stream endpoint
duration_secondsnumberan option parameter indicating the duration in seconds to monitor the stream. If provided, EyesOnIt will monitor the stream for duration_seconds and then automatically stop monitoring. If not provided, the stream is monitored until monitoring is manually terminated by calling stop_monitoring or remove_stream.

Response

{
"message":"monitoring rtsp://192.168.1.54/live0 for inf seconds"
}

Response Attribute Descriptions

NameTypeDescription
messagestringthe success message