文档
测试

获取监控项详情

POST
http://172.16.14.11:8069/api/v1/hosts/host/item/5822

接口描述

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

请求参数

参数名
类型
描述
必填
uid
string
用户uid
必填
token
string
用户授权码
必填

响应参数

参数名
类型
描述
必填
code
string
示例:200
必填
msg
string
示例:请求成功
必填
result
object
数据字典
必填
id
int
监控项ID,示例:5822
必填
name
string
监控项名字,示例:CPU数量
必填
key
string
键值,示例:system.cpu.num
必填
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;
必填
value_type
string
数值类型,示例:0 - numeric float; 1 - character; 2 - log; 3 - numeric unsigned; 4 - text.
必填
history
string
保存时长,示例:90d
必填
delay
string
间隔,示例:30s
必填
status
string
状态,示例:0-开启,1-关闭
必填