文档
测试

获取模板触发器列表

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

接口描述

/api/v1/hosts/template/<int:template_id>/triggerPrototype

请求参数

参数名
类型
描述
必填
uid
string
用户uid
必填
token
string
用户授权码
必填
description
string
触发器名称
可选
priority
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,示例:4126
必填
description
string
描述,示例:Host name of zabbix_agentd was changed on {HOST.NAME}
必填
expression
string
表达式,示例:{32963}>0
必填
priority
string
严重性,示例:('0', '未分类'), ('1', '信息'), ('2', '警告'), ('3', '一般严重'), ('4', '严重'), ('5', '灾难')
必填
creator
string
创建人,示例:Administrator
必填
create_time
string
创建时间,示例:2021-01-15 03:04:00
必填
total
int
示例:212
必填