用量监控
GET 获取套餐
GET /prod-api/cdn/domain/getPackages
获取套餐
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
Authorization | header | string | 否 | none |
返回示例
{
"msg": "操作成功",
"code": 200,
"data": [
{
"label": "11123",
"value": "20220825123456"
},
{
"label": "1111122",
"value": "20231213190456877"
}
]
}
401 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
401 | Unauthorized | none | Inline |
403 | Forbidden | none | Inline |
404 | Not Found | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» msg | string | true | none | none | |
» code | integer | true | none | none | |
» data | [object] | true | none | none | |
»» label | string | false | none | 标签 | none |
»» value | string | false | none | 值 | none |
微服务/安全加速/七层 数据统计接口
POST 用量监控数据
POST /prod-api/cdn/layer7/statistic/describeL7UsageData
Body 请求参数
{
"interval": "1m",
"oids": [
"20240412279000084616"
],
"params": {
"beginTime": "2024-11-25 00:00:00",
"endTime": "2024-11-25 23:59:59"
},
"action": [
{
"metricName": "totalTraffic"
},
{
"metricName": "trafficTrend"
},
{
"metricName": "bandwidthTrend"
}
]
}
请求参数
名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
---|---|---|---|---|---|
Authorization | header | string | 否 | none | |
body | body | object | 否 | none | |
» interval | body | string | 是 | 统计粒度 | 1m:1分钟 5m:5分钟 1h:1小时 1d:1天 |
» oids | body | [string] | 是 | 域名 | none |
» params | body | object | 是 | none | |
»» beginTime | body | string | 是 | 开始时间 | none |
»» endTime | body | string | 是 | 结束时间 | none |
» action | body | [object] | 是 | none | |
»» metricName | body | string | 是 | 获取数据名称 | metricName:“trafficTrend(流量统计图)” |
详细说明
»» metricName: metricName:“trafficTrend(流量统计图)” metricName:“totalTraffic(流量数据概览)” metricName:“bandwidthTrend(带宽统计图)”
返回示例
{
"msg": "成功",
"code": 200,
"data": [
{
"metricName": "bandwidthTrend",
"objectArrayList": [
[
1732464060000,
15229
],
[
1732462560000,
2246
]
],
"total": 36083270
},
{
"metricName": "trafficTrend",
"objectArrayList": [
[
1732464060000,
15229
],
[
1732524540000,
2246
]
],
"total": 651893
}
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
状态码 200
名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
---|---|---|---|---|---|
» msg | string | true | none | none | |
» code | integer | true | none | none | |
» data | [object] | true | none | none | |
»» metricName | string | true | none | 获取数据名称 | none |
»» total | integer | true | none | metricName: "totalTraffic" --- total(访问流量) metricName: "bandwidthTrend"--- total(带宽峰值) |
|
»» objectArrayList | [array] | true | none | metricName: "totalTraffic" --- objectArrayList(访问流量统计图) metricName: "bandwidthTrend"--- objectArrayList(带宽峰值统计图) |