Zabbix Documentation 3.4

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:reference:usermacro:object

Differences

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

Link to this comparison view

Next revision
Previous revision
zh:manual:api:reference:usermacro:object [2017/02/18 19:46]
127.0.0.1 external edit
zh:manual:api:reference:usermacro:object [2017/08/21 09:20] (current)
Sandara
Line 1: Line 1:
-===== > User macro object ​=====+===== > 用户宏对象 ​=====
  
-The following objects are directly related to the ''​usermacro'' ​API.+以下对象与“usermacroAPI直接相关。
  
-==== Global macro ====+==== 全局宏 ​====
  
-The global macro object has the following properties.+全局宏对象具有以下属性。
  
-^  ​Property ​ ​^  ​Type  ​^  ​Description ​ ^ +^  ​属性 ​ ​^  ​类型 ​ ​^  ​说明 ​ ^ 
-| globalmacroid ​ | string ​ | //​(readonly)//​ ID of the global macro. ​ | +| globalmacroid ​ | string ​ | //​(readonly)// ​全局宏的ID。  | 
-| **macro** \\ (required) | string | Macro string. ​+| **macro** \\ (required) | string | 宏字符串。
-| **value** \\ (required) | string | Value of the macro. ​|+| **value** \\ (required) | string | 宏的价值。 ​|
  
-==== Host macro ====+==== 主机宏 ​====
  
-The host macro object defines a macro available on a host or template. It has the following properties.+主机宏对象定义主机或模板上可用的宏。 它具有以下属性。
  
-^  ​Property ​ ​^  ​Type  ​^  ​Description ​ ^ +^  ​属性 ​ ​^  ​类型 ​ ​^  ​说明 ​ ^ 
-| hostmacroid ​ | string ​ | //​(readonly)//​ ID of the host macro. ​ | +| hostmacroid ​ | string ​ | //​(readonly)// ​主机宏的ID。  | 
-| **hostid** \\ (required) | string | ID of the host that the macro belongs to. +| **hostid** \\ (required) | string | 宏所属主机的ID。 
-| **macro** \\ (required) | string | Macro string. ​+| **macro** \\ (required) | string | 宏字符串。 ​
-| **value** \\ (required) | string | Value of the macro. ​|+| **value** \\ (required) | string | 宏的值。 ​|