附录 2. 从 7.4 到 8.0 的变更

重大变更

history

ZBXNEXT-10069 为 history.get 方法新增了参数 maxValueSize。 如果您正在请求具有二进制值(history=5)的监控项数据,请将 maxValueSize 设置为 null;否则,history.get 将返回被截断为 64KiB 的监控项值。

主机

ZBXNEXT-9185 为 主机 对象的 monitored_by 属性添加了行为描述。 ZBXNEXT-10387 host.massupdate:已移除该方法。 请改用 host.update。

主机群组

ZBXNEXT-10387 hostgroup.massupdate:已移除该方法。 请改用 hostgroup.update、hostgroup.massadd 或 hostgroup.massremove。

hostinterface

ZBXNEXT-10814 hostinterface.create、hostinterface.update、hostinterface.delete、hostinterface.massadd 和 hostinterface.massremove 方法已从 hostinterface API 中移除。 请改用 主机 对象的方法。

角色

ZBXNEXT-9185 为角色 action 对象的 name 属性新增了 select_server_for_monitoring 值。

模板

ZBXNEXT-10387 template.massupdate:已移除该方法。 请改用 template.update、template.massadd 或 template_massremove。

模板组

ZBXNEXT-10387 templategroup.massupdate:已移除该方法。 请改用 templategroup.update、templategroup.massadd 或 templategroup.massremove。

用户组

ZBXNEXT-9185 向 usergroup.create 和 usergroup.update 方法添加了新参数 proxies 和 proxy_groups。
向 usergroup.get 方法添加了新参数 proxyids、proxy_groupids、selectProxies 和 selectProxyGroups。
向用户组对象添加了新属性 proxy_mode 和 proxy_group_mode。

其他更改和错误修复

action

如果事件源为发现/自动注册,则在 conditiontype action 过滤参数中新增值 29(proxy 组)。

apmlog

ZBXNEXT-10083 新增了 APM 日志 API。

apmmetric

ZBXNEXT-10083 新增了 APM metric API。

apmspan

ZBXNEXT-10083 新增了 APM span API。

apmtrace

ZBXNEXT-10083 新增 APM trace API。

配置

ZBXNEXT-5419 为 configuration.importcompare 方法新增了 returnMissingObjects 参数。
ZBXNEXT-5419 为 rules 对象(configuration.importcompare 方法)新增了 dashboards 参数。
ZBXNEXT-5419 为 configuration.import 方法新增了 returnMissingObjects 参数。
ZBXNEXT-5419 为 rules 对象(configuration.import 方法)新增了 dashboards 参数。 ZBXNEXT-10390 为 configuration.export 方法的 options 对象新增了 global_regexes 参数。 ZBXNEXT-10390 为 configuration.importcompare 和 configuration.import 方法的 rules 对象新增了 global_regexes 参数。

连接器

ZBXNEXT-10069 已向 connector 对象新增 item_value_type 值(64 - JSON)。

仪表板

ZBXNEXT-4769 为 graph 小组件新增了仪表板小组件字段 show_hostnames。
ZBXNEXT-9546 为 svggraph 和 piechart 小组件新增了仪表板小组件字段 ds.0.item_tags_evaltype、ds.0.item_tags.0.tag、ds.0.item_tags.0.operator 和 ds.0.item_tags.0.value。
ZBXNEXT-10158 为 topitems 小组件新增了仪表板小组件字段 columns.0.aggregate_columns、columns.0.combined_column_name 和 columns.0.column_aggregate_function。
ZBXNEXT-9424、ZBXNEXT-4769 新增了仪表板小组件类型 scatterplot。
ZBXNEXT-8160 为 geomap 小组件新增了仪表板小组件字段 clustering_mode 和 clustering_zoom_level。
ZBXNEXT-943 为 graph 小组件新增了仪表板小组件字段 ds.0.invert_values。
ZBXNEXT-10657 为 honeycomb 小组件的 Color 和 Background color 参数新增了“dark-blue-theme”主题的默认值。

drule

ZBXNEXT-9185 更新了发现规则对象的 timeout 属性行为。

设备

ZBXNEXT-10357 新增了 Device API,包含 device.get 和 device.offboard 方法。

事件

ZBXNEXT-1150 在 event.get 方法的 selectAcknowledges 参数中新增了一个 maintenanceid 属性。

历史记录

ZBXNEXT-10069 已向 history.get 方法添加新的 history 值(6 - JSON)。
ZBXNEXT-10069 已添加新的 JSON history 对象。

主机原型

