预警日志
GET
http:/domain/api/front/attack/lists?page=1&start_date=2020-12-01&end_date=2020-12-09&page=1&limit=15&host=www.1.com
请求头
参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填
请求参数
参数名
类型
描述
必填
start_date
date
开始日期
可选
end_date
date
截至日期
可选
page
int
当前第几页
可选
limit
int
分页数量,默认15
可选
host
string
域名
可选
响应参数
参数名
类型
描述
必填
fromHost
string
域名
必填
attackType
string
类型
必填
attackCount
int
攻击次数
必填
time
date
时间
必填
Level
int
等级
必填
message
string
备注
必填
spamIp
string
来源ip
必填
说明 / 示例
返回参数示例:
{
"code": 1,
"msg": "success",
"data": {
"list": {
"current_page": 2,
"data": [{
"fromHost": "www.1.com",
"attackType": "空UserAgent拦截",
"attackCount": 1,
"time": "2020-12-07 20:45:04",
"Level": 1,
"message": "空UserAgent拦截。",
"spamIp": "47.103.41.229"
}, {
"fromHost": "www.1.com",
"attackType": "空UserAgent拦截",
"attackCount": 1,
"time": "2020-12-07 20:45:03",
"Level": 1,
"message": "空UserAgent拦截。",
"spamIp": "74.120.14.37"
}, {
"fromHost": "www.1.com",
"attackType": "空UserAgent拦截",
"attackCount": 1,
"time": "2020-12-07 20:45:03",
"Level": 1,
"message": "空UserAgent拦截。",
"spamIp": "162.142.125.55"
}, {
"fromHost": "www.1.com",
"attackType": "空UserAgent拦截",
"attackCount": 1,
"time": "2020-12-07 20:45:02",
"Level": 1,
"message": "空UserAgent拦截。",
"spamIp": "74.120.14.40"
}, {
"fromHost": "www.1.com",
"attackType": "空UserAgent拦截",
"attackCount": 1,
"time": "2020-12-07 20:45:02",
"Level": 1,
"message": "空UserAgent拦截。",
"spamIp": "113.96.198.102"
}],
"first_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/attack\/lists?page=1",
"from": 6,
"last_page": 6,
"last_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/attack\/lists?page=6",
"next_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/attack\/lists?page=3",
"path": "http:\/\/127.0.0.1:9907\/api\/front\/attack\/lists",
"per_page": 5,
"prev_page_url": "http:\/\/127.0.0.1:9907\/api\/front\/attack\/lists?page=1",
"to": 10,
"total": 28
}
}
}