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

Class PowerSupply

source code

                     object --+            
                              |            
              Lockable.Lockable --+        
                                  |        
    DeviceComponent.DeviceComponent --+    
                                      |    
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, getIconPath, getInstDescription, getManageIp, getNagiosTemplate, getParentDeviceName, getParentDeviceTitle, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, getSubComponentsNoIndexGen, hostname, monitored, setAqProperty

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

Inherited from Hardware.Hardware: setProduct, setProductKey

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

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 MEProduct.MEProduct (private): _manufacturer, _prodKey

Method Details [hide private]

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",)},)},