Increase monitoring period to 3 minutes

This commit is contained in:
Sebastiaan de Schaetzen 2025-04-09 10:27:30 +02:00
parent ad0feb756f
commit 37d76f34da

View File

@ -24,7 +24,7 @@ import (
const ( const (
checkInterval = 10 * time.Second checkInterval = 10 * time.Second
monitoringPeriod = 30 * time.Second monitoringPeriod = 3 * time.Minute
cpuThreshold = 20.0 // percentage cpuThreshold = 20.0 // percentage
gpuThreshold = 20.0 // percentage gpuThreshold = 20.0 // percentage
diskThreshold = 5 * 1024 * 1024 // 5 MB/s diskThreshold = 5 * 1024 * 1024 // 5 MB/s
@ -41,7 +41,7 @@ type ResourceUsage struct {
NetworkIO float64 `json:"network_io"` NetworkIO float64 `json:"network_io"`
SshConnections int `json:"ssh_connections"` SshConnections int `json:"ssh_connections"`
ActiveUsers int `json:"active_users"` ActiveUsers int `json:"active_users"`
HttpRequests int `json:"http_requests"` HttpRequests int `json:"http_requests"`
} }
type StatusResponse struct { type StatusResponse struct {