Monitor Module
create_monitor_schema()
Create the monitor schema with:
- App name;
- Process status;
- Process name;
- Entity type.
Returns:
| Type | Description |
|---|---|
List[Dict[str, str]]
|
List[Dict[str, str]]: The list of dicts containing the monitor schema with: |
Source code in carol_app_monitor/monitor.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
start_online_processes(monitor_schema, num_retries=2)
Start all online processes that's not running.
This function will filter online APPs from all CarolApps and check which isn't running. To this cases, the start_online_processes() function will try to start the process for num_retries explicited.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
monitor_schema |
List[Dict[str, str]]
|
The list of dicts containing |
required |
num_retries |
int
|
Number of retries that function will execute. Defaults to 2. |
2
|
Returns:
| Type | Description |
|---|---|
Dict[str, Dict[str, str]]
|
Dict[str, Dict[str, str]]: The dictionary contaning the |
Source code in carol_app_monitor/monitor.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |