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

Class RRDThreshold

source code

                                                   object --+        
                                                            |        
                                    ZenModelBase.ZenModelBase --+    
                                                                |    
Products.ZenRelations.RelationshipManager.RelationshipManager --+    
                                                                |    
                                      ExtensionClass.Base --+   |    
                                                            |   |    
                                       OFS.History.Historical --+    
                                                                |    
                                                   object --+   |    
                                                            |   |    
                                          ZenPacker.ZenPacker --+    
                                                                |    
                                            ZenModelRM.ZenModelRM --+
                                                                    |
                                                       object --+   |
                                                                |   |
                                          ZenPackable.ZenPackable --+
                                                                    |
                                                                   RRDThreshold

Instance Methods [hide private]
list
>>> dmd.Devices.Server.breadCrumbs()
[('/zport/dmd/Devices', 'Devices'), 
    ('/zport/dmd/Devices/Server', 'Server')]
breadCrumbs(self, terminator='dmd')
Return the breadcrumb links for this object add ActionRules list.
source code
 
getConfig(self, context)
Return the config used by the collector to process simple min/max thresholds.
source code
 
getMinval(self, context)
Build the min value for this threshold.
source code
 
getMaxval(self, context)
Build the max value for this threshold.
source code
 
getGraphMinval(self, context) source code
 
getGraphMaxval(self, context) source code
 
getGraphValue(self, context, getfunc)
when graphing use this so that rpn conversions are accounted for
source code
 
getMinLabel(self, context)
build a label for a min threshold
source code
 
getMaxLabel(self, context)
build a label for a max threshold
source code
 
setPower(self, number) source code
 
getSeverityString(self) source code

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, primarySortKey, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIconPath, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

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

Class Variables [hide private]
  meta_type = 'RRDThreshold'
  security = ClassSecurityInfo()
  dsnames = []
  minval = ""
  maxval = ""
  eventClass = Perf_Snmp
  severity = 3
  escalateCount = 0
  enabled = True
  _properties = {'id': 'dsnames', 'type': 'lines', 'mode': 'w'},...
  factory_type_information = {'immediate_view': 'editRRDThreshol...

Inherited from ZenModelRM.ZenModelRM: default_catalog, isInTree

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Inherited from ZenPackable.ZenPackable (private): _relations

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

breadCrumbs(self, terminator='dmd')

source code 
Return the breadcrumb links for this object add ActionRules list. [('url','id'), ...]
Returns: list
>>> dmd.Devices.Server.breadCrumbs()
[('/zport/dmd/Devices', 'Devices'), 
    ('/zport/dmd/Devices/Server', 'Server')]
List of tuples to create a bread crumbs
Overrides: ZenModelBase.ZenModelBase.breadCrumbs

getConfig(self, context)

source code 
Return the config used by the collector to process simple min/max thresholds. (id, minval, maxval, severity, escalateCount)

Class Variable Details [hide private]

_properties

Value:
{'id': 'dsnames', 'type': 'lines', 'mode': 'w'}, {'id': 'minval', 'typ\
e': 'string', 'mode': 'w'}, {'id': 'maxval', 'type': 'string', 'mode':\
 'w'}, {'id': 'eventClass', 'type': 'string', 'mode': 'w'}, {'id': 'se\
verity', 'type': 'int', 'mode': 'w'}, {'id': 'escalateCount', 'type': \
'int', 'mode': 'w'}, {'id': 'enabled', 'type': 'boolean', 'mode': 'w'}\
,

factory_type_information

Value:
{'immediate_view': 'editRRDThreshold', 'actions':({'id': 'edit', 'name\
': 'RRD Threshold', 'action': 'editRRDThreshold', 'permissions':(Permi\
ssions.view,)},)},