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

# Class MinMaxThresholdInstance

source code

         twisted.spread.pb.Copyable --+
                                      |
       twisted.spread.pb.RemoteCopy --+
                                      |
    ThresholdInstance.ThresholdInstance --+
                                          |
                                         MinMaxThresholdInstance

Instance Methods | [hide private]
__init__(self, id, context, dpNames, minval, maxval, eventClass, severity, escalateCount) | source code
name(self) return the name of this threshold (from the ThresholdClass) | source code
context(self) Return an identifying context (device, or device and component) | source code
dataPoints(self) Returns the names of the datapoints used to compute the threshold | source code
rrdInfoCache(self, dp) | source code
countKey(self, dp) | source code
getCount(self, dp) | source code
incrementCount(self, dp) | source code
resetCount(self, dp) | source code
fetchLastValue(self, dp, cycleTime) Fetch the most recent value for a data point from the RRD file. | source code
check(self, dataPoints) The given datapoints have been updated, so re-evaluate. | source code
checkRaw(self, dataPoint, timeOf, value) A new datapoint has been collected, use the given _raw_ value to re-evalue the threshold. | source code
checkRange(self, dp, value) Check the value for min/max thresholds | source code
list of dictionaries |
processEvent(self, evt) When a threshold condition is violated, pre-process it for (possibly) nicer formatting or more complicated logic. | source code
list of dictionaries |
processClearEvent(self, evt) When a threshold condition is restored, pre-process it for (possibly) nicer formatting or more complicated logic. | source code
raiseRPNExc(self) Raise an RPN exception, taking care to log all details. | source code
getGraphElements(self, template, context, gopts, namespace, color, legend, relatedGps) Produce a visual indication on the graph of where the threshold applies. | source code
getNames(self, relatedGps) | source code
setPower(self, number) | source code
Inherited from `ThresholdInstance.ThresholdInstance`: `key`

Class Variables | [hide private]
| count = `{}`

Method Details | [hide private]

### name(self) | source code
return the name of this threshold (from the ThresholdClass) Overrides: ThresholdInstance.ThresholdInstance.name

### context(self) | source code
Return an identifying context (device, or device and component) Overrides: ThresholdInstance.ThresholdInstance.context

### dataPoints(self) | source code
Returns the names of the datapoints used to compute the threshold Overrides: ThresholdInstance.ThresholdInstance.dataPoints

### check(self, dataPoints) | source code
The given datapoints have been updated, so re-evaluate. returns events or an empty sequence Overrides: ThresholdInstance.ThresholdInstance.check

### checkRaw(self, dataPoint, timeOf, value) | source code
A new datapoint has been collected, use the given _raw_ value to re-evalue the threshold. Overrides: ThresholdInstance.ThresholdInstance.checkRaw

### processEvent(self, evt) | source code
When a threshold condition is violated, pre-process it for (possibly) nicer formatting or more complicated logic. Parameters: `evt` (dictionary) Returns: list of dictionaries

### processClearEvent(self, evt) | source code
When a threshold condition is restored, pre-process it for (possibly) nicer formatting or more complicated logic. Parameters: `evt` (dictionary) Returns: list of dictionaries

### getGraphElements(self, template, context, gopts, namespace, color, legend, relatedGps) | source code
Produce a visual indication on the graph of where the threshold applies. Overrides: ThresholdInstance.ThresholdInstance.getGraphElements