Add warning and critical thresholds to options

This commit is contained in:
2025-10-10 23:14:39 +02:00
parent ac6495faf0
commit ea9ecb364b

View File

@@ -41,6 +41,14 @@ type Options struct {
WebhookEmail string `env:"WEBHOOK_EMAIL" description:"Webhook authentication email"`
WebhookToken string `env:"WEBHOOK_TOKEN" description:"Webhook authentication token"`
// Storage monitoring thresholds (percentage)
StorageWarning float64 `env:"STORAGE_WARNING" default:"80.0" description:"Storage warning threshold percentage"`
StorageCritical float64 `env:"STORAGE_CRITICAL" default:"95.0" description:"Storage critical threshold percentage"`
// Extractor expiry monitoring (duration)
ExpiryWarning string `env:"EXPIRY_WARNING" default:"2h" description:"Extractor expiry warning duration (e.g. 24h for 24 hours)"`
ExpiryCritical string `env:"EXPIRY_CRITICAL" default:"0s" description:"Extractor expiry critical duration (e.g. 2h for 2 hours)"`
LogLevel string `env:"LOG_LEVEL" default:"info" description:"Logging level (dump, trace, debug, info, warning, error)"`
}