> Map object
The following objects are directly related to the map API.
Map
The map object has the following properties.
| Property | Type | Description |
|---|---|---|
| sysmapid | string | (readonly) ID of the map. |
| height (required) |
integer | Height of the map in pixels. |
| name (required) |
string | Name of the map. |
| width (required) |
integer | Width of the map in pixels. |
| backgrounid | string | ID of the image used as the background for the map. |
| expand_macros | integer | Whether to expand macros in labels when configuring the map.
Possible values: |
| expandproblem | integer | Whether the the problem trigger will be displayed for elements with a single problem.
Possible values: |
| grid_align | integer | Whether to enable grid aligning.
Possible values: |
| grid_show | integer | Whether to show the grid on the map.
Possible values: |
| grid_size | integer | Size of the map grid in pixels.
Supported values: 20, 40, 50, 75 and 100. Default: 50. |
| highlight | integer | Whether icon highlighting is enabled.
Possible values: |
| iconmapid | string | ID of the icon map used on the map. |
| label_format | integer | Whether to enable advanced labels.
Possible values: |
| label_location | integer | Location of the map element label.
Possible values: |
| label_string_host | string | Custom label for host elements.
Required for maps with custom host label type. |
| label_string_hostgroup | string | Custom label for host group elements.
Required for maps with custom host group label type. |
| label_string_image | string | Custom label for image elements.
Required for maps with custom image label type. |
| label_string_map | string | Custom label for map elements.
Required for maps with custom map label type. |
| label_string_trigger | string | Custom label for trigger elements.
Required for maps with custom trigger label type. |
| label_type | integer | Map element label type.
Possible values: |
| label_type_host | integer | Label type for host elements.
Possible values: |
| label_type_hostgroup | integer | Label type for host group elements.
Possible values: |
| label_type_image | integer | Label type for host group elements.
Possible values: |
| label_type_map | integer | Label type for map elements.
Possible values: |
| label_type_trigger | integer | Label type for trigger elements.
Possible values: |
| markelements | integer | Whether to highlight map elements that have recently changed their status.
Possible values: |
| severity_min | integer | Minimum severity of the triggers that will be displayed on the map.
Refer to the trigger "severity" property for a list of supported trigger severities. |
| show_unack | integer | How problems should be displayed.
Possible values: |
Map element
The map element object defines an object displayed on a map. It has the following properties.
| Property | Type | Description |
|---|---|---|
| selementid | string | (readonly) ID of the map element. |
| elementid (required) |
string | ID of the object that the map element represents.
Required for host, host group, trigger and map type elements. |
| elementtype (required) |
integer | Type of map element.
Possible values: |
| iconid_off (required) |
string | ID of the image used to display the element in default state. |
| areatype | integer | How separate host group hosts should be displayed.
Possible values: |
| application | string | Name of the application to display problems from. Used only for host and host group map elements. |
| elementsubtype | integer | How a host group element should be displayed on a map.
Possible values: |
| height | integer | Height of the fixed size host group element in pixels.
Default: 200. |
| iconid_disabled | string | ID of the image used to display disabled map elements. Unused for image elements. |
| iconid_maintenance | string | ID of the image used to display map elements in maintenance. Unused for image elements. |
| iconid_on | string | ID of the image used to display map elements with problems. Unused for image elements. |
| label | string | Label of the element. |
| label_location | integer | Location of the map element label.
Possible values: |
| sysmapid | string | (readonly) ID of the map that the element belongs to. |
| urls | array | Map element URLs.
The map element URL object is described in detail below. |
| use_iconmap | integer | Whether icon mapping must be used for host elements.
Possible values: |
| viewtype | integer | Host group element placing algorithm.
Possible values: |
| width | integer | Width of the fixed size host group element in pixels.
Default: 200. |
| x | integer | X-coordinates of the element in pixels.
Default: 0. |
| y | integer | Y-coordinates of the element in pixels.
Default: 0. |
Map element URL
The map element URL object defines a clickable link that will be available for a specific map element. It has the following properties:
| Property | Type | Description |
|---|---|---|
| sysmapelementurlid | string | (readonly) ID of the map element URL. |
| name (required) |
string | Link caption. |
| url (required) |
string | Link URL. |
| selementid | string | ID of the map element that the URL belongs to. |
Map link
The map link object defines a link between two map elements. It has the following properties.
| Property | Type | Description |
|---|---|---|
| linkid | string | (readonly) ID of the map link. |
| selementid1 (required) |
string | ID of the first map element linked on one end. |
| selementid2 (required) |
string | ID of the first map element linked on the other end. |
| color | string | Line color as a hexadecimal color code.
Default: |
| drawtype | integer | Link line draw style.
Possible values: |
| label | string | Link label. |
| linktriggers | array | Map link triggers to use as link status indicators.
The map link trigger object is described in detail below. |
| sysmapid | string | ID of the map the link belongs to. |
Map link trigger
The map link trigger object defines a map link status indicator based on the state of a trigger. It has the following properties:
| Property | Type | Description |
|---|---|---|
| linktriggerid | string | (readonly) ID of the map link trigger. |
| triggerid (reqiuired) |
string | ID of the trigger used as a link indicator. |
| color | string | Indicator color as a hexadecimal color code.
Default: |
| drawtype | integer | Indicator draw style.
Possible values: |
| linkid | string | ID of the map link that the link trigger belongs to. |
Map URL
The map URL object defines a clickable link that will be available for all elements of a specific type on the map. It has the following properties:
| Property | Type | Description |
|---|---|---|
| sysmapurlid | string | (readonly) ID of the map URL. |
| name (required) |
string | Link caption. |
| url (required) |
string | Link URL. |
| elementtype | integer | Type of map element for which the URL will be available.
Refer to the map element "type" property for a list of supported types. Default: 0. |
| sysmapid | string | ID of the map that the URL belongs to. |
Data source: Zabbix