Zabbix Documentation 4.4

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:api:reference:item:get

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:item:get [2019/07/19 08:11]
martins-v formatting change
manual:api:reference:item:get [2019/08/14 06:44] (current)
miks.kronkalns Renamed "Check for error in regular expression" to "Check for error using regular expression"
Line 39: Line 39:
 | selectDiscoveryRule | query | Return a ''​[[:​manual/​api/​reference/​drule/​object|discoveryRule]]''​ property with the LLD rule that created the item. | | selectDiscoveryRule | query | Return a ''​[[:​manual/​api/​reference/​drule/​object|discoveryRule]]''​ property with the LLD rule that created the item. |
 | selectItemDiscovery | query | Return an ''​itemDiscovery''​ property with the item discovery object. The item discovery object links the item to an item prototype from which it was created. \\ \\  It has the following properties: \\ ''​itemdiscoveryid''​ - ''​(string)''​ ID of the item discovery; \\ ''​itemid''​ - ''​(string)''​ ID of the discovered item; \\ ''​parent_itemid''​ - ''​(string)''​ ID of the item prototype from which the item has been created; \\ ''​key_''​ - ''​(string)''​ key of the item prototype; \\ ''​lastcheck''​ - ''​(timestamp)''​ time when the item was last discovered; \\ ''​ts_delete''​ - ''​(timestamp)''​ time when an item that is no longer discovered will be deleted. | | selectItemDiscovery | query | Return an ''​itemDiscovery''​ property with the item discovery object. The item discovery object links the item to an item prototype from which it was created. \\ \\  It has the following properties: \\ ''​itemdiscoveryid''​ - ''​(string)''​ ID of the item discovery; \\ ''​itemid''​ - ''​(string)''​ ID of the discovered item; \\ ''​parent_itemid''​ - ''​(string)''​ ID of the item prototype from which the item has been created; \\ ''​key_''​ - ''​(string)''​ key of the item prototype; \\ ''​lastcheck''​ - ''​(timestamp)''​ time when the item was last discovered; \\ ''​ts_delete''​ - ''​(timestamp)''​ time when an item that is no longer discovered will be deleted. |
-| selectPreprocessing | query | Return a ''​preprocessing''​ property with item preprocessing options.\\ \\ It has the following properties: \\ ''​type''​ - ''​(string)''​ The preprocessing option type: \\ 1 - Custom multiplier; \\ 2 - Right trim; \\ 3 - Left trim; \\ 4 - Trim; \\ 5 - Regular expression matching; \\ 6 - Boolean to decimal; \\ 7 - Octal to decimal; \\ 8 - Hexadecimal to decimal; \\ 9 - Simple change; \\ 10 - Change per second; \\ 11 - XML XPath; \\ 12 - JSONPath; \\ 13 - In range; \\ 14 - Matches regular expression; \\ 15 - Does not match regular expression; \\ 16 - Check for error in JSON; \\ 17 - Check for error in XML; \\ 18 - Check for error in regular expression; \\ 19 - Discard unchanged; \\ 20 - Discard unchanged with heartbeat; \\ 21 - JavaScript; \\ 22 - Prometheus pattern; \\ 23 - Prometheus to JSON. \\ \\ ''​params''​ - ''​(string)''​ Additional parameters used by preprocessing option. Multiple parameters are separated by LF (\n)character. \\ ''​error_handler''​ - ''​(string)''​ Action type used in case of preprocessing step failure: \\ 0 - Error message is set by Zabbix server; \\ 1 - Discard value; \\ 2 - Set custom value; \\ 3 - Set custom error message. \\ \\ ''​error_handler_params''​ - ''​(string)''​ Error handler parameters. |+| selectPreprocessing | query | Return a ''​preprocessing''​ property with item preprocessing options.\\ \\ It has the following properties: \\ ''​type''​ - ''​(string)''​ The preprocessing option type: \\ 1 - Custom multiplier; \\ 2 - Right trim; \\ 3 - Left trim; \\ 4 - Trim; \\ 5 - Regular expression matching; \\ 6 - Boolean to decimal; \\ 7 - Octal to decimal; \\ 8 - Hexadecimal to decimal; \\ 9 - Simple change; \\ 10 - Change per second; \\ 11 - XML XPath; \\ 12 - JSONPath; \\ 13 - In range; \\ 14 - Matches regular expression; \\ 15 - Does not match regular expression; \\ 16 - Check for error in JSON; \\ 17 - Check for error in XML; \\ 18 - Check for error using regular expression; \\ 19 - Discard unchanged; \\ 20 - Discard unchanged with heartbeat; \\ 21 - JavaScript; \\ 22 - Prometheus pattern; \\ 23 - Prometheus to JSON. \\ \\ ''​params''​ - ''​(string)''​ Additional parameters used by preprocessing option. Multiple parameters are separated by LF (\n)character. \\ ''​error_handler''​ - ''​(string)''​ Action type used in case of preprocessing step failure: \\ 0 - Error message is set by Zabbix server; \\ 1 - Discard value; \\ 2 - Set custom value; \\ 3 - Set custom error message. \\ \\ ''​error_handler_params''​ - ''​(string)''​ Error handler parameters. |
 ^ ||| ^ |||
 |filter ​ | object |Return only those results that exactly match the given filter.\\ \\ Accepts an array, where the keys are property names, and the values are either a single value or an array of values to match against. \\ \\ Supports additional filters: \\ ''​host''​ - technical name of the host that the item belongs to. | |filter ​ | object |Return only those results that exactly match the given filter.\\ \\ Accepts an array, where the keys are property names, and the values are either a single value or an array of values to match against. \\ \\ Supports additional filters: \\ ''​host''​ - technical name of the host that the item belongs to. |