Add persistent thresholds and seven-day metrics history
This commit is contained in:
@@ -8,7 +8,7 @@ func TestEvaluateAlerts(t *testing.T) {
|
||||
Storage: StorageMetrics{UsagePercent: 96},
|
||||
Backups: BackupMetrics{}, Guests: GuestsMetrics{},
|
||||
}
|
||||
alerts := evaluateAlerts(metrics)
|
||||
alerts := evaluateAlerts(metrics, defaultThresholds())
|
||||
if len(alerts) != 2 {
|
||||
t.Fatalf("ожидалось два уведомления, получено: %+v", alerts)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user