aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-06-24 07:53:42 -0700
committerAnton Tananaev <anton@traccar.org>2024-06-24 07:53:42 -0700
commit690f734e423a6ebe55b3bef5b7ac42cc734b664f (patch)
tree237a985fddeca7876dc717f8323d28eb377c60a0 /src/main/java/org/traccar/config
parente9b1392ddc72bd8d5adcde69012e90cb4004c930 (diff)
downloadtrackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.tar.gz
trackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.tar.bz2
trackermap-server-690f734e423a6ebe55b3bef5b7ac42cc734b664f.zip
Health check for stored messages
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index e51ba07c4..ac2adca8a 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1811,6 +1811,15 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * If this parameter is set, Traccar will monitor drops in the number of stored messages. If it drops more than
+ * the threshold, it will mark service as failing for systemd. Threshold is a value from 0.0 to 1.0. For example,
+ * value 0.7 means that the number of messages in the last period is only 70% of what it was in the previous.
+ */
+ public static final ConfigKey<Double> WEB_HEALTH_CHECK_DROP_THRESHOLD = new DoubleConfigKey(
+ "web.healthCheck.dropThreshold",
+ List.of(KeyType.CONFIG));
+
+ /**
* Sets SameSite cookie attribute value.
* Supported options: Lax, Strict, None.
*/