pymtt
 All Classes Namespaces Files Functions Variables Groups
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CheckProfile.CheckProfile Class Reference
+ Inheritance diagram for CheckProfile.CheckProfile:
+ Collaboration diagram for CheckProfile.CheckProfile:

Public Member Functions

def __init__
 
def activate
 
def deactivate
 
def print_name
 
def print_options
 
def execute
 
- Public Member Functions inherited from ProfileMTTStage.ProfileMTTStage
def __init__
 
def print_name
 
def ordering
 

Public Attributes

 options
 

Static Public Attributes

list diskSpaceCmd = ["sh", "-c", "df -BM --output=pcent DISK | grep -v Use"]
 
list memoryFreeCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $4}'"]
 
list memoryTotalCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $2}'"]
 
list memoryUsedCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $3}'"]
 
dictionary ops
 

Detailed Description

Definition at line 25 of file CheckProfile.py.

Constructor & Destructor Documentation

def CheckProfile.CheckProfile.__init__ (   self)

Definition at line 39 of file CheckProfile.py.

Member Function Documentation

def CheckProfile.CheckProfile.activate (   self)

Definition at line 50 of file CheckProfile.py.

def CheckProfile.CheckProfile.deactivate (   self)

Definition at line 56 of file CheckProfile.py.

def CheckProfile.CheckProfile.execute (   self,
  log,
  keyvals,
  testDef 
)

Definition at line 69 of file CheckProfile.py.

def CheckProfile.CheckProfile.print_name (   self)

Definition at line 60 of file CheckProfile.py.

def CheckProfile.CheckProfile.print_options (   self,
  testDef,
  prefix 
)

Definition at line 63 of file CheckProfile.py.

Member Data Documentation

list CheckProfile.CheckProfile.diskSpaceCmd = ["sh", "-c", "df -BM --output=pcent DISK | grep -v Use"]
static

Definition at line 27 of file CheckProfile.py.

list CheckProfile.CheckProfile.memoryFreeCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $4}'"]
static

Definition at line 28 of file CheckProfile.py.

list CheckProfile.CheckProfile.memoryTotalCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $2}'"]
static

Definition at line 29 of file CheckProfile.py.

list CheckProfile.CheckProfile.memoryUsedCmd = ["sh", "-c", "free -h -o | grep Mem: | awk '{print $3}'"]
static

Definition at line 30 of file CheckProfile.py.

dictionary CheckProfile.CheckProfile.ops
static
Initial value:
1 = { '>': operator.gt,
2  '<': operator.lt,
3  '>=': operator.ge,
4  '<=': operator.le,
5  '=': operator.eq
6  }

Definition at line 32 of file CheckProfile.py.

CheckProfile.CheckProfile.options

Definition at line 42 of file CheckProfile.py.


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