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

Class ZenStatus

source code

           object --+        
                    |        
persistent.Persistent --+    
                        |    
           object --+   |    
                    |   |    
  ExtensionClass.Base --+    
                        |    
   Persistence.Persistent --+
                            |
                           ZenStatus
Known Subclasses:
ZenAvailability

Persistent ExtensionClass

Instance Methods [hide private]
 
__init__(self, status=-1)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getStatus(self)
get objects current status this is the number of failure increments that have been called
source code
 
getStatusString(self)
get status as a string will convert as per converstions
source code
 
setStatus(self, status) source code
 
incr(self)
increment the failure status
source code
 
reset(self)
reset status when failure is over
source code
 
color(self)
get the color to display in the gui
source code

Inherited from Persistence.Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version

Inherited from persistent.Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__

Inherited from persistent.Persistent (private): _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr

Inherited from ExtensionClass.Base: __getnewargs__

Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]
  conversions = {-2: 'No DNS', -1: 'Not Tested', 0: 'Up'}
Properties [hide private]

Inherited from persistent.Persistent (private): _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Inherited from object: __class__

Method Details [hide private]

__init__(self, status=-1)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)