query daily traffic data
POST
/api/daily_traffic/query请求参数
Body Params application/json
filter
object
required
query condition
data_type
string
required
one of the following traffic type:
"rotation_residential",
"rotation_datacenter"
end_date
string
required
end date, format: 2023-02-10
ip_or_account
string
required
account name or ip, empty string for all traffic
start_date
string
required
start date, format: 2023-01-10
Example
{
"filter": {
"data_type": "rotation_residential",
"end_date": "2023-06-30",
"ip_or_account": "",
"start_date": "2023-06-01"
}
}
示例代码
Responses
result(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
data
array [object {5}]
required
query result
amount
string
optional
traffic amount byte
date
string
optional
date, format: 2023-01-10
gkey
string
optional
format:{userid}ip{xxx.xxx.xx.x}account{account_id}
gtype
string
optional
traffic type, same as data_type in request
id
string
optional
meta_message
string
required
success or other error msg
meta_status
integer
required
1 for success, negative for error
Example
{
"data": [
{
"amount": "string",
"date": "string",
"gkey": "string",
"gtype": "string",
"id": "string"
}
],
"meta_message": "string",
"meta_status": 0
}
Modified at 1 年前