Zabbix Documentation 4.0

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


zh:manual:api:changes_3.4_-_4.0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
zh:manual:api:changes_3.4_-_4.0 [2018/12/17 17:30]
gengli
zh:manual:api:changes_3.4_-_4.0 [2018/12/26 10:46]
gengli
Line 20: Line 20:
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4516|ZBXNEXT-4516]] renamed dashboard widget types: ''​actlog''​ => ''​actionlog'',​ ''​dscvry''​ => ''​discovery'',​ ''​favgrph''​ => ''​favgraphs'',​ ''​favmap''​ => ''​favmaps'',​ ''​favscr''​ => ''​favscreens'',​ ''​hoststat''​ => ''​problemhosts'',​ ''​navigationtree''​ => ''​navtree'',​ ''​stszbx''​ => ''​systeminfo'',​ ''​sysmap''​ => ''​map'',​ ''​syssum''​ => ''​problemsbysv''​ and ''​webovr''​ => ''​web''​ \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4516|ZBXNEXT-4516]] renamed dashboard widget types: ''​actlog''​ => ''​actionlog'',​ ''​dscvry''​ => ''​discovery'',​ ''​favgrph''​ => ''​favgraphs'',​ ''​favmap''​ => ''​favmaps'',​ ''​favscr''​ => ''​favscreens'',​ ''​hoststat''​ => ''​problemhosts'',​ ''​navigationtree''​ => ''​navtree'',​ ''​stszbx''​ => ''​systeminfo'',​ ''​sysmap''​ => ''​map'',​ ''​syssum''​ => ''​problemsbysv''​ and ''​webovr''​ => ''​web''​ \\
 +
 +=== 仪表盘 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4516|ZBXNEXT-4516]] 重命名了仪表盘小工具的类型: ''​actlog''​ => ''​actionlog'',​ ''​dscvry''​ => ''​discovery'',​ ''​favgrph''​ => ''​favgraphs'',​ ''​favmap''​ => ''​favmaps'',​ ''​favscr''​ => ''​favscreens'',​ ''​hoststat''​ => ''​problemhosts'',​ ''​navigationtree''​ => ''​navtree'',​ ''​stszbx''​ => ''​systeminfo'',​ ''​sysmap''​ => ''​map'',​ ''​syssum''​ => ''​problemsbysv''​ and ''​webovr''​ => ''​web''​ \\
  
 === drule === === drule ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] discovery rules cannot be deleted when are used in actions\\ [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] discovery rules cannot be deleted when are used in actions\\
 +
 +=== 发现规则 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] 如果发现规则正在动作中使用,那么该规则将不能被删除 \\
  
 ==== Other changes and bug fixes ==== ==== Other changes and bug fixes ====
 +==== 其他变更及Bug修复 ====
 === General === === General ===
 +=== 通用 ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4426|ZBXNEXT-4426]] added a new task API introducing a new method ''​task.create''​. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4426|ZBXNEXT-4426]] added a new task API introducing a new method ''​task.create''​. \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4152|ZBXNEXT-4152]] added possibility to filter IDs by zero. For example: ''​host.get()''​ with option ''​{"​proxyids":​ [0]}''​ will return hosts monitored by server. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4152|ZBXNEXT-4152]] added possibility to filter IDs by zero. For example: ''​host.get()''​ with option ''​{"​proxyids":​ [0]}''​ will return hosts monitored by server. \\
 +
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4426|ZBXNEXT-4426]] 添加了一个新的任务API,引入了一个新方法:“task.create”。 \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4152|ZBXNEXT-4152]] 增加了通过 零 来过滤id的可能性。 例如: ''​host.get()''​ 中 ''​{"​proxyids":​ [0]}''​选项,将返回被zabbix server监控的主机。 \\
  
 === apiinfo === === apiinfo ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​version''​ method \\ [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​version''​ method \\
 +
 +=== api信息 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] 增加了对 “version” 方法输入参数的严格验证 \\
  
 === action === === action ===
