manual:api:reference:trigger:object

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:api:reference:trigger:object [2019/07/31 07:46]
Andrejs.Griscenko [ZBXNEXT-4942] added "opdata" property
manual:api:reference:trigger:object [2021/04/01 10:26] (current)
vmaksimovs [ZBXNEXT-6141] fixed event name description
Line 7: Line 7:
 The trigger object has the following properties. The trigger object has the following properties.
  
-^  Property ​ ^  Type  ^  Description ​ ^+^  Property ​ ^  ​[[:​manual/​api/​reference_commentary#​data_types|Type]]  ​^ ​ Description ​ ^
 | triggerid ​ | string ​ | //​(readonly)//​ ID of the trigger. ​ | | triggerid ​ | string ​ | //​(readonly)//​ ID of the trigger. ​ |
 | **description** \\ (required) | string | Name of the trigger. | | **description** \\ (required) | string | Name of the trigger. |
 | **expression** \\ (required) | string | Reduced trigger expression. | | **expression** \\ (required) | string | Reduced trigger expression. |
-| opdata ​  | string | Operational data. \\ \\ Supports user macros, {HOST.CONN<​1-9>​},​ {HOST.DNS<​1-9>​},​ {HOST.HOST<​1-9>​},​ {HOST.IP<​1-9>​},​ {HOST.NAME<​1-9>​},​ {HOST.PORT<​1-9>​},​ {ITEM.LASTVALUE<​1-9>​},​ {ITEM.VALUE<​1-9>​}. |+| event_name | string | Event name generated by the trigger. | 
 +| opdata ​  | string | Operational data. |
 | comments | string | Additional description of the trigger. | | comments | string | Additional description of the trigger. |
 | error | string | //​(readonly)//​ Error text if there have been any problems when updating the state of the trigger. | | error | string | //​(readonly)//​ Error text if there have been any problems when updating the state of the trigger. |
Line 33: Line 34:
 The trigger tag object has the following properties. The trigger tag object has the following properties.
  
-^  Property ​            ^ Type    ^ Description ​       ^+^  Property ​            ​^ ​[[:​manual/​api/​reference_commentary#​data_types|Type]]    ^ Description ​       ^
 | **tag** \\ (required) | string ​ | Trigger tag name.  | | **tag** \\ (required) | string ​ | Trigger tag name.  |
 | value                 | string ​ | Trigger tag value. | | value                 | string ​ | Trigger tag value. |