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

Class PowerSupply

source code

                                                               object --+            
                                                                        |            
                                                        Lockable.Lockable --+        
                                                                            |        
                                              DeviceComponent.DeviceComponent --+    
                                                                                |    
                                                   object --+                   |    
                                                            |                   |    
                                    ZenModelBase.ZenModelBase --+               |    
                                                                |               |    
Products.ZenRelations.RelationshipManager.RelationshipManager --+               |    
                                                                |               |    
                                      ExtensionClass.Base --+   |               |    
                                                            |   |               |    
                                       OFS.History.Historical --+               |    
                                                                |               |    
                                                   object --+   |               |    
                                                            |   |               |    
                                          ZenPacker.ZenPacker --+               |    
                                                                |               |    
                                            ZenModelRM.ZenModelRM --+           |    
                                                                    |           |    
                                  DeviceResultInt.DeviceResultInt --+           |    
                                                                    |           |    
                                                       object --+   |           |    
                                                                |   |           |    
                                              EventView.EventView --+           |    
                                                                    |           |    
                                                       object --+   |           |    
                                                                |   |           |    
                                                  RRDView.RRDView --+           |    
                                                                    |           |    
                                          ManagedEntity.ManagedEntity --+       |    
                                                                        |       |    
                                                      MEProduct.MEProduct --+   |    
                                                                            |   |    
                                                            Hardware.Hardware --+    
                                                                                |    
                                                          HWComponent.HWComponent --+
                                                                                    |
                                                                                   PowerSupply

PowerSupply object

Instance Methods [hide private]
 
wattsString(self)
Return a string representation of the watts
source code
 
millivolts(self, default=None)
Return the current millivolts for the power supply
source code
 
millivoltsString(self)
Return the current millivolts as a string
source code
 
viewName(self)
Return the name of this component.
source code
 
name(self)
Return the name of this component.
source code

Inherited from HWComponent.HWComponent: device

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getClassObject, getCollectors, getInstDescription, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, hostname, manage_afterAdd, manage_afterClone, manage_beforeDelete, monitored, setAqProperty

Inherited from Lockable.Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag

Inherited from Hardware.Hardware: getDeviceLink, setProduct, setProductKey

Inherited from MEProduct.MEProduct: getDescription, getManufacturer, getManufacturerLink, getManufacturerName, getModelName, getProductContext, getProductKey, getProductLink, getProductName, setDescription

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

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, breadCrumbs, 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 DeviceResultInt.DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatusCssClass, getStatusImgSrc, manage_ackBatchEvents, manage_ackEvents, manage_addLogMessage, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_deleteHeartbeat, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents

Inherited from RRDView.RRDView: cacheRRDValue, fetchRRDValue, fetchRRDValues, fullRRDPath, getDefaultGraphDefs, getGraphDef, getGraphDefUrl, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDNames, getRRDPaths, getRRDSum, getRRDTemplate, getRRDTemplateByName, getRRDTemplateName, getRRDTemplates, getRRDValue, getRRDValues, getThresholdInstances, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore

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

Class Variables [hide private]
  meta_type = 'PowerSupply'
  portal_type = 'PowerSupply'
  watts = None
  type = "unknown"
  state = "unknown"
  _properties = HWComponent._properties+({'id': 'watts', 'type':...
  _relations = HWComponent._relations+(("hw", ToOne(ToManyCont, ...
  factory_type_information = {'id': 'PowerSupply', 'meta_type': ...

Inherited from DeviceComponent.DeviceComponent: __pychecker__, collectors, default_catalog, event_key, perfmonInstance, security

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Inherited from Hardware.Hardware: serialNumber, tag

Inherited from ManagedEntity.ManagedEntity: monitor, snmpindex

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]

viewName(self)

source code 
Return the name of this component. Default is id.
Overrides: ZenModelRM.ZenModelRM.viewName

name(self)

source code 
Return the name of this component. Default is id.
Overrides: DeviceComponent.DeviceComponent.name
(inherited documentation)

Class Variable Details [hide private]

_properties

Value:
HWComponent._properties+({'id': 'watts', 'type': 'int', 'mode': 'w'}, \
{'id': 'type', 'type': 'string', 'mode': 'w'}, {'id': 'state', 'type':\
 'string', 'mode': 'w'},)

_relations

Value:
HWComponent._relations+(("hw", ToOne(ToManyCont, "Products.ZenModel.De\
viceHW", "powersupplies")),)

factory_type_information

Value:
{'id': 'PowerSupply', 'meta_type': 'PowerSupply', 'description': """Ar\
bitrary device grouping class""", 'icon': 'PowerSupply_icon.gif', 'pro\
duct': 'ZenModel', 'factory': 'manage_addPowerSupply', 'immediate_view\
': 'viewPowerSupply', 'actions':({'id': 'status', 'name': 'Status', 'a\
ction': 'viewPowerSupply', 'permissions':('View',)}, {'id': 'perfConf'\
, 'name': 'Template', 'action': 'objTemplates', 'permissions':("Change\
 Device",)}, {'id': 'viewHistory', 'name': 'Modifications', 'action': \
'viewHistory', 'permissions':(ZEN_VIEW_MODIFICATIONS,)},)},