Zabbix Documentation 5.2

3.04.0| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4

Site Tools

manual:api:reference:event:object

Differences

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

 manual:api:reference:event:object [2016/07/06 14:13]martins-v removing value_changed property that exists no more manual:api:reference:event:object [2020/02/24 10:19]marinagen more precise wording Both sides previous revision Previous revision 2020/08/04 14:33 martins-v internal link to data type commentary (ZBX-17160)2020/08/04 14:32 martins-v internal link to data type commentary (ZBX-17160)2020/02/24 10:19 marinagen more precise wording2020/02/21 10:45 marinagen c_eventid and correlationid descriptions corrected2020/01/23 09:34 marinagen grammar fix2019/10/07 06:35 external edit2019/10/04 11:19 gcalenko [ZBXNEXT-5386,ZBXNEXT-5387] Webhooks for actions2019/10/04 09:54 gcalenko [ZBXNEXT-5386,ZBXNEXT-5387] Webhooks for actions2019/07/31 07:32 Andrejs.Griscenko [ZBXNEXT-4942] added "opdata" property2019/04/02 06:04 external edit2018/11/06 09:14 Andrejs.Griscenko [ZBXNEXT-4731] Added new section "Event tag"; removed flag "readonly" from property "suppressed"2018/10/01 09:42 external edit2018/08/08 13:55 iivs fixed wording (ZBXNEXT-4572)2018/07/31 09:05 Andrejs.Griscenko 2018/07/16 12:13 Andrejs.Griscenko [ZBXNEXT-413] added new property "suppressed"2018/05/22 09:19 vmurzins 2017/12/15 09:19 miks.kronkalns [Event] 2017/10/06 14:12 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 Next revision Previous revision 2020/08/04 14:33 martins-v internal link to data type commentary (ZBX-17160)2020/08/04 14:32 martins-v internal link to data type commentary (ZBX-17160)2020/02/24 10:19 marinagen more precise wording2020/02/21 10:45 marinagen c_eventid and correlationid descriptions corrected2020/01/23 09:34 marinagen grammar fix2019/10/07 06:35 external edit2019/10/04 11:19 gcalenko [ZBXNEXT-5386,ZBXNEXT-5387] Webhooks for actions2019/10/04 09:54 gcalenko [ZBXNEXT-5386,ZBXNEXT-5387] Webhooks for actions2019/07/31 07:32 Andrejs.Griscenko [ZBXNEXT-4942] added "opdata" property2019/04/02 06:04 external edit2018/11/06 09:14 Andrejs.Griscenko [ZBXNEXT-4731] Added new section "Event tag"; removed flag "readonly" from property "suppressed"2018/10/01 09:42 external edit2018/08/08 13:55 iivs fixed wording (ZBXNEXT-4572)2018/07/31 09:05 Andrejs.Griscenko 2018/07/16 12:13 Andrejs.Griscenko [ZBXNEXT-413] added new property "suppressed"2018/05/22 09:19 vmurzins 2017/12/15 09:19 miks.kronkalns [Event] 2017/10/06 14:12 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 Next revision Both sides next revision Line 11: Line 11: ^  Property ​ ^  Type  ^  Description ​ ^ ^  Property ​ ^  Type  ^  Description ​ ^ | eventid ​ | string ​ | ID of the event. ​ | | 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 autoregistration;​ \\ 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 autoregistration 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. | | acknowledged | integer | Whether the event has been acknowledged. | | clock | timestamp | Time when the event was created. | | clock | timestamp | Time when the event was created. | | ns | integer | Nanoseconds when the event was created. | | ns | integer | Nanoseconds when the event was created. | - | 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. | + | name | string | Resolved event name. | - | objectid | string | ID of the related object. | + | 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 autoregistration events. | - | 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. | + | severity| integer | Event current severity. \\ \\ Possible values: \\ 0 - not classified; \\ 1 - information; \\ 2 - warning; \\ 3 - average; \\ 4 - high; \\ 5 - disaster. | - | 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 | ID of the event that was used to override (close) current event under global correlation rule. See ''​correlationid''​ to identify exact correlation rule. \\ This parameter is only used when the event is closed by global correlation rule.  | + | correlationid | string | ID of the correlation rule that generated closing of the problem.\\ ​This parameter is only used when the event is closed by global correlation rule.  | + | userid | string | User ID if the event was manually closed. | + | suppressed | integer | Whether the event is suppressed. \\ \\ Possible values: \\ 0 - event is in normal state; \\ 1 - event is suppressed. | + | opdata | string | Operational data with expanded macros. | + | urls | array of [[manual:​api:​reference:​problem:​object#​Media type URLs|Media type URLs]] | Active media types URLs. | + + ==== Event tag ==== + + The event tag object has the following properties. + + ^ Property ^ Type   ^ Description ​     ^ + | tag      | string | Event tag name.  | + | value    | string | Event tag value. | + + ==== Media type URLs ==== + + Object with media type url have the following properties. + + ^ Property ^ Type ^ Description ^ + | name     | string | Media type defined URL name.  | + | url      | string | Media type defined URL value. | + + Results will contain entries only for active ​media types with enabled event menu entry. Macro used in properties will be expanded, but if one of properties contain non expanded macro both properties will be excluded from results. Supported macros described on [[manual:​appendix:​macros:​supported_by_location|page]].