API名称:DescribeWSStatistics。
API域名:open.volcengineapi.com。
API描述:查询 WebSocket 连接数用量。
参数名称 | 数据类型 | 是否必选 | 参数说明 |
---|---|---|---|
Action | String | 是 | 接口名称。当前 API 的名称为 DescribeWSStatistics 。 |
Version | String | 是 | 接口版本。当前 API 的版本为 2021-04-01 。 |
参数名称 | 数据类型 | 是否必选 | 参数说明 | 示例 |
---|---|---|---|---|
StartTime | String | 是 | 指定查询的开始时间。开始时间和结束时间最大查询跨度不超过31天。 | 2024-08-12 00:00:00 |
EndTime | String | 是 | 指定查询的结束时间。开始时间和结束时间最大查询跨度不超过31天。 | 2024-08-12 00:18:36 |
ProjectName | String[] | 否 |
| ["TEST"] |
Interval | Integer | 否 | 指定查询的时间粒度,单位是秒。支持取值:
| 300 |
GroupByDomain | Boolean | 否 | WebSocket 连接数情况是否根据域名分组。
| true |
Domains | String[] | 否 |
| ["www.test.com"] |
参数名称 | 数据类型 | 参数说明 | 示例 |
---|---|---|---|
Domains | String[] | 您查询的域名。 | ["www.test.com"] |
Results | Object[] | WebSocket 连接数用量详情。 | - |
POST https://open.volcengineapi.com?Action=DescribeWSStatistics&Version=2021-04-01 { "StartTime": "2024-08-09 16:00:00", "EndTime": "2024-08-09 17:00:00", "Interval": 300, "Domains": [ "xxx.test.com" ], "ProjectName": [ ], "GroupByDomain": true }
{ "ResponseMetadata": { "RequestId": "2024081417331751D9E5503AE0AC18D6E1", "Action": "DescribeWSStatistics", "Version": "2021-04-01", "Service": "dcdn", "Region": "cn-north-1" }, "Result": { "Domains": [ "xxx.test.com" ], "Results": [ { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:00:00", "WSCountValue": 4 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:05:00", "WSCountValue": 0 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:10:00", "WSCountValue": 4 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:15:00", "WSCountValue": 0 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:20:00", "WSCountValue": 0 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:25:00", "WSCountValue": 0 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:30:00", "WSCountValue": 0 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:35:00", "WSCountValue": 5 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:40:00", "WSCountValue": 5 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:45:00", "WSCountValue": 3 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:50:00", "WSCountValue": 3 }, { "DomainName": "xxx.test.com", "TimeStamp": "2024-08-09 16:55:00", "WSCountValue": 3 } ] } }