Fix default resourcesShortage

This commit is contained in:
Andrii Landiak 2025-02-24 16:38:08 +02:00
parent bad6451102
commit e14c81ece3

View File

@ -401,7 +401,7 @@ public class DefaultNotifications {
.icon("warning") .icon("warning")
.rule(DefaultRule.builder() .rule(DefaultRule.builder()
.name("Resources shortage") .name("Resources shortage")
.triggerConfig(ResourcesShortageNotificationRuleTriggerConfig.builder().resource(Resource.CPU.name()).cpuThreshold(80).storageThreshold(80).ramThreshold(80).build()) .triggerConfig(ResourcesShortageNotificationRuleTriggerConfig.builder().resource(Resource.CPU.name()).cpuThreshold(0.8f).storageThreshold(0.8f).ramThreshold(0.8f).build())
.description("Send notification to system admins when resources shortage is running low") .description("Send notification to system admins when resources shortage is running low")
.build()) .build())
.color(RED_COLOR) .color(RED_COLOR)