Zabbix Documentation 4.2

3.04.04.24.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.4Guidelines

User Tools

Site Tools


manual:api:reference:event:get

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:event:get [2018/07/31 09:18]
Andrejs.Griscenko
manual:api:reference:event:get [2019/01/28 14:51] (current)
sasha <code js> => <code java>
Line 7: Line 7:
 The method allows to retrieve events according to the given parameters. The method allows to retrieve events according to the given parameters.
  
 +<note important>​This method may return events of a deleted entity if these events have not been removed by the housekeeper yet.</​note>​
 ==== Parameters ==== ==== Parameters ====
  
Line 26: Line 27:
 | severities | integer/​array | Return only events with given event severities. Applies only if object is trigger. | | severities | integer/​array | Return only events with given event severities. Applies only if object is trigger. |
 | evaltype ​  | integer ​      | Rules for tag searching. \\ \\ Possible values: \\ 0 - (default) And/Or; \\ 2 - Or.        | | evaltype ​  | integer ​      | Rules for tag searching. \\ \\ Possible values: \\ 0 - (default) And/Or; \\ 2 - Or.        |
-| tags       ​| ​object ​| Return only events with given tags. Exact match by tag and case-insensitive search by value and operator. \\ Format: ''<​nowiki>​[{"​tag":​ "<​tag>",​ "​value":​ "<​value>",​ "​operator":​ "<​operator>"​},​ ...]</​nowiki>''​.\\ An empty array returns all events. \\ \\ Possible operator types: \\ 0 - (default) Like; \\ 1 - Equal.|+| tags       ​| ​array of objects ​| Return only events with given tags. Exact match by tag and case-insensitive search by value and operator. \\ Format: ''<​nowiki>​[{"​tag":​ "<​tag>",​ "​value":​ "<​value>",​ "​operator":​ "<​operator>"​},​ ...]</​nowiki>''​.\\ An empty array returns all events. \\ \\ Possible operator types: \\ 0 - (default) Like; \\ 1 - Equal.|
 | eventid_from | string | Return only events with IDs greater or equal to the given ID. | | eventid_from | string | Return only events with IDs greater or equal to the given ID. |
 | eventid_till | string | Return only events with IDs less or equal to the given ID. | | eventid_till | string | Return only events with IDs less or equal to the given ID. |
 | time_from | timestamp | Return only events that have been created after or at the given time. | | time_from | timestamp | Return only events that have been created after or at the given time. |
 | time_till | timestamp | Return only events that have been created before or at the given time. | | time_till | timestamp | Return only events that have been created before or at the given time. |
 +| problem_time_from | timestamp | Returns only events that were in the problem state starting with ''​problem_time_from''​. Applies only if the source is trigger event and object is trigger. Mandatory if ''​problem_time_till''​ is specified.|
 +| problem_time_till | timestamp | Returns only events that were in the problem state until ''​problem_time_till''​. Applies only if the source is trigger event and object is trigger. Mandatory if ''​problem_time_from''​ is specified.|
 | value | integer/​array | Return only events with the given values. | | value | integer/​array | Return only events with the given values. |
 ^ ||| ^ |||
Line 66: Line 69:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 85: Line 88:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 167: Line 170:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 184: Line 187:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​