public abstract class AlertSender
extends cn.ponfee.disjob.common.base.SingletonClassConstraint
| 限定符 | 构造器和说明 |
|---|---|
protected |
AlertSender(String channel,
String name,
UserRecipientMapper mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<AlertSender> |
all() |
static AlertSender |
get(String channel) |
protected abstract void |
send(AlertEvent alertEvent,
Map<String,String> alertRecipients,
String webhook)
Sends the alert event by current message channel.
|
void |
send(AlertEvent alertEvent,
Set<String> alertUsers,
String webhook) |
protected boolean |
verify(Map<String,String> recipients,
String webhook)
Verifies the recipients and webhook param
|
protected AlertSender(String channel, String name, UserRecipientMapper mapper)
public final void send(AlertEvent alertEvent, Set<String> alertUsers, String webhook)
protected boolean verify(Map<String,String> recipients, String webhook)
recipients - the recipientswebhook - the webhooktrue is verified successprotected abstract void send(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.