2020-09-24 19:54:15 -04:00
|
|
|
package provider
|
|
|
|
|
|
2020-09-26 14:23:43 -04:00
|
|
|
import (
|
|
|
|
|
"github.com/TwinProduction/gatus/alerting/provider/custom"
|
|
|
|
|
"github.com/TwinProduction/gatus/core"
|
|
|
|
|
)
|
|
|
|
|
|
2020-09-24 19:54:15 -04:00
|
|
|
type AlertProvider interface {
|
|
|
|
|
IsValid() bool
|
2020-09-26 14:23:43 -04:00
|
|
|
ToCustomAlertProvider(service *core.Service, alert *core.Alert, result *core.Result, resolved bool) *custom.AlertProvider
|
2020-09-24 19:54:15 -04:00
|
|
|
}
|