Updates the configurations of a monitoring session.
Operation description
This operation updates the configuration of a monitoring session. If the monitoring session is running, updates to the input source configuration take effect in real time.
QPS limit
The queries per second (QPS) limit for a single user is 10. API calls that exceed this limit are throttled. Throttling can affect your business, so we recommend that you plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLiveStreamMonitor |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| MonitorId |
string |
Yes |
The ID of the monitoring session. Note
Obtain the MonitorId value from the response parameters of the CreateLiveStreamMonitor operation. |
445409ec-7eaa-461d-8f29-4bec2eb9**** |
| MonitorName |
string |
No |
The name of the monitoring session. |
liveMonitor**** |
| Domain |
string |
No |
The output domain name for the monitoring session. |
demo.aliyundoc.com |
| App |
string |
No |
The application name for the output stream of the monitoring session. You can specify a custom name. If you do not specify this parameter, monitor is used as the AppName. |
monitor**** |
| Stream |
string |
No |
The name of the output stream for the monitoring session. |
monitorStream**** |
| OutputTemplate |
string |
No |
The output template for the monitoring session. Valid values:
|
lp_ud |
| InputList |
string |
Yes |
The list of input streams to monitor. For more information, see the InputConfig table below. |
InputConfig |
| MonitorConfig |
string |
No |
The settings for alert thresholds. The value is a JSON string. For more information, see the MonitorConfig table below. |
"{\"fpsLowThres\": 0.6,\"brLowThres\": 1.1,\"eofDurationThresSec\": 10}" |
| CallbackUrl |
string |
No |
The webhook address. HTTP and HTTPS are supported. |
http://guide.aliyundoc.com/notify |
| DingTalkWebHookUrl |
string |
No |
The webhook URL of the DingTalk chatbot. Monitoring alerts are sent to a DingTalk group using a chatbot. Set up a chatbot and enter its webhook URL, which must be an HTTP or HTTPS address. For more information, see Custom robot access. Note
Set the custom keyword of the DingTalk chatbot to "Alerting". Otherwise, messages cannot be received. |
https://oapi.dingtalk.com/robot/send?access_token=7a7d404056eee1f2fd944ace9bcfc361dc6448583e1d3d3baa**** |
InputConfig
Name | Type | Description | Example |
Index | Integer | The index. This parameter is used by the frontend. | 1 |
LayoutId | Integer | The layout ID. The value must start from 1. | 1 |
StreamName | String | The display name of the monitored stream. | monitorStream**** |
InputUrl | String | The URL of the input stream. | demo.aliyundoc.com |
LayoutConfig | LayoutConfig | The layout information. | For more information, see the LayoutConfig table below. |
PlayConfig | PlayConfig | The playback configuration. | For more information, see the PlayConfig table below. |
LayoutConfig
Name | Type | Description | Example |
FillMode | String | The fill mode. Set this parameter to none for the frontend. | none |
PositionRefer | String | The reference point for the position of the element. Valid values: TopLeft, TopRight, BottomLeft, and BottomRight. | TopLeft |
PositionNormalized | Float | The normalized position of the fill area for the layer element. The value is in the [x,y] format. | [0.1, 0.1] |
SizeNormalized | Float | The size of the fill area for the layer element. The value is in the [w,h] format. | [0.2, 0.3] |
PlayConfig
Name | Type | Description | Example |
VolumeRate | Float | The volume. The value ranges from 0 to 1, accurate to two decimal places. | 0.50 |
MonitorConfig
Name | Type | Description | Example |
fpsLowThres | Float | The alert threshold for the video frame rate. This threshold is a coefficient. The value must be in the (0.0, 1.0] range. The default value is 0.7. An alert is triggered if the video frame rate of the monitored stream is less than (alert threshold × original frame rate of the live stream). | 0.7 |
brHighThres | Float | The alert threshold for the audio and video bitrate. This threshold is a coefficient. The value must be in the (0.0, 100] range. The default value is 1.0. An alert is triggered if the audio and video bitrate of the monitored stream is greater than (alert threshold × original bitrate of the live stream). | 1.0 |
eofDurationThresSec | Float | The threshold for stream interruption detection, in seconds. An alert is triggered if the monitored stream is interrupted for a duration longer than this threshold. The value must be in the (0, 65535] range. The default value is 0. After a stream is interrupted, the connection remains active. The system determines that the stream is interrupted if a packet receipt timeout of 5 s occurs. Therefore, if you set this parameter to a value less than or equal to 5 s, the actual detection time is 5 s. If you set this parameter to a value greater than 5 s, the actual detection time is the value you set. The first 5 s are for the internal packet receipt timeout, and the remaining time is the duration for which the system waits for the stream to resume. If the stream resumes before the timeout period expires, no alert is triggered. If you change the monitoring address before the stream times out, the system stops detecting the timeout and does not trigger an alert for the previous stream. | 10 |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5c6a2a0d-f228-4a64-af62-20e91b9676b3 |
Examples
Success response
JSON format
{
"RequestId": "5c6a2a0d-f228-4a64-af62-20e91b9676b3"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidUserId.Malformed | %s | |
| 400 | InvalidParameter.Malformed | %s | |
| 400 | MissingParameter | %s | |
| 400 | InvalidMonitorId.Malformed | %s | |
| 401 | IllegalOperation | %s | |
| 500 | InternalError | %s | |
| 404 | InvalidDomainName.NotFound | %s | |
| 404 | StreamMonitorNotExist | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.