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

Class RRDDataSource

source code

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

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
 
getDescription(self) source code
 
getRRDDataPoints(self) source code
 
useZenCommand(self) source code
 
manage_addRRDDataPoint(self, id, REQUEST=None)
make a RRDDataPoint
source code
 
manage_deleteRRDDataPoints(self, ids=(), REQUEST=None)
Delete RRDDataPoints from this RRDDataSource
source code
 
manage_addDataPointsToGraphs(self, ids=(), graphIds=(), REQUEST=None)
Create GraphPoints for all datapoints given datapoints (ids) in each of the graphDefs (graphIds.) If a graphpoint already exists for a datapoint in a graphDef then don't create a 2nd one.
source code
 
getCommand(self, context, cmd=None)
Return localized command target.
source code
 
getComponent(self, context, component=None)
Return localized component.
source code
 
checkCommandPrefix(self, context, cmd) source code
 
getSeverityString(self) source code
 
zmanage_editProperties(self, REQUEST=None, ignored=None)
Edit a ZenModel object and return its proper page template
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_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 = 'RRDDataSource'
  paramtypes = 'integer', 'string', 'float'
  sourcetypes = ()
  sourcetype = None
  enabled = True
  component = ''
  eventClass = ''
  eventKey = ''
  severity = 3
  commandTemplate = ""
  cycletime = 300
  _properties = {'id': 'sourcetype', 'type': 'selection', 'selec...
  _relations = ZenPackable._relations+(("rrdTemplate", ToOne(ToM...
  factory_type_information = {'immediate_view': 'editRRDDataSour...
  security = ClassSecurityInfo()

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

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

zmanage_editProperties(self, REQUEST=None, ignored=None)

source code 
Edit a ZenModel object and return its proper page template
Overrides: ZenModelRM.ZenModelRM.zmanage_editProperties
(inherited documentation)

Class Variable Details [hide private]

_properties

Value:
{'id': 'sourcetype', 'type': 'selection', 'select_variable': 'sourcety\
pes', 'mode': 'w'}, {'id': 'enabled', 'type': 'boolean', 'mode': 'w'},\
 {'id': 'component', 'type': 'string', 'mode': 'w'}, {'id': 'eventClas\
s', 'type': 'string', 'mode': 'w'}, {'id': 'eventKey', 'type': 'string\
', 'mode': 'w'}, {'id': 'severity', 'type': 'int', 'mode': 'w'}, {'id'\
: 'commandTemplate', 'type': 'string', 'mode': 'w'}, {'id': 'cycletime\
', 'type': 'int', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("rrdTemplate", ToOne(ToManyCont, "Products.Ze\
nModel.RRDTemplate", "datasources")), ("datapoints", ToManyCont(ToOne,\
 "Products.ZenModel.RRDDataPoint", "datasource")),)

factory_type_information

Value:
{'immediate_view': 'editRRDDataSource', 'actions':({'id': 'edit', 'nam\
e': 'Data Source', 'action': 'editRRDDataSource', 'permissions':(Permi\
ssions.view,)},)},