Increase monitoring period to 3 minutes
This commit is contained in:
parent
ad0feb756f
commit
37d76f34da
4
main.go
4
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user