Skip to content

CC攻击

POST 查询CC攻击数据

POST /prod-api/cdn/layer7/attackStatistic/describeL7CCAttack

Body 请求参数

{
  "domains": [],
  "interval": "1m",
  "params": {
    "beginTime": "2023-08-24 04:49:18",
    "endTime": "2023-08-24 10:49:18"
  },
  "action": [
    {
      "metricName": "attack_detail"
    }
  ]
}

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string none
body body object none
» action body [Action] action值 metricName: "ccPolicyTrend(攻击趋势)
»» Action body Action Action none
»»» metricName body string none
»»» pageNo body integer(int32) none
»»» pageSize body integer(int32) none
» domains body [string] none
» interval body string 统计粒度 1m:1分钟
» mostDimension 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
» terminal body string cnd:访问数据
» userId body integer(int64) none
» otherFilter body [string] none

详细说明

» action: metricName: "ccPolicyTrend(攻击趋势) metricName: "attack_detail(攻击概览" metricName: "domain(域名) metricName: "http_user_agent(客户端)

» interval: 1m:1分钟 5m:5分钟 1h:1小时 1d:1天

» terminal: cnd:访问数据 source:回源数据

返回示例

{
  "msg": "操作成功",
  "code": 200,
  "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 [string] true none none

GET 获取参数

GET /prod-api/cdn/layer7/attackStatistic/initData

请求参数

名称 位置 类型 必选 中文名 说明
Authorization header string none

返回示例

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "params": {},
    "pageNum": null,
    "pageSize": null,
    "userId": null,
    "packageList": [
      {
        "name": "测试WAF",
        "alias": "11123",
        "oid": "2022123456808922"
      },
      {
        "name": "waf测试套餐",
        "alias": "1111122",
        "oid": "2023123456"
      }
    ],
    "domains": [
      {
        "label": "hrs.demo.cn",
        "value": "hrs.demo.cn"
      },
      {
        "label": "zb.demo.com",
        "value": "zb.demo.com"
      }
    ],
    "beginTimeDate": null,
    "endTimeDate": null
  }
}

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
»» params object true none none
»» pageNum null true none none
»» pageSize null true none none
»» userId null true none none
»» packageList [object] true none 套餐列表 none
»»» name string true none none
»»» alias string true none none
»»» oid string true none none
»» domains [object] true none 域名列表 none
»»» label string true none none
»»» value string true none none
»» endTimeDate null true none none
»» beginTimeDate null true none none

数据模型

Action

{
  "metricName": "string",
  "pageNo": 0,
  "pageSize": 0
}

Action

属性

名称 类型 必选 约束 中文名 说明
metricName string false none none
pageNo integer(int32) false none none
pageSize integer(int32) false none none

L7QueryStatisticVO

{
  "action": [
    {
      "metricName": "string",
      "pageNo": 0,
      "pageSize": 0
    }
  ],
  "domains": [
    "string"
  ],
  "interval": "string",
  "mostDimension": "string",
  "otherFilter": [
    {
      "oneVal": "string",
      "threeVal": [
        "string"
      ],
      "threeVals": [
        "string"
      ],
      "twoVal": "string"
    }
  ],
  "pageNum": 0,
  "pageSize": 0,
  "params": {
    "beginTime": "string",
    "endTime": "string"
  },
  "terminal": "string",
  "userId": 0
}

L7QueryStatisticVO

属性

名称 类型 必选 约束 中文名 说明
action [Action] true none none
domains [string] false none none
interval string true none 统计粒度 1m:1分钟
5m:5分钟
1h:1小时
1d:1天
mostDimension string true none none
otherFilter [StatisticOtherFilterVO] false none none
pageNum integer(int32) true none 当前页数 none
pageSize integer(int32) true none 每页显示条目个数 none
params object false none none
» beginTime string true none 开始时间 none
» endTime string true none 结束时间 none
terminal string false none cnd:访问数据
source:回源数据
userId integer(int64) false none none

StatisticOtherFilterVO

{
  "oneVal": "string",
  "threeVal": [
    "string"
  ],
  "threeVals": [
    "string"
  ],
  "twoVal": "string"
}

StatisticOtherFilterVO

属性

名称 类型 必选 约束 中文名 说明
oneVal string false none none
threeVal [string] false none none
threeVals [string] false none none
twoVal string false none none