![]() |
![]()
| ![]() |
![]()
NAMEZenoss::Router::Template - A JSON/ExtDirect interface to operations on templates SYNOPSISuse Zenoss; my $api = Zenoss->connect( { username => 'zenoss username', password => 'zenoss password', url => 'http://zenossinstance:8080', } ); # Replace SOMEMETHOD with one of the available methods provided by this module my $response = $api->template_SOMEMETHOD( { parameter1 => 'value', parameter2 => 'value', } ); DESCRIPTIONThis module is NOT instantiated directly. To call methods from this module create an instance of Zenoss. This document serves as a resource of available Zenoss API calls to Zenoss. METHODSThe following is a list of available methods available for interaction with the Zenoss API. Please take note of the argument requirements, defaults and return content. The documentation for this module was mostly taken from the Zenoss JSON API docs. Keep in mind that their (Zenoss Monitoring System) programming is based around python, so descriptions such as dictionaries will be represented as hashes in Perl. $obj->template_getTemplates()Get all templates.
$obj->template_getDeviceClassTemplates()Get all templates by device class. This will return a tree where device classes are nodes, and templates are leaves. THIS IS CURRENTLY BROKEN AT THE ZENOSS API LEVEL $obj->template_getAddTemplateTargets()Get a list of available device classes where new templates can be added.
$obj->template_addTemplate()Add a template to a device class.
$obj->template_deleteTemplate()Delete a template.
$obj->template_getThresholds()Get the thresholds for a template.
$obj->template_getThresholdDetails()Get a threshold's details.
$obj->template_getDataPoints()Get a list of available data points for a template.
$obj->template_addDataPoint()Add a new data point to a data source.
$obj->template_addDataSource()Add a new data source to a template.
$obj->template_getDataSources()Get the data sources for a template.
$obj->template_getDataSourceDetails()Get a data source's details.
$obj->template_getDataPointDetails()Get a data point's details.
$obj->template_setInfo()Set attributes on an object. This method accepts any keyword argument for the property that you wish to set. The only required property is "uid".
$obj->template_addThreshold()Add a threshold.
$obj->template_removeThreshold()Remove a threshold.
$obj->template_getThresholdTypes()Get a list of available threshold types.
$obj->template_getDataSourceTypes()Get a list of available data source types.
$obj->template_getGraphs()Get the graph definitions for a template.
$obj->template_addDataPointToGraph()Add a data point to a graph.
$obj->template_getCopyTargets()Get a list of available device classes to copy a template to.
$obj->template_copyTemplate()Copy a template to a device or device class.
$obj->template_addGraphDefinition()Add a new graph definition to a template.
$obj->template_deleteDataSource()Delete a data source.
$obj->template_deleteDataPoint()Delete a data point.
$obj->template_deleteGraphDefinition()Delete a graph definition.
$obj->template_deleteGraphPoint()Delete a graph point.
$obj->template_getGraphPoints()Get a list of graph points for a graph definition.
$obj->template_getInfo()Get the properties of an object.
$obj->template_addThresholdToGraph()Add a threshold to a graph definition.
$obj->template_addCustomToGraph()Add a custom graph point to a graph definition.
$obj->template_getGraphInstructionTypes()Get a list of available instruction types for graph points.
$obj->template_setGraphPointSequence()Sets the sequence of graph points in a graph definition.
$obj->template_getGraphDefinition()Get a graph definition.
$obj->template_setGraphDefinition()Set attributes on an graph definition. This method accepts any keyword argument for the property that you wish to set. Properties are enumerated via getGraphDefinition(). The only required property is "uid".
$obj->template_setGraphDefinitionSequence()Sets the sequence of graph definitions.
SEE ALSO
AUTHORPatrick Baker <patricksbaker@gmail.com> COPYRIGHT AND LICENSECopyright (C) 2010 by Patrick Baker <patricksbaker@gmail.com> This module is free software: you can redistribute it and/or modify it under the terms of the Artistic License 2.0. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You can obtain the Artistic License 2.0 by either viewing the LICENSE file provided with this distribution or by navigating to <http://opensource.org/licenses/artistic-license-2.0.php>.
|