文档
测试

获取历史数据

GET
http://172.16.14.11:8069/api/v1/hosts/host/item/4466/history

接口描述

/api/v1/hosts/item/<int:item_id>/history, <int:item_id>:填写监控项的id,主机获取监控项里有

请求参数

参数名
类型
描述
必填
uid
string
用户uid
必填
token
string
用户授权码
必填
create_time
dict
可选
start
string
开始时间,格式为:%Y-%m-%d %H:%M:%S
必填
end
string
结束时间,格式为:%Y-%m-%d %H:%M:%S
必填
current_page
int
当前页码
必填
page_size
int
页面显示数量
必填

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
result
array
数据列表
必填
clock
string
时间戳,示例:1609375871
必填
value
string
值,示例:57.2095
必填