# TODO write the rest
DESCRIPTIONHandles CRUD for Zabbix map objects.
This is a subclass of "Zabbix::API::CRUDE".
- Specific mutator for the "selements" array. Setting the selements through this actually only has an effect on host type elements (that is, both elements that have the correct "elementtype" and elements that have a "host" element). All other types are ignored.
This method handles extraneous "host => Zabbix::API::Host" attributes in
the selements array, transforming them into "elementid" and "elementtype"
attributes (and setting the "label" attribute to the hostname if it isn't set
already), and pushing the hosts to the server if they don't exist already.
Overriden from "Zabbix::API::CRUDE".
** WARNING ** Due to the way maps API calls are implemented in Zabbix, updating a map will delete it and create it anew. The "sysmapid" will change if you push an existing map.
EXPORTSThe various integers representing map element types are implemented as constants:
MAP_ELEMENT_TYPE_HOST MAP_ELEMENT_TYPE_MAP MAP_ELEMENT_TYPE_TRIGGER MAP_ELEMENT_TYPE_HOSTGROUP MAP_ELEMENT_TYPE_IMAGE
Nothing is exported by default; you can use the tag ":map_element_types" (or import by name).
AUTHORFabrice Gabolde <[email protected]>
COPYRIGHT AND LICENSECopyright (C) 2011 SFR
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.