
com.riskalyze.alerts.AlertsService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alerts-kotlin Show documentation
Show all versions of alerts-kotlin Show documentation
This alerts module is used to standardize alerting for JVM-based application. It uses a modular driver system to allow easily swapping out alerting services.
The newest version!
package com.riskalyze.alerts
import com.riskalyze.alerts.models.Alert
import com.riskalyze.alerts.models.AlertResponse
import java.util.concurrent.CompletableFuture
interface AlertsService {
fun send(alert: Alert): CompletableFuture
fun close(alias: String): CompletableFuture
fun report(exception: Exception, tags: List = listOf()): CompletableFuture
fun info(
message: String,
description: String? = null,
tags: List = listOf()
): CompletableFuture
fun low(
message: String,
description: String? = null,
tags: List = listOf()
): CompletableFuture
fun moderate(
message: String,
description: String? = null,
tags: List = listOf()
): CompletableFuture
fun high(
message: String,
description: String? = null,
tags: List = listOf()
): CompletableFuture
fun critical(
message: String,
description: String? = null,
tags: List = listOf()
): CompletableFuture
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy