28 lines
588 B
Go
28 lines
588 B
Go
package integrations
|
|
|
|
type ContactPointMessageType string
|
|
|
|
const (
|
|
ContactPointEventAlertTriggered = "alert_triggered"
|
|
ContactPointEventTest = "test"
|
|
)
|
|
|
|
type ContactPointEvent struct {
|
|
Type ContactPointMessageType
|
|
|
|
AlertTriggeredEvent *ContactPointAlertTriggeredEvent
|
|
}
|
|
|
|
type ContactPointAlertTriggeredEvent struct {
|
|
AlertId int64
|
|
AlertName string
|
|
AlertValue string
|
|
SensorName string
|
|
CustomMessage string
|
|
}
|
|
|
|
type ContactPointIntegration interface {
|
|
ProcessEvent(evt *ContactPointEvent, rawConfig string) error
|
|
ValidateConfig(rawConfig string) error
|
|
}
|