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

# Class RRDView

source code

    object --+
             |
            RRDView

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", format="%.2lf", extraRpn="") Return a single rrd value from its file using function. | source code
getRRDDataPoints(self) | source code
getRRDDataPoint(self, dpName) | source code
fetchRRDValues(self, dpnames, cf, resolution, start, end="") | source code
fetchRRDValue(self, dpname, cf, resolution, start, end="") | source code
getRRDValues(self, dsnames, start=None, end=None, function="LAST", format="%.2lf", extraRpn="") 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
getRRDContextData(self, context) | 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.