From 37d76f34da6d1389d06710783040c09798e47a60 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 9 Apr 2025 10:27:30 +0200 Subject: [PATCH] Increase monitoring period to 3 minutes --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b8dcae9..ccbcfe7 100644 --- a/main.go +++ b/main.go @@ -24,7 +24,7 @@ import ( const ( checkInterval = 10 * time.Second - monitoringPeriod = 30 * time.Second + monitoringPeriod = 3 * time.Minute cpuThreshold = 20.0 // percentage gpuThreshold = 20.0 // percentage diskThreshold = 5 * 1024 * 1024 // 5 MB/s @@ -41,7 +41,7 @@ type ResourceUsage struct { NetworkIO float64 `json:"network_io"` SshConnections int `json:"ssh_connections"` ActiveUsers int `json:"active_users"` - HttpRequests int `json:"http_requests"` + HttpRequests int `json:"http_requests"` } type StatusResponse struct {