Class HttpWebhookClient
java.lang.Object
com.github.catomat0.aoploghelper.alert.webhook.HttpWebhookClient
- All Implemented Interfaces:
WebhookClient
Minimal JDK
HttpClient-based webhook client. Serializes each event into
a provider-specific JSON payload and POSTs it. No external HTTP dependencies.-
Constructor Summary
ConstructorsConstructorDescriptionHttpWebhookClient(AlhAlertProperties properties, Function<AlertEvent, String> payloadRenderer) -
Method Summary
-
Constructor Details
-
HttpWebhookClient
public HttpWebhookClient(AlhAlertProperties properties, Function<AlertEvent, String> payloadRenderer)
-
-
Method Details
-
send
- Specified by:
sendin interfaceWebhookClient- Throws:
Exception
-