Class AlertMessage
java.lang.Object
com.scaleoutsoftware.digitaltwin.core.AlertMessage
A message that should be sent to a configured alert provider.
-
Constructor Summary
ConstructorDescriptionAlertMessage
(String title, String severity, String message) Construct an alert message with a title, severity, and custom message.Construct an alert message with a title, severity, and custom message. -
Method Summary
-
Constructor Details
-
AlertMessage
Construct an alert message with a title, severity, and custom message.- Parameters:
title
- the title for the alert message.severity
- the severity for this alert.message
- the custom message for this alert.
-
AlertMessage
Construct an alert message with a title, severity, and custom message.- Parameters:
title
- the title for the alert message.severity
- the severity for this alert.message
- the custom message for this alert.optProps
- the optional properties that should be sent to the alerting provider.
-
-
Method Details
-
getTitle
Retrieve the title for this alert message.- Returns:
- the title of this alert message.
-
getSeverity
Retrieve the severity for this alert message.- Returns:
- the severity for this alert message.
-
getMessage
Retrieve the message for this alert message.- Returns:
- the message for this alert message.
-
getOptionalTwinInstanceProperties
Retrieve the optional twin instance properties for this alert message.- Returns:
- the optional twin instance properties for this alert message.
-
toString
-