manual:api:reference:problem: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:problem:get [2020/11/03 16:12]
Andrejs.Griscenko [ZBXNEXT-6148] added a note about who can call this method
manual:api:reference:problem:get [2021/01/27 21:18] (current)
Line 32: Line 32:
 | severities | integer/​array | Return only problems with given event severities. Applies only if object is trigger. | | severities | integer/​array | Return only problems 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       | array of objects | Return only problems 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 problems. \\ \\ Possible operator types: \\ 0 - (default) Like; \\ 1 - Equal. |+| tags       | array of objects | Return only problems 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 problems. \\ \\ Possible operator types: \\ 0 - (default) Like; \\ 1 - Equal; \\ 2 - Not like; \\ 3 - Not equal \\ 4 - Exists; \\ 5 - Not exists. |
 | recent | boolean | ''​true''​ - return PROBLEM and recently RESOLVED problems (depends on Display OK triggers for N seconds) \\ Default: ''​false''​ - UNRESOLVED problems only | | recent | boolean | ''​true''​ - return PROBLEM and recently RESOLVED problems (depends on Display OK triggers for N seconds) \\ Default: ''​false''​ - UNRESOLVED problems only |
 | eventid_from | string | Return only problems with IDs greater or equal to the given ID. | | eventid_from | string | Return only problems with IDs greater or equal to the given ID. |