Functions | Variables
acceptancetest_high_cpu Namespace Reference

Functions

def get_psen_scan_process ()
 

Variables

string GREEN = '\033[92m'
 
string NAME = 'name'
 
string NC = '\033[0m'
 
int OBSERVATION_DURATION_SEC = 60
 
int OBSERVATION_FREQUENCY_HZ = .5
 
 process = None
 
string PSEN_SCAN_PROCESS_NAME = "psen_scan_node"
 
string RED = '\033[91m'
 
int RETURN_CODE_ERROR = 1
 
int RETURN_CODE_FAILURE = 10
 
int RETURN_CODE_SUCCESS = 0
 
 start_time = time.time()
 
int THRESHOLD_PRECENT = 80
 
 utilization = process.cpu_percent()
 
string YELLOW = '\033[93m'
 

Function Documentation

◆ get_psen_scan_process()

def acceptancetest_high_cpu.get_psen_scan_process ( )
Return the handle of the psen_scan process if it is currently running,
None otherwise.

Definition at line 37 of file acceptancetest_high_cpu.py.

Variable Documentation

◆ GREEN

string acceptancetest_high_cpu.GREEN = '\033[92m'

Definition at line 31 of file acceptancetest_high_cpu.py.

◆ NAME

string acceptancetest_high_cpu.NAME = 'name'

Definition at line 24 of file acceptancetest_high_cpu.py.

◆ NC

string acceptancetest_high_cpu.NC = '\033[0m'

Definition at line 34 of file acceptancetest_high_cpu.py.

◆ OBSERVATION_DURATION_SEC

int acceptancetest_high_cpu.OBSERVATION_DURATION_SEC = 60

Definition at line 22 of file acceptancetest_high_cpu.py.

◆ OBSERVATION_FREQUENCY_HZ

int acceptancetest_high_cpu.OBSERVATION_FREQUENCY_HZ = .5

Definition at line 21 of file acceptancetest_high_cpu.py.

◆ process

def acceptancetest_high_cpu.process = None

Definition at line 47 of file acceptancetest_high_cpu.py.

◆ PSEN_SCAN_PROCESS_NAME

string acceptancetest_high_cpu.PSEN_SCAN_PROCESS_NAME = "psen_scan_node"

Definition at line 23 of file acceptancetest_high_cpu.py.

◆ RED

string acceptancetest_high_cpu.RED = '\033[91m'

Definition at line 33 of file acceptancetest_high_cpu.py.

◆ RETURN_CODE_ERROR

int acceptancetest_high_cpu.RETURN_CODE_ERROR = 1

Definition at line 28 of file acceptancetest_high_cpu.py.

◆ RETURN_CODE_FAILURE

int acceptancetest_high_cpu.RETURN_CODE_FAILURE = 10

Definition at line 27 of file acceptancetest_high_cpu.py.

◆ RETURN_CODE_SUCCESS

int acceptancetest_high_cpu.RETURN_CODE_SUCCESS = 0

Definition at line 26 of file acceptancetest_high_cpu.py.

◆ start_time

acceptancetest_high_cpu.start_time = time.time()

Definition at line 58 of file acceptancetest_high_cpu.py.

◆ THRESHOLD_PRECENT

int acceptancetest_high_cpu.THRESHOLD_PRECENT = 80

Definition at line 25 of file acceptancetest_high_cpu.py.

◆ utilization

acceptancetest_high_cpu.utilization = process.cpu_percent()

Definition at line 65 of file acceptancetest_high_cpu.py.

◆ YELLOW

string acceptancetest_high_cpu.YELLOW = '\033[93m'

Definition at line 32 of file acceptancetest_high_cpu.py.



psen_scan
Author(s):
autogenerated on Mon Feb 28 2022 23:16:20