DDOS 攻击¶
POST 查询 DDOS 攻击数据¶
POST /prod-api/cdn/layer7/attackStatistic/describeL7DDOSAttack
Body 请求参数
{
"beginTime": 1291111596641,
"userId": 37,
"action": [
{
"metricName": "ddosAttackTread"
},
{
"metricName": "ddosAttackEvent"
}
],
"oid": "2022012543408922",
"params": {
"beginTime": "2023-08-24 04:49:18",
"endTime": "2023-08-24 10:49:18"
},
"interval": "1m"
}
请求参数¶
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| Authorization | header | string | 否 | none | |
| body | body | object | 否 | none | |
| » action | body | [Action0] | 否 | metricName: "ddosAttackTread(DDOS 攻击统计图)" | |
| »» Action0 | body | Action0 | 否 | Action0 | none |
| »»» metricName | body | string | 否 | metricName : "ddosAttackTread" | |
| » beginTime | body | integer(int64) | 否 | none | |
| » endTime | body | integer(int64) | 否 | none | |
| » interval | body | string | 是 | 统计粒度 | 1m:1 分钟 |
| » oid | body | string | 是 | 套餐号 | none |
| » pageNum | body | integer(int32) | 否 | 当前页数 | none |
| » pageSize | body | integer(int32) | 否 | 每页显示条目个数 | none |
| » params | body | object | 是 | none | |
| »» beginTime | body | string | 是 | 开始时间 | none |
| »» endTime | body | string | 是 | 结束时间 | none |
详细说明¶
» action: metricName: "ddosAttackTread(DDOS 攻击统计图)" metricName: "ddosAttackEvent(攻击事件)"
» interval: 1m:1 分钟 5m:5 分钟 1h:1 小时 1d:1 天
返回示例
{
"msg": "操作成功",
"code": 200,
"data": [
{
"maxDDOS": 0,
"metricName": "ddosAttackTread",
"data": [
[1692823758000, 0],
[1692823818000, 0]
]
},
{
"metricName": "ddosAttackEvent",
"data": []
}
]
}
201 Response
返回结果¶
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 201 | Created | 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 | |
| »» maxDDOS | integer | false | none | none | |
| »» metricName | string | true | none | none | |
| »» data | [array] | true | none | none |
数据模型¶
Action0
Action0
属性¶
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| metricName | string | false | none | metricName : "ddosAttackTread" |
L4QueryDDOSStatisticVO
{
"action": [
{
"metricName": "string"
}
],
"beginTime": 0,
"endTime": 0,
"interval": "string",
"oid": "string",
"pageNum": 0,
"pageSize": 0,
"params": {
"beginTime": "string",
"endTime": "string"
},
"userId": 0
}
L4QueryDDOSStatisticVO
属性¶
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| action | [Action0] | true | none | none | |
| beginTime | integer(int64) | false | none | none | |
| endTime | integer(int64) | false | none | none | |
| interval | string | true | none | 统计粒度 | 1m:1 分钟 5m:5 分钟 1h:1 小时 1d:1 天 |
| oid | string | true | none | 套餐号 | none |
| pageNum | integer(int32) | false | none | 当前页数 | none |
| pageSize | integer(int32) | false | none | 每页显示条目个数 | none |
| params | object | true | none | none | |
| » beginTime | string | true | none | 开始时间 | none |
| » endTime | string | true | none | 结束时间 | none |