The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.monitoring.MonitorAction Class Reference
Inheritance diagram for cma.monitoring.MonitorAction:
Collaboration diagram for cma.monitoring.MonitorAction:

Public Member Functions

def __init__ (self, domain, monitorname, monitorclass, monitortype, interval, timeout, warntime=None, provider=None, arglist=None, argv=None)
 
def longname (self)
 
def shortname (self)
 
def activate (self, monitoredentity, runon=None)
 
def deactivate (self)
 
def monitorchange (self, origaddr, monmsgobj)
 
def construct_mon_json (self, operation='monitor')
 

Static Public Member Functions

def __meta_keyattrs__ ()
 
def find (name, domain=None)
 
def find1 (name, domain=None)
 
def logchange (origaddr, monmsgobj)
 

Data Fields

 monitorname
 
 monitorclass
 
 monitortype
 
 interval
 
 timeout
 
 warntime
 
 provider
 
 isactive
 
 isworking
 
 reason
 
 argv
 
 arglist
 

Static Public Attributes

 request_id = time.time()
 
 findquery = None
 

Detailed Description

Class representing monitoring actions

Definition at line 52 of file monitoring.py.

Constructor & Destructor Documentation

def cma.monitoring.MonitorAction.__init__ (   self,
  domain,
  monitorname,
  monitorclass,
  monitortype,
  interval,
  timeout,
  warntime = None,
  provider = None,
  arglist = None,
  argv = None 
)

Definition at line 65 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.__meta_keyattrs__().

Here is the caller graph for this function:

Member Function Documentation

def cma.monitoring.MonitorAction.__meta_keyattrs__ ( )
static

Definition at line 57 of file monitoring.py.

References cma.monitoring.MonitorAction.__init__().

Here is the call graph for this function:

def cma.monitoring.MonitorAction.activate (   self,
  monitoredentity,
  runon = None 
)
Relate this monitoring action to the given entity, and start it on the 'runon' system
  Parameters
  ----------
  monitoredentity : GraphNode
The graph node which we are monitoring either a service or a ManagedSystem
  runon : Drone
The particular Drone which is running this monitoring action.
Defaults to 'monitoredentity'

Definition at line 108 of file monitoring.py.

References cma.monitoring.MonitorAction.construct_mon_json(), cma.monitoring.MonitorAction.isactive, cma.monitoring.MonitorAction.monitorclass, and cma.monitoring.MonitorAction.monitorname.

Here is the call graph for this function:

def cma.monitoring.MonitorAction.deactivate (   self)
Deactivate this monitoring action. Does not remove relationships from the graph

Definition at line 141 of file monitoring.py.

References cma.monitoring.MonitorAction.construct_mon_json(), and cma.monitoring.MonitorAction.isactive.

Here is the call graph for this function:

def cma.monitoring.MonitorAction.find (   name,
  domain = None 
)
static

Definition at line 153 of file monitoring.py.

def cma.monitoring.MonitorAction.find1 (   name,
  domain = None 
)
static

Definition at line 163 of file monitoring.py.

def cma.monitoring.MonitorAction.logchange (   origaddr,
  monmsgobj 
)
static
Make the necessary changes to the monitoring data when a particular
monitoring action changes status (to success or to failure)
This includes locating the MonitorAction object in the database.

Parameters
----------
origaddr: pyNetAddr
    address where monitoring action originated
monmsgobj: pyConfigContext
    object containing the monitoring message

Definition at line 170 of file monitoring.py.

def cma.monitoring.MonitorAction.longname (   self)
def cma.monitoring.MonitorAction.monitorchange (   self,
  origaddr,
  monmsgobj 
)
Make the necessary changes to the monitoring data when a particular
monitoring action changes status (to success or to failure)

Parameters
----------
origaddr: pyNetAddr
    address where monitoring action originated
monmsgobj: pyConfigContext
    object containing the monitoring message

Definition at line 192 of file monitoring.py.

References cma.monitoring.MonitorAction.isworking, cma.monitoring.MonitorAction.reason, cma.droneinfo.Drone.reason, and obsolete_cma.DroneInfo.reason.

def cma.monitoring.MonitorAction.shortname (   self)

Definition at line 104 of file monitoring.py.

References cma.monitoring.MonitorAction.monitortype.

Field Documentation

cma.monitoring.MonitorAction.arglist

Definition at line 82 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.construct_mon_json().

cma.monitoring.MonitorAction.argv
cma.monitoring.MonitorAction.findquery = None
static

Definition at line 151 of file monitoring.py.

cma.monitoring.MonitorAction.interval

Definition at line 71 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.construct_mon_json().

cma.monitoring.MonitorAction.isactive
cma.monitoring.MonitorAction.isworking

Definition at line 76 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.monitorchange().

cma.monitoring.MonitorAction.monitorclass
cma.monitoring.MonitorAction.monitorname
cma.monitoring.MonitorAction.monitortype
cma.monitoring.MonitorAction.reason

Definition at line 77 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.monitorchange().

cma.monitoring.MonitorAction.request_id = time.time()
static

Definition at line 55 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.construct_mon_json().

cma.monitoring.MonitorAction.timeout
cma.monitoring.MonitorAction.warntime

Definition at line 73 of file monitoring.py.

Referenced by cma.monitoring.MonitorAction.construct_mon_json().


The documentation for this class was generated from the following file: