|
|
@ -397,11 +397,11 @@ public class DefaultNotifications { |
|
|
.name("Resources shortage notification") |
|
|
.name("Resources shortage notification") |
|
|
.type(NotificationType.RESOURCES_SHORTAGE) |
|
|
.type(NotificationType.RESOURCES_SHORTAGE) |
|
|
.subject("Warning: ${resource} shortage") |
|
|
.subject("Warning: ${resource} shortage") |
|
|
.text("The ${resource} usage is on the rise (currently at ${usage}%). Immediate action required to prevent system instability.") |
|
|
.text("${resource} usage is at ${usage}%).") |
|
|
.icon("warning") |
|
|
.icon("warning") |
|
|
.rule(DefaultRule.builder() |
|
|
.rule(DefaultRule.builder() |
|
|
.name("Resources shortage") |
|
|
.name("Resources shortage") |
|
|
.triggerConfig(ResourcesShortageNotificationRuleTriggerConfig.builder().resource(Resource.CPU.name()).cpuThreshold(90).storageThreshold(90).ramThreshold(90).build()) |
|
|
.triggerConfig(ResourcesShortageNotificationRuleTriggerConfig.builder().resource(Resource.CPU.name()).cpuThreshold(80).storageThreshold(80).ramThreshold(80).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) |
|
|
|