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
Name | Type | Description |
---|---|---|
streamUrl | string | the URL of the stream to monitor. This value must exactly match the stream URL provided to the add_stream endpoint |
duration_seconds | number | an 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
Name | Type | Description |
---|---|---|
message | string | the success message |