gatus/alerting/provider/provider.go

12 lines
302 B
Go
Raw Normal View History

2020-09-25 01:54:15 +02:00
package provider
import (
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
)
2020-09-25 01:54:15 +02:00
type AlertProvider interface {
IsValid() bool
ToCustomAlertProvider(service *core.Service, alert *core.Alert, result *core.Result, resolved bool) *custom.AlertProvider
2020-09-25 01:54:15 +02:00
}