You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or (and) set node\'s archive ttl to lower value.""",
42
-
6*HOUR
43
-
),
44
-
"low_efficiency": Alert(
45
-
"high",
46
-
"""Validator efficiency is low: {efficiency}%.""",
47
-
VALIDATION_PERIOD//3
48
-
),
49
-
"out_of_sync": Alert(
50
-
"critical",
51
-
"Node is out of sync on {sync} sec.",
52
-
300
53
-
),
54
-
"service_down": Alert(
55
-
"critical",
56
-
"validator.service is down.",
57
-
300
58
-
),
59
-
"adnl_connection_failed": Alert(
60
-
"high",
61
-
"ADNL connection to node failed",
62
-
3*HOUR
63
-
),
64
-
"zero_block_created": Alert(
65
-
"critical",
66
-
"Validator has not created any blocks in the last {hours} hours.",
67
-
VALIDATION_PERIOD//3
68
-
),
69
-
"validator_slashed": Alert(
70
-
"high",
71
-
"Validator has been slashed in previous round for {amount} TON",
72
-
FREEZE_PERIOD
73
-
),
74
-
"stake_not_accepted": Alert(
75
-
"high",
76
-
"Validator's stake has not been accepted",
77
-
ELECTIONS_START_BEFORE
78
-
),
79
-
"stake_accepted": Alert(
80
-
"info",
81
-
"Validator's stake {stake} TON has been accepted",
82
-
ELECTIONS_START_BEFORE
83
-
),
84
-
"stake_returned": Alert(
85
-
"info",
86
-
"Validator's stake {stake} TON has been returned on address {address}. The reward amount is {reward} TON.",
87
-
60
88
-
),
89
-
"stake_not_returned": Alert(
90
-
"high",
91
-
"Validator's stake has not been returned on address {address}.",
92
-
60
93
-
),
94
-
"voting": Alert(
95
-
"high",
96
-
"Found proposals with hashes `{hashes}` that have significant amount of votes, but current validator didn't vote for them. Please check @tonstatus for more details.",
97
-
VALIDATION_PERIOD
98
-
),
99
-
}
24
+
ALERTS= {}
25
+
26
+
27
+
definit_alerts():
28
+
globalALERTS
29
+
ALERTS= {
30
+
"low_wallet_balance": Alert(
31
+
"low",
32
+
"Validator wallet {wallet} balance is low: {balance} TON.",
or (and) set node\'s archive ttl to lower value.""",
47
+
6*HOUR
48
+
),
49
+
"low_efficiency": Alert(
50
+
"high",
51
+
"""Validator efficiency is low: {efficiency}%.""",
52
+
VALIDATION_PERIOD//3
53
+
),
54
+
"out_of_sync": Alert(
55
+
"critical",
56
+
"Node is out of sync on {sync} sec.",
57
+
300
58
+
),
59
+
"service_down": Alert(
60
+
"critical",
61
+
"validator.service is down.",
62
+
300
63
+
),
64
+
"adnl_connection_failed": Alert(
65
+
"high",
66
+
"ADNL connection to node failed",
67
+
3*HOUR
68
+
),
69
+
"zero_block_created": Alert(
70
+
"critical",
71
+
"Validator has not created any blocks in the last {hours} hours.",
72
+
VALIDATION_PERIOD//3
73
+
),
74
+
"validator_slashed": Alert(
75
+
"high",
76
+
"Validator has been slashed in previous round for {amount} TON",
77
+
FREEZE_PERIOD
78
+
),
79
+
"stake_not_accepted": Alert(
80
+
"high",
81
+
"Validator's stake has not been accepted",
82
+
ELECTIONS_START_BEFORE
83
+
),
84
+
"stake_accepted": Alert(
85
+
"info",
86
+
"Validator's stake {stake} TON has been accepted",
87
+
ELECTIONS_START_BEFORE
88
+
),
89
+
"stake_returned": Alert(
90
+
"info",
91
+
"Validator's stake {stake} TON has been returned on address {address}. The reward amount is {reward} TON.",
92
+
60
93
+
),
94
+
"stake_not_returned": Alert(
95
+
"high",
96
+
"Validator's stake has not been returned on address {address}.",
97
+
60
98
+
),
99
+
"voting": Alert(
100
+
"high",
101
+
"Found proposals with hashes `{hashes}` that have significant amount of votes, but current validator didn't vote for them. Please check @tonstatus for more details.",
0 commit comments