# Zabbix Documentation 3.4

3.04.04.4| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2

### Site Tools

manual:api:reference:event:object

# Differences

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

 manual:api:reference:event:object [2018/11/06 09:14] manual:api:reference:event:object [2018/11/06 09:46] (current)Andrejs.Griscenko [ZBXNEXT-4731] Added new section "Event tag" Both sides previous revision Previous revision 2018/11/06 09:46 Andrejs.Griscenko [ZBXNEXT-4731] Added new section "Event tag"2016/09/28 07:26 external edit2016/08/29 08:18 iivs added User ID (ZBXNEXT-3201)2016/07/18 09:11 iivs updated event object properties2016/07/06 14:13 martins-v removing value_changed property that exists no more2016/02/16 15:25 external edit2014/09/25 14:44 sasha Page moved from 2.4:manual:api:reference:event:object to manual:api:reference:event:object 2018/11/06 09:46 Andrejs.Griscenko [ZBXNEXT-4731] Added new section "Event tag"2016/09/28 07:26 external edit2016/08/29 08:18 iivs added User ID (ZBXNEXT-3201)2016/07/18 09:11 iivs updated event object properties2016/07/06 14:13 martins-v removing value_changed property that exists no more2016/02/16 15:25 external edit2014/09/25 14:44 sasha Page moved from 2.4:manual:api:reference:event:object to manual:api:reference:event:object Line 1: Line 1: + ===== > Event object ===== + The following objects are directly related to the ''​event''​ API. + + ==== Event ==== + + <​note>​Events are created by the Zabbix server and cannot be modified via the API.​ + + The event object has the following properties. + + ^  Property ​ ^  Type  ^  Description ​ ^ + | eventid ​ | string ​ | ID of the event. ​ | + | source | integer | Type of the event. \\ \\ Possible values: \\ 0 - event created by a trigger; \\ 1 - event created by a discovery rule; \\ 2 - event created by active agent auto-registration;​ \\ 3 - internal event. | + | object | integer | Type of object that is related to the event. \\ \\ Possible values for trigger events: \\ 0 - trigger. \\ \\ Possible values for discovery events: \\ 1 - discovered host; \\ 2 - discovered service. \\ \\ Possible values for auto-registration events: \\ 3 - auto-registered host. \\ \\ Possible values for internal events: \\ 0 - trigger; \\ 4 - item; \\ 5 - LLD rule. | + | objectid | string | ID of the related object. | + | acknowledged | integer | Whether the event has been acknowledged. | + | clock | timestamp | Time when the event was created. | + | ns | integer | Nanoseconds when the event was created. | + | value | integer | State of the related object. \\ \\ Possible values for trigger events: \\ 0 - OK; \\ 1 - problem. \\ \\ Possible values for discovery events: \\ 0 - host or service up; \\ 1 - host or service down; \\ 2 - host or service discovered; \\ 3 - host or service lost. \\ \\ Possible values for internal events: \\ 0 - "​normal"​ state; \\ 1 - "​unknown"​ or "not supported"​ state. \\ \\ This parameter is not used for active agent auto-registration events. | + | r_eventid | string | Recovery event ID  | + | c_eventid | string | Problem event ID who generated OK event | + | correlationid | string | Correlation ID | + | userid | string | User ID if the event was manually closed. | + + ==== Event tag ==== + + The event tag object has the following properties. + + ^ Property ^ Type   ^ Description ​     ^ + | tag      | string | Event tag name.  | + | value    | string | Event tag value. |