获取模板监控项列表
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
请求参数
响应参数
参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
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
必填