From ea9ecb364b6ba6ddc14cdcb27857ca94b1b6a4a9 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 10 Oct 2025 23:14:39 +0200 Subject: [PATCH] Add warning and critical thresholds to options --- options/options.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/options/options.go b/options/options.go index 8a1f494..8c83372 100644 --- a/options/options.go +++ b/options/options.go @@ -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)"` }