这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.
2022 Zabbix中国峰会
2022 Zabbix中国峰会

附录2. 从5.4到6.0的变更记录

向下不兼容的变更

动作

变更:
ZBXNEXT-6755 action.createaction.update:重命名参数 acknowledge_operations 变更为 update_operations
ZBXNEXT-6755 action.get:重命名参数selectAcknowledgeOperations 变更为 selectUpdateOperations
ZBXNEXT-6920 action.createaction.update:添加了对方法参数的严格校验。

审计日志

变更:
ZBXNEXT-6715 审计日志对象:删除对属性note的支持。
ZBXNEXT-6715 审计日志对象:删除对resourcetype值为 2(Zabbix 配置)和值为7(Graph 元素)的支持。
ZBXNEXT-6715 审计日志对象:删除对action值为5(可用) 和值 6(不可用)的支持。
ZBXNEXT-6715 auditlog.get:删除对参数 selectDetails的支持。
ZBXNEXT-6718 审计日志对象:删除对action值为3(登录)的支持。

主机组

变更:
ZBXNEXT-6868 hostgroup.massupdatehoststemplates字段现在是必填项。
ZBXNEXT-6868 hostgroup.massaddhostgroup.massupdate, hostgroup.massremove:添加了对方法参数的严格校验。

host prototype

Changes:
ZBXNEXT-6959 hostprototype.get: dropped support of properties group_prototypeid, hostid, templateid of group link and and group prototype API objects.
ZBXNEXT-6959 hostprototype.update: dropped the ability to modify the readonly fields host, name, custom_interfaces, interfaces, groupLinks, groupPrototypes, templates, tags, macros, inventory_mode of inherited host prototypes.
ZBXNEXT-6959 hostprototype.create, hostprototype.update, hostprototype.delete: added strict validation of the method parameters.

图标映射

变更:
ZBXNEXT-6914 iconmap.createiconmap.update:删除对图标映射对象属性sortorder的支持。

维护

变更:
ZBXNEXT-6890 maintenance.createmaintenance.updatemaintenance.delete:添加了对方法参数的严格校验。
ZBXNEXT-6890 maintenance.getmaintenance.update:删除对时间段对象参数timeperiodid的支持。

媒介类型

变更:
ZBXNEXT-6885 mediatype.createmediatype.update:添加了对方法参数的严格校验。

角色

变更:
ZBXNEXT-6787 动作对象:删除对name属性值为manage_services的支持。

服务

变更:
ZBXNEXT-6999 service.get:删除对showslaselectAlarmsselectTimes参数的支持。
ZBXNEXT-6999 service.getsla:删除对此方法的支持。
ZBXNEXT-6999 服务对象:添加uuiddescriptioncreated_at属性。
ZBXNEXT-6999 服务对象:删除对showslagoodslatimes属性的支持。
ZBXNEXT-6999 添加方法sla.getsla.createsla.updatesla.deletesla.getsli
ZBXNEXT-6999 service.get:添加对serviceidstatuscreated_at排序的支持。
ZBXNEXT-6999 service.get:添加对slaids参数的支持;添加对使用uuid进行过滤的支持。
ZBXNEXT-6999 service.create, serevice.update:删除对showslagoodslatimes参数的支持。
ZBXNEXT-3022 UI元素对象:删除对名称值为configuration.services的支持。
ZBXNEXT-3022 删除对service.adddependenciesservice.addtimesservice.deletedependenciesservice.deletetimes的支持。
ZBXNEXT-3022 service.create, service.update:删除对参数dependenciesparentid的支持。
ZBXNEXT-3022 service.get:删除对参数selectParentselectDependenciesselectParentDependencies的支持。
ZBXNEXT-6674 删除对属性triggerid的支持。
ZBXNEXT-6674 service.get:删除对参数selectTrigger的支持。
ZBXNEXT-6800 服务对象:将status值为0的含义,由OK变更为Not classified
ZBXNEXT-2406 service.getsla:将statusproblems属性从 intervals参数请求的响应结果中移除。

模板

变更:
ZBXNEXT-6867 template.createtemplate.updatetemplate.deletetemplate.massaddtemplate.massupdatetemplate.massremove:添加了对方法参数的严格校验。
ZBXNEXT-6867 template.createtemplate.updatetemplate.massaddtemplate.massupdate:删除对参数hosts的支持。
ZBXNEXT-6867 template.massremove:删除对参数hostids的支持。

触发器

变更:
ZBXNEXT-6867 trigger.adddependenciestrigger.deletedependencies:删除编辑继承触发器依赖的功能。

其他变更和Bug修复

动作

