serverwatcher 2.2.1__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {serverwatcher-2.2.1/src/serverwatcher.egg-info → serverwatcher-2.2.3}/PKG-INFO +1 -1
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/pyproject.toml +1 -1
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher/messages.py +3 -28
- {serverwatcher-2.2.1 → serverwatcher-2.2.3/src/serverwatcher.egg-info}/PKG-INFO +1 -1
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/LICENSE +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/README.md +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/setup.cfg +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher/__init__.py +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher/config.py +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher/watcher.py +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher.egg-info/SOURCES.txt +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher.egg-info/dependency_links.txt +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher.egg-info/requires.txt +0 -0
- {serverwatcher-2.2.1 → serverwatcher-2.2.3}/src/serverwatcher.egg-info/top_level.txt +0 -0
|
@@ -18,7 +18,8 @@ class WatcherMessages:
|
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
broadcast_second: dict = field(default_factory=lambda: {
|
|
21
|
-
s: "{prefix} Restart in " + str(s) + " seconds!"
|
|
21
|
+
s: "{prefix} Restart in " + str(s) + " seconds!"
|
|
22
|
+
for s in range(10, 0, -1)
|
|
22
23
|
})
|
|
23
24
|
|
|
24
25
|
# log messages
|
|
@@ -32,33 +33,7 @@ class WatcherMessages:
|
|
|
32
33
|
log_gap_high: str = "Gap {gap}. Scheduling restart in 1 hour."
|
|
33
34
|
|
|
34
35
|
# reason messages
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@dataclass
|
|
38
|
-
class WatcherMessages:
|
|
39
|
-
prefix: str
|
|
40
|
-
|
|
41
|
-
log_start: str = "Evaluating server health..."
|
|
42
|
-
log_validation_fail: str = "Validation failed!"
|
|
43
|
-
log_no_restart: str = "No restart needed."
|
|
44
|
-
log_immediate_restart: str = "Restarting immediately..."
|
|
45
|
-
log_scheduled: str = "Scheduling restart..."
|
|
46
|
-
log_gap_low: str = "Gap is low ({gap}), using low-gap schedule."
|
|
47
|
-
log_gap_high: str = "Gap is high ({gap}), using high-gap schedule."
|
|
48
|
-
|
|
49
|
-
reason_restart_soon: str = "Restart soon schedule is active."
|
|
50
|
-
reason_ram: str = "RAM {ram}GB >= threshold {threshold}GB"
|
|
51
|
-
reason_cpu: str = "CPU {cpu}% >= threshold {threshold}%"
|
|
52
|
-
reason_uptime: str = "Uptime {uptime} >= {threshold} hours"
|
|
53
|
-
reason_tps: str = "TPS {tps} <= threshold {threshold}"
|
|
54
|
-
reason_low_uptime: str = "Uptime too low ({uptime})"
|
|
55
|
-
reason_players: str = "There {verb} {count} {plural} online."
|
|
56
|
-
|
|
57
|
-
broadcast_restart_at: str = "<yellow>Server restart scheduled at {time}"
|
|
58
|
-
|
|
59
|
-
broadcast_minute: dict = field(default_factory=dict)
|
|
60
|
-
broadcast_second: dict = field(default_factory=dict)
|
|
61
|
-
: str = "The server is set to restart soon"
|
|
36
|
+
reason_restart_soon: str = "The server is set to restart soon"
|
|
62
37
|
reason_ram: str = "RAM usage ({ram}) is higher than {threshold} GB"
|
|
63
38
|
reason_cpu: str = "CPU usage ({cpu}) is higher than {threshold}%"
|
|
64
39
|
reason_uptime: str = "Uptime {uptime} exceeds {threshold}h"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|