BmnRoot
Loading...
Searching...
No Matches
mon-service Namespace Reference

Functions

 test_ping (ip)
 
 test_pgsql_connection (params)
 
 test_http (http_addr)
 
 send_email (to, short_msg, long_msg="")
 
 get_notify (params_dict)
 
 main ()
 

Variables

str MEASUREMENT_NAME = "resp_time"
 
int allow_failed_check = 2
 

Function Documentation

◆ get_notify()

mon-service.get_notify (   params_dict)

Definition at line 91 of file mon-service.py.

Referenced by main().

◆ main()

mon-service.main ( )

Definition at line 99 of file mon-service.py.

References get_notify(), main(), send_email(), test_http(), test_pgsql_connection(), and test_ping().

Referenced by main().

◆ send_email()

mon-service.send_email (   to,
  short_msg,
  long_msg = "" 
)

Definition at line 76 of file mon-service.py.

Referenced by main().

◆ test_http()

mon-service.test_http (   http_addr)

Definition at line 66 of file mon-service.py.

Referenced by main().

◆ test_pgsql_connection()

mon-service.test_pgsql_connection (   params)

Definition at line 30 of file mon-service.py.

Referenced by main().

◆ test_ping()

mon-service.test_ping (   ip)

Definition at line 24 of file mon-service.py.

Referenced by main().

Variable Documentation

◆ allow_failed_check

int mon-service.allow_failed_check = 2

Definition at line 22 of file mon-service.py.

◆ MEASUREMENT_NAME

str mon-service.MEASUREMENT_NAME = "resp_time"

Definition at line 19 of file mon-service.py.