public class AlertSender extends Object
Constructor and Description |
---|
AlertSender(ImmutableConnectorMessage connectorMessage)
Instantiates a new AlertSender.
|
AlertSender(String channelId)
Instantiates a new AlertSender.
|
Modifier and Type | Method and Description |
---|---|
void |
sendAlert(String errorMessage)
Dispatches an error event that can be alerted on.
|
public AlertSender(String channelId)
channelId
- The ID of the channel to associate dispatched alert events with.public AlertSender(ImmutableConnectorMessage connectorMessage)
connectorMessage
- The connector message to associate dispatched alert events with.public void sendAlert(String errorMessage)
errorMessage
- A custom error message to include with the error event.