如何使用 item.create 创建计算项?

How to create a calculated item using item.create?

我熟悉使用 GUI 创建计算项,但现在我想使用 API 来完成。项目对象有一个 "formula" 字段,但其类型如文档中所述为 int/float。那么计算项需要的公式放在哪里呢?enter image description here

根据 Zabbix manual,这是 params 字段。