added variable for threshold for switching from "all congested" --> "connection failed"
[pingcheck] / src / host / hoststatus.h
index 5aa9911..d83134f 100644 (file)
@@ -41,6 +41,7 @@ public:
             const std::string &host_address,
             const int ping_fail_limit_percentage,
             const int ping_congestion_limit_percentage,
+            const int congest_caused_by_fail_limit_percentage,
             const int ping_duration_congestion_thresh,
             const int n_parallel_pings,
             const LinkStatusItem link_analyzer
@@ -79,6 +80,8 @@ private:
     int PingFailLimitPercentage;
     /// the maximum amount of pings that can be congested without warning
     int PingCongestionLimitPercentage;
+    /// threshold to decide when congestion is caused by failed connection
+    int CongestCausedByFailLimitPercentage;
     /// the threshold in micro seconds that ping can take with/out congestion
     long PingDurationCongestionsThresh;
     /// the amount of IPs that are aliases to the host DNS