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

Class RRDTemplate

source code

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

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
 
manage_afterAdd(self, item, container) source code
 
manage_afterClone(self, item) source code
 
manage_beforeDelete(self, item, container) source code
 
isEditable(self, context)
Is this template editable in context.
source code
 
getGraphDefs(self)
Return an ordered list of the graph definitions
source code
 
getRRDPath(self)
Return the path on which this template is defined.
source code
 
getGraphableThresholds(self)
Return a list of names of graphable thresholds
source code
 
getRRDDataPointNames(self)
Return the list of all datapoint names.
source code
 
getRRDDataSources(self, dsType=None)
Return a list of all datapoints on this template.
source code
 
getRRDDataPoints(self)
Return a list of all datapoints on this template.
source code
 
getRRDDataPoint(self, name)
Return a datapoint based on its name.
source code
 
manage_addRRDDataSource(self, id, dsOption, REQUEST=None)
Add an RRDDataSource to this DeviceClass.
source code
 
getTargetPythonClass(self)
Returns the python class object that this template can be bound to.
source code
 
manage_deleteRRDDataSources(self, ids=(), REQUEST=None)
Delete RRDDataSources from this DeviceClass
source code
 
manage_addRRDThreshold(self, id, thresholdClassName, REQUEST=None)
Add an RRDThreshold to this DeviceClass.
source code
 
manage_deleteRRDThresholds(self, ids=(), REQUEST=None)
Delete RRDThresholds from this DeviceClass
source code
 
manage_addGraphDefinition(self, new_id, REQUEST=None)
Add a GraphDefinition to our RRDTemplate.
source code
 
manage_deleteGraphDefinitions(self, ids=(), REQUEST=None)
Remove GraphDefinitions from this RRDTemplate.
source code
 
manage_resequenceGraphDefs(self, seqmap=(), origseq=(), REQUEST=None)
Reorder the sequence of the GraphDefinitions.
source code
 
manage_addDataSourcesToGraphs(self, ids=(), graphIds=(), REQUEST=None)
Create GraphPoints for all datapoints in the given datasources (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
 
manage_addThresholdsToGraphs(self, ids=(), graphIds=(), REQUEST=None)
Create GraphPoints for all given thresholds that are not already graphed.
source code
 
getDataSourceClasses(self) source code
 
getDataSourceOptions(self)
Returns a list of the available datasource options as a list of (display name, dsOption)
source code
 
getDataSourceInstance(self, id, dsOption)
Given one of the dsOptions returned by getDataSourceOptions) return an instance of the that RRDDataSource subclass.
source code
 
getThresholdClasses(self) source code
 
getThresholdClass(self, id, thresholdClassName)
Given one of the dsOptions returned by getDataSourceOptions) return an instance of the that RRDDataSource subclass.
source code
 
getEventClassNames(self)
Get a list of all event class names within the permission scope.
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 = 'RRDTemplate'
  default_catalog = 'searchRRDTemplates'
  security = ClassSecurityInfo()
  description = ""
  targetPythonClass = "Products.ZenModel.Device"
  _properties = {'id': 'description', 'type': 'text', 'mode': 'w...
  _relations = ZenPackable._relations+(("deviceClass", ToOne(ToM...
  factory_type_information = {'immediate_view': 'viewRRDTemplate...

Inherited from ZenModelRM.ZenModelRM: 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

manage_addThresholdsToGraphs(self, ids=(), graphIds=(), REQUEST=None)

source code 
Create GraphPoints for all given thresholds that are not already graphed. in the given datasources (ids)

Class Variable Details [hide private]

_properties

Value:
{'id': 'description', 'type': 'text', 'mode': 'w'}, {'id': 'targetPyth\
onClass', 'type': 'string', 'mode': 'w'},

_relations

Value:
ZenPackable._relations+(("deviceClass", ToOne(ToManyCont, "Products.Ze\
nModel.TemplateContainer", "rrdTemplates")), ("datasources", ToManyCon\
t(ToOne, "Products.ZenModel.RRDDataSource", "rrdTemplate")), ("graphs"\
, ToManyCont(ToOne, "Products.ZenModel.RRDGraph", "rrdTemplate")), ("t\
hresholds", ToManyCont(ToOne, "Products.ZenModel.ThresholdClass", "rrd\
Template")), ("graphDefs", ToManyCont(ToOne, "Products.ZenModel.GraphD\
efinition", "rrdTemplate")),)

factory_type_information

Value:
{'immediate_view': 'viewRRDTemplate', 'actions':({'id': 'overview', 'n\
ame': 'Performance Template', 'action': 'viewRRDTemplate', 'permission\
s':(Permissions.view,)},)},