mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-29 11:25:08 +01:00
16 lines
516 B
Go
16 lines
516 B
Go
package provider
|
|
|
|
import (
|
|
"github.com/TwinProduction/gatus/alerting/provider/custom"
|
|
"github.com/TwinProduction/gatus/core"
|
|
)
|
|
|
|
// AlertProvider is the interface that each providers should implement
|
|
type AlertProvider interface {
|
|
// IsValid returns whether the provider's configuration is valid
|
|
IsValid() bool
|
|
|
|
// ToCustomAlertProvider converts the provider into a custom.AlertProvider
|
|
ToCustomAlertProvider(service *core.Service, alert *core.Alert, result *core.Result, resolved bool) *custom.AlertProvider
|
|
}
|