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 [2016/08/12 10:55]
gunarspujats [Trigger] Added correlation_mod, correlation_tag and manual_close.
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. |
-| comments | string | Additional ​comments to the trigger. |+| event_name | string | Event name generated by the trigger. | 
 +| opdata ​  | string | Operational data. | 
 +| 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. |
 | flags | integer | //​(readonly)//​ Origin of the trigger. \\ \\ Possible values are: \\ 0 - //​(default)//​ a plain trigger; \\ 4 - a discovered trigger. | | flags | integer | //​(readonly)//​ Origin of the trigger. \\ \\ Possible values are: \\ 0 - //​(default)//​ a plain trigger; \\ 4 - a discovered trigger. |
Line 28: Line 30:
 | manual_close | integer | Allow manual close. \\ \\ Possible values are: \\ 0 - //​(default)//​ No; \\ 1 - Yes.| | manual_close | integer | Allow manual close. \\ \\ Possible values are: \\ 0 - //​(default)//​ No; \\ 1 - Yes.|
  
 +==== Trigger tag ====
 +
 +The trigger tag object has the following properties.
 +
 +^  Property ​            ^ [[:​manual/​api/​reference_commentary#​data_types|Type]] ​   ^ Description ​       ^
 +| **tag** \\ (required) | string ​ | Trigger tag name.  |
 +| value                 | string ​ | Trigger tag value. |