Package io.openems.backend.alerting
Class Message
java.lang.Object
io.openems.backend.alerting.Message
- All Implemented Interfaces:
Comparable<Message>
- Direct Known Subclasses:
OfflineEdgeMessage
,SumStateMessage
Properties for one notification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getId()
Returns the unique identifier for a Message.abstract ZonedDateTime
Returns the time stamp at which this message is supposed to be sent.abstract com.google.gson.JsonObject
Get attributes as JsonObject for Mailer.int
hashCode()
-
Constructor Details
-
Message
-
-
Method Details
-
getId
Returns the unique identifier for a Message.- Returns:
- identifier as
String
-
getNotifyStamp
Returns the time stamp at which this message is supposed to be sent.- Returns:
ZonedDateTime
at which to send this message
-
getParams
public abstract com.google.gson.JsonObject getParams()Get attributes as JsonObject for Mailer.- Returns:
- JsonObject
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Message>
-