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

Class TemperatureSensor

source code

                     object --+            
                              |            
              Lockable.Lockable --+        
                                  |        
    DeviceComponent.DeviceComponent --+    
                                      |    
ManagedEntity.ManagedEntity --+       |    
                              |       |    
            MEProduct.MEProduct --+   |    
                                  |   |    
                  Hardware.Hardware --+    
                                      |    
                HWComponent.HWComponent --+
                                          |
                                         TemperatureSensor

TemperatureSensor object

Instance Methods [hide private]
 
temperatureCelsius(self, default=None)
Return the current temperature in degrees celsius
source code
 
temperature(self, default=None)
Return the current temperature in degrees celsius
source code
 
temperatureFahrenheit(self, default=None)
Return the current temperature in degrees fahrenheit
source code
 
temperatureCelsiusString(self)
Return the current temperature in degrees celsius as a string
source code
 
temperatureString(self)
Return the current temperature in degrees celsius as a string
source code
 
temperatureFahrenheitString(self)
Return the current temperature in degrees fahrenheit 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 = 'TemperatureSensor'
  portal_type = 'TemperatureSensor'
  state = "unknown"
  _properties = HWComponent._properties+({'id': 'state', 'type':...
  _relations = HWComponent._relations+(("hw", ToOne(ToManyCont, ...
  factory_type_information = {'id': 'TemperatureSensor', 'meta_t...

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': 'state', 'type': 'string', 'mode': 'w'\
},)

_relations

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

factory_type_information

Value:
{'id': 'TemperatureSensor', 'meta_type': 'TemperatureSensor', 'descrip\
tion': """Arbitrary device grouping class""", 'icon': 'TemperatureSens\
or_icon.gif', 'product': 'ZenModel', 'factory': 'manage_addTemperature\
Sensor', 'immediate_view': 'viewTemperatureSensor', 'actions':({'id': \
'status', 'name': 'Status', 'action': 'viewTemperatureSensor', 'permis\
sions':('View',)}, {'id': 'perfConf', 'name': 'Template', 'action': 'o\
bjTemplates', 'permissions':("Change Device",)},)},