ZBXNEXT-9546 向 hostprototype.get 方法新增了参数 selectInheritedTags。

httptest

ZBXNEXT-9546 已向 httptest.get 方法添加了新参数 inheritedTags 和 selectInheritedTags。

监控项

ZBXNEXT-10249 向 监控项 对象添加了新的 type 值(24 - Telemetry query)。
ZBXNEXT-10249 向 监控项 对象添加了新的属性 query、time_shift、lookback_limit 和 granularity。
ZBXNEXT-9185 更新了 监控项 对象的 timeout 属性行为。
ZBXNEXT-10069 向 监控项 对象添加了新的 value_type 值(6 - JSON)。
ZBXNEXT-9546 向 item.get 方法添加了新的参数 inheritedTags 和 selectInheritedTags。

监控项原型

ZBXNEXT-10249 向监控项原型对象添加了新的 type 值(24 - Telemetry query)。
ZBXNEXT-10249 向监控项原型对象添加了新的属性 query、time_shift、lookback_limit 和 granularity。
ZBXNEXT-10069 向itemprototype对象添加了新的 value_type 值(6 - JSON)。
ZBXNEXT-9546 向itemprototype.get方法添加了新的参数 selectInheritedTags。

维护

ZBXNEXT-8339 为 maintenance.create 和 maintenance.update 方法添加了 triggers 和 event_names 属性。problem_tags 属性新增了“ 不等于”和“不包含”运算符。

ZBXNEXT-8339 为 maintenance.get 方法添加了 triggerids、selectTriggers 和 selectEventNames 参数。

mediatype

ZBXNEXT-10357 为 media type 对象新增了 type 值(5 - Push)。

问题

ZBXNEXT-1150 在 problem.get 方法的 selectAcknowledges 参数中新增了一个属性 maintenanceid。

proxy

ZBXNEXT-10084 在 proxy.get 方法中新增参数 selectApm。
ZBXNEXT-10084 在 proxy.create 和 proxy.update 方法中新增参数 apm。
ZBXNEXT-10084 新增 应用性能监控 (APM) 对象。
ZBXNEXT-10249 在 proxy 对象中新增属性 timeout_telemetry_query。

regexp

ZBXNEXT-10390 为 regular expression 对象新增了一个 description 属性。

角色

ZBXNEXT-10469 更改了角色规则对象中 api.access 属性的默认值。 默认值现在为 0(禁用)。

角色

ZBXNEXT-10357 在角色规则对象中新增了 devices.access、devices.actions 和 devices.actions.default_access 属性。
ZBXNEXT-10357 在UI 元素对象中新增了 name 值(administration.linked_devices - 用户 > 设备)。
ZBXNEXT-10357 为 role.get 方法新增了 current 参数。

serverinfo

ZBXNEXT-10357 新增了服务器信息 API,其方法为 serverinfo.get。

设置

ZBXNEXT-10249 向 settings 对象添加了新属性 timeout_telemetry_query。
ZBXNEXT-10680 向 settings 对象添加了新属性 apm_global_db。
ZBXNEXT-10357 向 settings 对象添加了新属性 device_link_timeout。
ZBXNEXT-10657 向 settings 对象的 default_theme 属性添加了 dark-blue-theme 值。

模板

ZBXNEXT-9546 向 template.get 方法新增了参数 inheritedTags 和 selectInheritedTags。

templatedashboard

ZBXNEXT-9424 新增了模板仪表板小部件类型 scatterplot。

触发器

ZBXNEXT-9546 为 trigger.get 方法新增了参数 inheritedTags 和 selectInheritedTags。 ZBXNEXT-8339 为 trigger.get 方法新增了属性 maintenanceids。

triggerprototype

ZBXNEXT-9546 向 triggerprototype.get 方法新增了参数 selectInheritedTags。

triggertag

ZBXNEXT-5467 已向触发器标签对象添加了 automatic 属性。

用户

ZBXNEXT-10657 在 user 对象的 theme 属性中新增了 dark-blue-theme 值。 ZBXNEXT-8339 在 user.create、user.get 和 user.update 方法中新增了 default_maintenance_period 属性。

用户目录

ZBXNEXT-9834 向用户目录对象添加了 idp_certificate、sp_private_key、sp_certificate、idp_certificate_hash、sp_private_key_hash 和 sp_certificate_hash 属性。
DEV-5022 更改了用户目录对象中 sign_assertions、sign_authn_requests、sign_messages、sign_logout_requests 和 sign_logout_responses 属性的默认值。 默认值现在为 1(启用)。