Package ZenModel :: Module RRDView :: Class RRDView
[hide private]
[frames] | no frames]

Class RRDView

source code

object --+
         |
        RRDView
Known Subclasses:
ManagedEntity.ManagedEntity

Mixin to provide hooks to RRD management functions

Instance Methods [hide private]
 
getGraphDefUrl(self, graph, drange=None, template=None)
resolve template and graph names to objects and pass to graph performance
source code
 
cacheRRDValue(self, dsname, default='Unknown')
read an RRDValue with and cache it
source code
 
getRRDValue(self, dsname, start=None, end=None, function='LAST')
Return a single rrd value from its file using function.
source code
 
getRRDDataPoints(self) source code
 
getRRDDataPoint(self, dpName) source code
 
getRRDValues(self, dsnames, start=None, end=None, function='LAST')
Return a dict of key value pairs where dsnames are the keys.
source code
 
getRRDSum(self, points, start=None, end=None, function='LAST')
Return a some of listed datapoints.
source code
 
getDefaultGraphDefs(self, drange=None)
get the default graph list for this object
source code
 
getGraphDef(self, graphId)
Fetch a graph by id.
source code
 
getRRDTemplateName(self)
Return the target type name of this component.
source code
 
getRRDFileName(self, dsname)
Look up an rrd file based on its data point name
source code
 
getRRDNames(self) source code
 
getRRDPaths(self) source code
 
snmpIgnore(self)
Should this component be monitored for performance using snmp.
source code
 
getRRDTemplates(self) source code
 
getRRDTemplate(self) source code
 
getRRDTemplateByName(self, name)
Return the template of the given name.
source code
 
getThresholds(self, templ)
Return a dictionary where keys are dsnames and values are thresholds.
source code
 
rrdPath(self) source code
 
fullRRDPath(self) source code
 
getSnmpOidTargets(self)
Return a list of (name, oid, path, type, createCmd, thresholds) that define monitorable
source code
 
getDataSourceCommands(self, dsName=None)
Return list of command definitions.
source code
 
getThresholdInstances(self, dsType) source code
 
makeLocalRRDTemplate(self, templateName=None, REQUEST=None)
Make a local copy of our RRDTemplate if one doesn't exist.
source code
 
removeLocalRRDTemplate(self, templateName=None, REQUEST=None)
Make a local delete of our RRDTemplate if one doesn't exist.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getGraphDef(self, graphId)

source code 
Fetch a graph by id. if not found return None

getRRDTemplateName(self)

source code 
Return the target type name of this component. By default meta_type. Override to create custom type selection.