2022 Zabbix中国峰会
2022 Zabbix中国峰会

> 值映射对象

以下对象与VALUEAPI直接相关。

> Value map object

The following objects are directly related to the valuemap API.

值映射

值映射对象具有以下属性。

属性 类 说明
valuemapid string (readonly) 值映射的ID
name
(required)
string 值映射的名称。
mappings
(required)
array 值映射当前映射值。值映射对象object#value_mappings细节描述如下.

Value map

The value map object has the following properties.

Property Type Description
valuemapid string (readonly) ID of the value map.
name
(required)
string Name of the value map.
mappings
(required)
array Value mappings for current value map. The mapping object is described in detail below.

价值映射

值映射对象定义值映射的映射值。 它具有以下属性。

属性 类 说明
value
(required)
string 原值。
newvalue
(required)
string 原始值映射到的值。

Value mappings

The value mappings object defines value mappings of the value map. It has the following properties.

Property Type Description
value
(required)
string Original value.
newvalue
(required)
string Value to which the original value is mapped to.