变更:
ZBXNEXT-6755 添加对conditiontype值为27(服务)和值为28(服务名称)的支持。
ZBXNEXT-6250 action.getaction.createaction.update:添加新属性notify_if_canceled

审计日志

变更:
ZBXNEXT-6999 添加对sla资源的支持。
ZBXNEXT-6715 审计日志对象:添加对属性usernamerecordsetiddetails的支持。
ZBXNEXT-6718 审计日志对象:添加对action值为8(登录),9(登录失败)和10(历史清除)的支持。

身份认证

变更:
ZBXNEXT-4029 添加新的密码策略字段passwd_min_lengthpasswd_check_rules

仪表盘

变更:
ZBXNEXT-6999 添加对SLA和Service字段类型的支持。
ZBXNEXT-6966 添加对新新控件类型item的支持。

历史

变更:
ZBXNEXT-6714 添加新方法history.clear

管家

变更:
ZBXNEXT-6755 添加对属性hk_events_service的支持。

监控项原型

变更:
ZBXNEXT-7049 itemprototype.getitemprototype.createitemprototype.update:为Prometheus 模式预处理步骤添加第三个参数。第二个参数现在将会决定一个聚合方法:valuelabelfunction。第三个参数现在将包含聚合方法label或聚合方法function的一个聚合函数的Prometheus输出。

维护

变更:
ZBXNEXT-6890 maintenance.createmaintenance.update:参数groupids现在已被弃用。改为使用groups
ZBXNEXT-6890 maintenance.createmaintenance.update:参数hostids现在已被弃用。改为使用hosts
ZBXNEXT-6890 maintenance.createmaintenance.update:参数groupshoststimeperiodstags的类型由array变更为object/array

媒介类型

变更:
ZBXNEXT-6755 消息模板对象:添加对conditiontype值为4(服务状态更新时创建的事件)的支持。

代理

变更:
ZBXNEXT-6889 proxy.createproxy.update:删除对interface.interfaceidinterface.hostid属性的支持。

正则表达式

变更:
ZBXNEXT-6717 添加regexp.getregexp.createregexp.updateregexp.delete API接口。

角色

变更:
ZBXNEXT-3022 动作对象:添加对名称值为manage_services的支持。
ZBXNEXT-6787 角色规则对象:添加对新属性services.read.modeservices.read.listservices.read.tagservices.write.modeservices.write.listservices.write.tag的支持。

服务

变更:
ZBXNEXT-3022 service.createservice.update:添加对参数childrenparentstags的支持。
ZBXNEXT-3022 service.get:添加对参数evaltypetagsselectChildrenselectParentsselectTags的支持。
ZBXNEXT-6674 service.createservice.update:添加对参数problem_tags的支持。
ZBXNEXT-3022 service.get:添加对参数problem_tagswithout_problem_tagsselectProblemTags的支持。
ZBXNEXT-6800 服务对象:添加对属性weightpropagation_rulepropagation_value的支持。
ZBXNEXT-6800 服务对象:添加对status值为-1(OK)的支持。
ZBXNEXT-6800 service.createservice.update:添加对参数status_rules的支持。
ZBXNEXT-6800 service.get:添加对参数selectStatusRules的支持。
ZBXNEXT-6800 service.get:添加对参数 selectAlarmscount的支持。
ZBXNEXT-6787 服务对象:添加新属性readonly
ZBXNEXT-2406 service.get:添加对参数deep_parentidsselectProblemEvents的支持。

设置

变更:
ZBXNEXT-6715 settings.getsettings.update:添加对参数auditlog_enabled的支持。
ZBXNEXT-6945 settings.getsettings.update:添加对参数geomaps_tile_providergeomaps_tile_urlgeomaps_max_zoomgeomaps_attribution的支持。

服务等级协议

变化:
ZBXNEXT-6999 添加了新的 API sla 方法:sla.createsla.deletesla.getsla.getslisla.update

模板化仪表盘

变更:
ZBXNEXT-6966 添加对新控件类型item的支持。

用户

变更:
ZBXNEXT-4029 user.createuser.update:根据密码策略实现密码强度验证。
ZBXNEXT-6718 添加新方法user.unblock

用户组

变更:
ZBXNEXT-6866 usergroup.createusergroup.updateuserids参数现在已被弃用。改为使用users

监控项

变更:
ZBXNEXT-7049 item.getitem.createitem.update:为Prometheus 模式预处理步骤添加第三个参数。第二个参数现在将会决定一个聚合方法:valuelabelfunction。第三个参数现在将包含聚合方法label或聚合方法function的一个聚合函数的Prometheus输出。