Package com.aoindustries.noc.monitor
Class AlertLevelAndMessage
java.lang.Object
com.aoindustries.noc.monitor.AlertLevelAndMessage
Stores two return values.
- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AlertLevelAndMessage
An alert level and message with no alert and no message. -
Constructor Summary
ConstructorDescriptionAlertLevelAndMessage
(AlertLevel alertLevel, Function<Locale, String> alertMessage) -
Method Summary
Modifier and TypeMethodDescriptionescalate
(AlertLevel newAlertLevel, Function<Locale, String> newAlertMessage) Gets a new alert level and message if a higher alert level, otherwise returns this alert level and message.Gets the alert message ornull
for none.
-
Field Details
-
NONE
An alert level and message with no alert and no message.
-
-
Constructor Details
-
AlertLevelAndMessage
-
-
Method Details
-
getAlertLevel
-
getAlertMessage
Gets the alert message ornull
for none. -
escalate
public AlertLevelAndMessage escalate(AlertLevel newAlertLevel, Function<Locale, String> newAlertMessage) Gets a new alert level and message if a higher alert level, otherwise returns this alert level and message.
-