Work on common provider interface to make adding new providers easier

This commit is contained in:
TwinProduction committed 2020-09-26 14:23:43 -04:00
1 parent 7dcd462883
commit ac5ad9d173
7 files changed
+63 -73

No files matched your search

+6
View File
@@ -1,5 +1,11 @@
package provider
import (
"github.com/TwinProduction/gatus/alerting/provider/custom"
"github.com/TwinProduction/gatus/core"
)
type AlertProvider interface {
IsValid() bool
ToCustomAlertProvider(service *core.Service, alert *core.Alert, result *core.Result, resolved bool) *custom.AlertProvider
}