GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Zenoss::Router::Template(3) User Contributed Perl Documentation Zenoss::Router::Template(3)

Zenoss::Router::Template - A JSON/ExtDirect interface to operations on templates

    use 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',
        }
    );

This 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.

The 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.

Get all templates.

NONE
N/A
N/A
List of objects representing the templates in tree hierarchy

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

Get a list of available device classes where new templates can be added.

NONE
N/A
N/A
data: ([dictionary]) List of objects containing an available device class UID and a human-readable label for that class

Add a template to a device class.

id (string) - Unique ID of the template to add

targetUid (string) - Unique ID of the device class to add template to

id

targetUid

N/A
nodeConfig: (dictionary) Object representing the added template

Delete a template.

uid (string) - Unique ID of the template to delete
uid
N/A
Success message

Get the thresholds for a template.

uid (string) - Unique ID of a template
uid
N/A
List of objects representing representing thresholds

Get a threshold's details.

uid (string) - Unique ID of a threshold
uid
N/A
record: (dictionary) Object representing the threshold

form: (dictionary) Object representing an ExtJS form for the threshold

Get a list of available data points for a template.

uid (string) - Unique ID of a template
uid
N/A
data: ([dictionary]) List of objects representing data points

Add a new data point to a data source.

dataSourceUid (string) - Unique ID of the data source to add data point to

name (string) - ID of the new data point

dataSourceUid

name

N/A
Success message

Add a new data source to a template.

templateUid (string) - Unique ID of the template to add data source to

name (string) - ID of the new data source

type (string) - Type of the new data source. From getDataSourceTypes()

templateUid

name

type

N/A
Success message

Get the data sources for a template.

id (string) - Unique ID of a template
id
N/A
List of objects representing representing data sources

Get a data source's details.

uid (string) - Unique ID of a data source
uid
N/A
record: (dictionary) Object representing the data source

form: (dictionary) Object representing an ExtJS form for the data source

Get a data point's details.

uid (string) - Unique ID of a data point
uid
N/A
record: (dictionary) Object representing the data point

form: (dictionary) Object representing an ExtJS form for the data point

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".

uid (string) - Unique identifier of an object
uid
N/A
data: (dictionary) The modified object

Add a threshold.

uid (string) - Unique identifier of template to add threshold to

thresholdType (string) - Type of the new threshold. From template_getThresholdTypes()

thresholdId (string) - ID of the new threshold

dataPoints ([string]) - List of data points to select for this threshold

uid

thresholdType

thresholdId

dataPoints

N/A
Success message

Remove a threshold.

uid (string) - Unique identifier of threshold to remove
uid
N/A
Success message

Get a list of available threshold types.

NONE
N/A
N/A
List of objects representing threshold types

Get a list of available data source types.

NONE
N/A
N/A
List of objects representing data source types

Get the graph definitions for a template.

uid (string) - Unique ID of a template
uid
N/A
List of objects representing representing graphs

Add a data point to a graph.

dataPointUid (string) - Unique ID of the data point to add to graph

graphUid (string) - Unique ID of the graph to add data point to

includeThresholds (boolean) - True to include related thresholds

dataPointUid

graphUid

{ includeThresholds => JSON::false }
Success message

Get a list of available device classes to copy a template to.

uid (string) - Unique ID of the template to copy

query (string) - Filter the returned targets' names based on this parameter

uid
{ query => '' }
data: ([dictionary]) List of objects containing an available device class UID and a human-readable label for that class

Copy a template to a device or device class.

uid (string) - Unique ID of the template to copy

targetUid (string) - Unique ID of the device or device class to bind to template

uid

targetUid

N/A
Success message

Add a new graph definition to a template.

templateUid (string) - Unique ID of the template to add graph definition to

graphDefinitionId (string) - ID of the new graph definition

templateUid

graphDefinitionId

N/A
Success message

Delete a data source.

uid (string) - Unique ID of the data source to delete
uid
N/A
Success message

Delete a data point.

uid (string) - Unique ID of the data point to delete
uid
N/A
Success message

Delete a graph definition.

uid (string) - Unique ID of the graph definition to delete
uid
N/A
Success message

Delete a graph point.

uid (string) - Unique ID of the graph point to delete
uid
N/A
Success message

Get a list of graph points for a graph definition.

uid (string) - Unique ID of a graph definition
uid
N/A
data: ([dictionary]) List of objects representing graph points

Get the properties of an object.

uid (string) - Unique identifier of an object
uid
N/A
data: (dictionary) Object properties

form: (dictionary) Object representing an ExtJS form for the object

Add a threshold to a graph definition.

graphUid (string) - Unique ID of the graph definition to add threshold to

thresholdUid (string) - Unique ID of the threshold to add

graphUid

thresholdUid

N/A
Success message

Add a custom graph point to a graph definition.

graphUid (string) - Unique ID of the graph definition to add graph point to

customId (string) - ID of the new custom graph point

customType (string) - Type of the new graph point. From getGraphInstructionTypes()

graphUid

customId

customType

N/A
Success message

Get a list of available instruction types for graph points.

NONE
N/A
N/A
data: ([dictionary]) List of objects representing instruction types

Sets the sequence of graph points in a graph definition.

uids ([string]) - List of graph point UID's in desired order
uids
N/A
Success message

Get a graph definition.

uid (string) - Unique ID of the graph definition to retrieve
uid
N/A
data: (dictionary) Object representing a graph definition

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".

uid (string) - Unique identifier of an object
uid
N/A
data: (dictionary) The modified object

Sets the sequence of graph definitions.

uids ([string]) - List of graph definition UID's in desired order
uids
N/A
Success message

  • Zenoss
  • Zenoss::Response

Patrick Baker <patricksbaker@gmail.com>

Copyright (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>.

2011-08-14 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.