文档
测试

获取模板监控项列表

GET
http://172.16.14.11:8069/api/v1/hosts/template/3/itemPrototype

接口描述

/api/v1/hosts/template/<int:template_id>/itemPrototype, <int:template_id>:填写模板的id

请求参数

参数名
类型
描述
必填
uid
string
用户id
必填
token
string
用户授权码
必填
name
string
监控名字
可选
key
string
键值
可选
creator
string
创建人名字
可选
create_time
dict
创建时间
可选
start
string
开始时间,格式为:%Y-%m-%d %H:%M:%S
必填
end
string
结束时间,格式为:%Y-%m-%d %H:%M:%S
必填
offset
int
跳过数据数量
可选
limit
int
限制数据数量
可选

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
result
array
数据列表
必填
id
int
监控项原型id,示例:1
必填
name
string
监控项名字,示例:内存使用率(剩%)
必填
key
string
键值,示例:vm.memory.size[pavailable]
必填
delay
string
间隔,示例:30s
必填
history
string
保存时长,示例:90d
必填
creator
string
创建人,示例:admin2
必填
create_time
string
创建时间,示例:2021-01-06 09:38:58
必填
total
int
数据总数,示例:1
必填