Queries abnormal user experience events.
Function
Queries call exception details of a specified application.
The maximum query time span is one day.
URI
GET /v1/rtc/data/abnormal-events
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
app |
Yes |
String |
App ID |
room_id |
No |
String |
Room ID |
uid |
No |
String |
User ID |
start_time |
No |
String |
Start time of the query (UTC time in the format of YYYY-MM-DDThh:mm:ssZ, for example, 2020-04-23T06:00:00Z). If this parameter is not specified, the data of the last hour is read by default. |
end_time |
No |
String |
End time of the query (UTC time in the format of YYYY-MM-DDThh:mm:ssZ, for example, 2020-04-23T07:00:00Z). If this parameter is not specified, the current time is used by default. |
limit |
No |
Integer |
Number of results. The default value is 10. |
offset |
No |
Integer |
Query offset. The default value is 0. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
No |
String |
User token, which is mandatory for token authentication. You can obtain the token by calling the IAM API (value of X-Subject-Token in the response header). |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-Request-Id |
String |
Unique identifier of the request |
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total number of exceptions |
events |
Array of AbnormalEvent objects |
List of abnormal experience events |
Parameter |
Type |
Description |
---|---|---|
time |
String |
Sampling time. The date format complies with the ISO 8601 standard and the UTC time is used. The format is YYYY-MM-DDThh:mm:ssZ. |
uid |
String |
ID of the user with an exception |
room_id |
String |
ID of the room with an exception |
stage |
String |
Abnormal phase
|
location |
String |
Event occurrence location
|
peer_uid |
String |
If the exception occurs at the remote end, peerid is the remote user ID. If the exception occurs at the local end, peerid is an empty string. |
abnormal_type |
Integer |
Exception type
|
abnormal_type_desc |
String |
The exception type description corresponds to the exception type and supports internationalization. The options are as follows:
|
abnormal_factor |
Integer |
Abnormal factors When the exception type is 1, the value range of the exception factor is as follows:
When the exception type is 2 or 3, the options are as follows:
|
abnormal_factor_desc |
String |
Exception factor description, which supports internationalization. When the exception type is 1, the exception factor description corresponds to the exception factor. The options are as follows:
When the exception type is 2 or 3, the exception factor description corresponds to the exception factor. The options are as follows:
In other cases, the exception factor is described as follows: Others |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
X-Request-Id |
String |
Unique identifier of the request |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Requests
GET /v1/rtc/data/abnormal-events?app=5f963b4c89ae1628c2568001&room_id=3b48d9db05cc11ecb1e78fe304a40b8f&start_time=2021-08-25T16:00:00Z&end_time=2021-08-25T18:00:00Z
Example Responses
Status code: 200
OK.
{ "total" : 2, "events" : [ { "time" : "2021-08-25T17:45:00Z", "uid" : "3d00ea7405cc11eca3b919d9aaa81457", "room_id" : "3b48d9db05cc11ecb1e78fe304a40b8f", "stage" : "communication", "location" : "remote", "peer_uid" : "3cc0863505cc11eca3b9cb30b1856de8", "abnormal_type" : 3, "abnormal_type_desc" : "Audio freezing", "abnormal_factor" : 13, "abnormal_factor_desc" : "Downlink audio packet loss" }, { "time" : "2021-08-25T17:45:00Z", "uid" : "3d00ea7405cc11eca3b919d9aaa81457", "room_id" : "3b48d9db05cc11ecb1e78fe304a40b8f", "stage" : "communication", "location" : "remote", "peer_uid" : "3cc0863505cc11eca3b9cb30b1856de8", "abnormal_type" : 2, "abnormal_type_desc" : "Video freezing", "abnormal_factor" : 14, "abnormal_factor_desc" : "Downlink video packet loss" } ] }
Status code: 400
Query failed.
{ "error_code" : "DATA.100011001", "error_msg" : "Required String parameter 'app' is not present" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK. |
400 |
Query failed. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot