Query Peak Concurrent Trend
Query the peak number of concurrent calls routed though SIP trunks owned by you and your resellers.
Request URL
POST {base_url}/uc-dashboard/api/v1/dashboard/trends/concurrent
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}.
- Body parameters
-
Parameter Required Type Description region No String The region for which to query the peak concurrent trend. Valid value:
null: The current region.: All regions.all- Region code: Specified region.Note: You can query available region codes using the Get the Region List interface.
grain No String The aggregation granularity used to return the peak number of concurrent calls. Valid value:
minutehourday
callType No String The call type. Valid value:
all: All call types.external: External calls.
timeRange No String The time range. Valid value:
today: The current day.this_month: The current month.last_month: The previous month.
timeRange No String The time range. Valid value:
today: The current day.this_month: The current month.last_month: The previous month.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Peak_Concurrent_Trend> | The peak concurrent trend data. |
- Peak_Concurrent_Trend
-
Parameter Type Description widgetVisibility Object<Widget_Visibility> The visibility of the Peak Concurrent widget in the portal interface. points Array<Trend_Point> The peak concurrent trend for each trend point grouped by specified aggregation granularity within the specified time range. summary Object<Summary> The the peak number of concurrent calls within the specified time range. freshness Object<Freshness> The data aggregation status and degradation information.
- Widget_Visibility
-
Parameter Type Description peak_concurrent Object<Visibility> The visibility of the Peak Concurrent widget in the portal interface.
- Trend_Point
-
Parameter Type Description bucketStartMs Integer Start timestamp of the trend point (unit: milliseconds). primary Integer The peak number of concurrent calls at the trend point. secondary Integer Useless parameter. primaryGap Boolean Whether a value of 0forprimaryindicates that the actual peak number of concurrent calls at the trend point is unknown.true: The actual peak number of concurrent calls is unknown.false: The actual peak number of concurrent calls is 0.
secondaryGap Boolean Useless parameter.
- Summary
-
Parameter Type Description primary Integer The peak number of concurrent calls within the specified time range. secondary Integer Useless parameter.
- Freshness
-
Parameter Type Description status String Data aggregation status. normal:Data aggregation completed normally.delayed: Partial data missing.failed: Data aggregation failed.
unavailableRegions Array<String> The list of regions that are unavailable or timed out, which are skipped during degradation.
Example
Request example
POST /uc-dashboard/api/v1/dashboard/trends/concurrent HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJyZWdpb24ta2V5LTEiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJkaXN0cmlidXRvcmV4YW1wbGVAb3V0bG9vay5jb20iLCJncmFudF90eXBlIjoib3BlbmFwaSIsImNsaWVudF9leHQiOnsiZGVzY3JpcHRpb24iOiLnrKzkuInmlrnlkIjkvZzkvJnkvLTlupTnlKgiLCJwYXJ0bmVyIjoi56S65L6L5ZCI5L2c5LyZ5Ly0In0sImNsaWVudF90eXBlIjoib3BlbmFwaSIsImV4cCI6MTc4ODQzNDU2NywiaWF0IjoxNzg4NDEyOTY3LCJqdGkiOiJhYzYwMWJkOC02NDdkLTRlNzUtOGI2MS1mNmRiZmZhZDk1YzkiLCJjbGllbnRfaWQiOiJub3ZvLW9wZW4tcGxhdGZvcm0iLCJ1c2VyX2V4dCI6eyJyb2xlSWRzIjpbM10sInN0eXBlIjoiQURNSU4iLCJ0ZW5hbnRDb2RlIjpudWxsLCJ0eXBlIjoiUF9BQ0NPVU5UIiwidXNlcklkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJlbWFpbCI6ImRpc3RyaWJ1dG9yZXhhbXBsZUBvdXRsb29rLmNvbSIsInVzZXJuYW1lIjoiZGlzdHJpYnV0b3JleGFtcGxlQG91dGxvb2suY29tIiwidWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5Nn19.4RbFpLSVFGMpgp-xAFfNMU82J4I4WbxIskKD27vp4ge3pEhdUsr-qHnHh3Qm78xPx7cbXl8pp5UmNfQWH7pZ1u4Rx2WlR-WcfrdPJvCSxnru4UbBxU9BC9DBQyEVOKYmnTHqEosEZkoaHdlDySHdNCg1mxgcVwk3mczlognjSpAkuoMTNydq_gReUToc-v0SPS3YMDhJsCSC_NDuG4b9jc8B703hiM-FzVfOUdrluVfIsjT-skM7ZwOWH7p7uT_Y_uEi1QUuQUgB-bKc2Vb7PTajXRETtdvJS-yxca5Gv8Z5EGEzk4ThEuSh1xrxelYpMzvwyEjbW5Nak4joLiE_lQ
Content-Type: application/json
{
"region": "all",
"grain": "minute",
"callType": "all",
"timeRange": "today",
"trunkId": 0,
"timezone": "Asia/Shanghai"
}
Response example
HTTP/1.1 200 OK { "requestId": "9309d9a93c68c83ccc246d07dbd20601", "code": "200", "message": "SUCCESS", "result": { "widgetVisibility": { "peak_concurrent": { "hidden": false } }, "points": [ { "bucketStartMs": 1788278400000, "primary": 0, "secondary": 0, "primaryGap": false, "secondaryGap": false }, { "bucketStartMs": 1788278460000, "primary": 0, "secondary": 0, "primaryGap": false, "secondaryGap": false }, { "bucketStartMs": 1788278520000, "primary": 0, "secondary": 0, "primaryGap": false, "secondaryGap": false } ], "summary": { "primary": 0, "secondary": 0 }, "freshness": { "status": "delayed", "unavailableRegions": [ "afs-1", "de-0", "gke-hk-0" ] } } }