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 --+
                                          |
     ThresholdInstance.RRDThresholdInstance --+
                                              |
                                             MinMaxThresholdInstance

Instance Methods | [hide private]
__init__(self, id, context, dpNames, minval, maxval, eventClass, severity, escalateCount) | source code
countKey(self, dp) | source code
getCount(self, dp) | source code
incrementCount(self, dp) | source code
resetCount(self, dp) | source code
checkRange(self, dp, value) Check the value for min/max thresholds | source code
_create_event_dict(self, current, summary, severity, how=None) | 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
_checkImpl(self, dataPoint, value) | source code
Inherited from `ThresholdInstance.RRDThresholdInstance`: `check`, `checkRaw`, `context`, `dataPoints`, `name` Inherited from `ThresholdInstance.RRDThresholdInstance` (private): `_fetchLastValue`, `_getRRDType` Inherited from `ThresholdInstance.ThresholdInstance`: `key`

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

Method Details | [hide private]

### __init__(self, id, context, dpNames, minval, maxval, eventClass, severity, escalateCount) (Constructor) | source code
Overrides: ThresholdInstance.RRDThresholdInstance.__init__

### 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

### _checkImpl(self, dataPoint, value) | source code
Overrides: ThresholdInstance.RRDThresholdInstance._checkImpl