public abstract class AlertSender
extends cn.ponfee.disjob.common.base.SingletonClassConstraint
| 限定符 | 构造器和说明 |
|---|---|
protected |
AlertSender(String channel,
String name,
UserRecipientMapper mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<AlertSender> |
all() |
protected abstract void |
doSend(AlertEvent alertEvent,
Map<String,String> alertRecipients,
String webhook)
Do send alert event message.
|
static AlertSender |
get(String channel) |
void |
send(AlertEvent alertEvent,
Set<String> alertUsers,
String webhook) |
protected boolean |
verify(Map<String,String> recipients,
String webhook) |
protected AlertSender(String channel, String name, UserRecipientMapper mapper)
public void send(AlertEvent alertEvent, Set<String> alertUsers, String webhook)
protected abstract void doSend(AlertEvent alertEvent, Map<String,String> alertRecipients, String webhook)
alertEvent - the alert eventalertRecipients - the alert recipients [user -> recipient]webhook - the webhookpublic static List<AlertSender> all()
public static AlertSender get(String channel)
Copyright © 2025. All rights reserved.