获取监控项原型详情
GET
http://172.16.14.11:8069/api/v1/hosts/template/itemPrototype/1
接口描述
/api/v1/hosts/template/itemPrototype/<int:item_id>
请求参数
参数名
类型
描述
必填
uid
string
用户uid
必填
token
string
用户授权码
必填
响应参数
参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
id
int
id
必填
name
int
监控项名字,示例:1
必填
history
string
保存时长,示例:内存使用率(剩%)
必填
key
string
键值,示例:vm.memory.size[pavailable]
必填
delay
string
获取间隔,示例:30s
必填
item_type
string
监控项类型,0 - Zabbix agent; 1 - SNMPv1 agent; 2 - Zabbix trapper; 3 - simple check; 4 - SNMPv2 agent; 5 - Zabbix internal; 6 - SNMPv3 agent; 7 - Zabbix agent (active); 8 - Zabbix aggregate; 9 - web item; 10 - external check; 11 - database monitor; 12 - IPMI agent; 13 - SSH agent; 14 - TELNET agent; 15 - calculated; 16 - JMX agent; 17 - SNMP trap; 18 - Dependent item; 19 - HTTP agent;示例:0
必填
url
boolean
URL,示例:false
必填
value_type
string
数值类型,0 - numeric float; 1 - character; 2 - log; 3 - numeric unsigned; 4 - text.示例:0
必填
units
boolean
单位,示例:false
必填
is_sync
boolean
是否手动更新,示例:false
必填