NAME
Zabbix::API::Screen -- Zabbix screen objects
SYNOPSIS
use Zabbix::API::Screen;# TODO write the rest
DESCRIPTION
Handles CRUD for Zabbix screen objects.
This is a subclass of "Zabbix::API::CRUDE".
METHODS
- items([ITEMS])
-
Mutator for the screenitems array. Setting the screenitems through this means you won't have to set the
"hsize"and"vsize"data attributes accordingly, as that will be done for you. It also checks that the"x"and"y"attributes have been specified for all the screenitems and throws an exception otherwise.
- push()
-
This method handles extraneous
"graph => Zabbix::API::Graph"attributes in the screenitems array, transforming them into"resourceid"and"resourcetype"attributes, and pushing the graphs to the server if they don't exist already.This means you can put
"Zabbix::API::Graph"objects in your data and the module will Do The Right Thing (assuming you agree with my definition of the Right Thing). Graphs that have been created this way will not be removed from the server if they are removed from the screen, however.Since graphs do the same thing with their
"Item"graphitems, you can create a bunch of items, put them in a bunch of graphs, put those in a screen, push the screen, sit back and enjoy the fireworks.Overriden from
"Zabbix::API::CRUDE".
EXPORTS
A bunch of constants:
SCREEN_RESOURCE_GRAPHSCREEN_RESOURCE_SIMPLE_GRAPHSCREEN_RESOURCE_MAPSCREEN_RESOURCE_PLAIN_TEXTSCREEN_RESOURCE_HOSTS_INFOSCREEN_RESOURCE_TRIGGERS_INFOSCREEN_RESOURCE_SERVER_INFOSCREEN_RESOURCE_CLOCKSCREEN_RESOURCE_SCREENSCREEN_RESOURCE_TRIGGERS_OVERVIEWSCREEN_RESOURCE_DATA_OVERVIEWSCREEN_RESOURCE_URLSCREEN_RESOURCE_ACTIONSSCREEN_RESOURCE_EVENTSSCREEN_RESOURCE_HOSTGROUP_TRIGGERSSCREEN_RESOURCE_SYSTEM_STATUSSCREEN_RESOURCE_HOST_TRIGGERS
These are used to specify the type of resource to use in a screenitem. They are not exported by default, only on request; or you could import the ":resources" tag.
SEE ALSO
Zabbix::API::CRUDE.
AUTHOR
Fabrice Gabolde <[email protected]>
COPYRIGHT AND LICENSE
Copyright (C) 2011 SFR
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.