public abstract class AlertSender
extends cn.ponfee.disjob.common.base.SingletonClassConstraint
| 限定符 | 构造器和说明 |
|---|---|
protected |
AlertSender(String channel,
String name,
AlertRecipientMapper mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<AlertSender> |
all() |
static AlertSender |
get(String channel) |
protected abstract void |
send(AlertEvent alertEvent,
Map<String,String> alertRecipientMap,
String alertWebhook)
Sends the alert event by current message channel.
|
void |
send(AlertEvent alertEvent,
Set<String> alertRecipients,
String alertWebhook) |
protected boolean |
verify(Map<String,String> alertRecipientMap,
String alertWebhook)
Verifies the alert recipient map and webhook url param
|
protected AlertSender(String channel, String name, AlertRecipientMapper mapper)
public final void send(AlertEvent alertEvent, Set<String> alertRecipients, String alertWebhook)
protected boolean verify(Map<String,String> alertRecipientMap, String alertWebhook)
alertRecipientMap - the alert recipient mapalertWebhook - the alert webhook urltrue is verified successprotected abstract void send(AlertEvent alertEvent, Map<String,String> alertRecipientMap, String alertWebhook)
alertEvent - the alert eventalertRecipientMap - the alert recipient map[origin-recipient -> channel-recipient]alertWebhook - the alert webhook urlpublic static List<AlertSender> all()
public static AlertSender get(String channel)
Copyright © 2025. All rights reserved.