Line 39: Line 57:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\
 [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method; added audit \\ [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method; added audit \\
 +
 +=== 动作 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] 在自定义表达式的筛选器公式中,增加了对“not”运算符的支持 \\
 +[[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] 增加了对 “delete” 方法输入参数的严格验证;添加了审计 ​ \\
  
 === correlation === === correlation ===
Line 44: Line 67:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\
 [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method; added audit \\ [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method; added audit \\
 +
 +=== 相互关系 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] 在自定义表达式的筛选器公式中,增加了对“not”运算符的支持 \\
 +[[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] 增加了对 “delete” 方法输入参数的严格验证;添加了审计 \\
  
 === discoveryrule === === discoveryrule ===
Line 49: Line 77:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support for ''​not''​ operator in custom expression filter formula \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support of value ''​9''​ in the filter condition operator \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] added support of value ''​9''​ in the filter condition operator \\
 +
 +=== 发现规则 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] 在自定义表达式的筛选器公式中,增加了对“not”运算符的支持 \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-2788|ZBXNEXT-2788]] 在过滤条件运算符中,​增加了数值“9”的支持 \\
  
 === drule === === drule ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method \\ [[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] added strict validation of input parameters for ''​delete''​ method \\
 +
 +=== 发现规则 ===
 +Changes: \\
 +[[https://​support.zabbix.com/​browse/​ZBX-3783|ZBX-3783]] 增加了对 “delete” 方法输入参数的严格验证 \\
  
 === event === === event ===
Line 58: Line 95:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​event.get'':​ added a new property ''​evaltype''​ and extended ''​tags''​ property to support new value "<​​operator>"​ \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​event.get'':​ added a new property ''​evaltype''​ and extended ''​tags''​ property to support new value "<​​operator>"​ \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​event.get'':​ returns only problems and corresponding recovery events that match the tag based permission filters \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​event.get'':​ returns only problems and corresponding recovery events that match the tag based permission filters \\
 +
 +=== 事件 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​event.get'':​ 新增 ''​evaltype''​ 属性,扩展 ''​tags''​ 属性以支持新的值 "<​​operator>"​ \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​event.get'':​ 只返回与基于权限筛选器的标记匹配的问题和相应的恢复事件 \\
  
 === item === === item ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4358|ZBXNEXT-4358]] added new item type "HTTP agent"​. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4358|ZBXNEXT-4358]] added new item type "HTTP agent"​. \\
 +
 +=== 监控项 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4358|ZBXNEXT-4358]] 新增"​HTTP agent"​监控项类型。 \\
  
 === itemprototype === === itemprototype ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4200|ZBXNEXT-4200]] ''​itemprototype.create'',​ ''​itemprototype.update'':​ added possibility to add regular items and web items as master items in ''​master_itemid''​ property. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4200|ZBXNEXT-4200]] ''​itemprototype.create'',​ ''​itemprototype.update'':​ added possibility to add regular items and web items as master items in ''​master_itemid''​ property. \\
 +
 +=== 监控项原型 ===
 +Changes: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4200|ZBXNEXT-4200]] ''​itemprototype.create'',​ ''​itemprototype.update'':​ 在''​master_itemid''​属性中,添加了常规监控项和web监控项作为主监控项的可能性。 \\
  
 === mediatype === === mediatype ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4144|ZBXNEXT-4144]] password field for authentication type "​Username and password"​ was made as optional. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4144|ZBXNEXT-4144]] password field for authentication type "​Username and password"​ was made as optional. \\
 +
 +=== 媒介类型 ===
 +Changes: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4144|ZBXNEXT-4144]] 验证类型 "​Username and password"​中的password字段变为选填项。 \\
  
 === problem === === problem ===
Line 75: Line 129:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​problem.get'':​ added a new property ''​evaltype''​ and extended ''​tags''​ property to support new value "<​​operator>"​ \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​problem.get'':​ added a new property ''​evaltype''​ and extended ''​tags''​ property to support new value "<​​operator>"​ \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​problem.get'':​ returns only those events that match the tag based permission filters \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​problem.get'':​ returns only those events that match the tag based permission filters \\
 +
 +=== 问题 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4118|ZBXNEXT-4118]] ''​problem.get'':​ 新增 ''​evaltype''​ 属性,扩展 ''​tags''​ 属性以支持新的值 "<​​operator>"​ \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​problem.get'':​ 只返回与基于权限筛选器的标记匹配的事件 \\
  
 === proxy === === proxy ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4411|ZBXNEXT-4411]] added a new property ''​auto_compress''​. \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4411|ZBXNEXT-4411]] added a new property ''​auto_compress''​. \\
 +
 +=== 代理 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4411|ZBXNEXT-4411]] 新增属性 ''​auto_compress''​ \\
  
 === trigger === === trigger ===
 Changes: \\ Changes: \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4357|ZBXNEXT-4357]] ''​trigger.get'':​ added a new ''​selectTriggerDiscovery''​ option that returns the trigger discovery object in the ''​triggerDiscovery''​ property \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4357|ZBXNEXT-4357]] ''​trigger.get'':​ added a new ''​selectTriggerDiscovery''​ option that returns the trigger discovery object in the ''​triggerDiscovery''​ property \\
 +
 +=== 触发器 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4357|ZBXNEXT-4357]] ''​trigger.get'':​ 新增 ''​selectTriggerDiscovery''​ 选项, 该选项返回在''​triggerDiscovery''​属性中的触发器发现对象 \\
  
 === usergroup === === usergroup ===
Line 88: Line 155:
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.get'':​ added a new ''​selectTagFilters''​ option that returns the array of the tag based permissions objects in the ''​tag_filters''​ property \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.get'':​ added a new ''​selectTagFilters''​ option that returns the array of the tag based permissions objects in the ''​tag_filters''​ property \\
 [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.create''​ and ''​usergroup.update'':​ added a new ''​tag_filters''​ property \\ [[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.create''​ and ''​usergroup.update'':​ added a new ''​tag_filters''​ property \\
 +
 +=== 用户组 ===
 +变化: \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.get'':​ 新增 ''​selectTagFilters''​ 选项, 该选项返回 在 ''​tag_filters''​ 属性中,基于标签的权限对象数组 ​ \\
 +[[https://​support.zabbix.com/​browse/​ZBXNEXT-4119|ZBXNEXT-4119]] ''​usergroup.create''​ and ''​usergroup.update'':​ 新增 ''​tag_filters''​ 属性 \\