Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert interface { Notify(string) error GetDescription() string GetOptions() map[string]string }
Alert the alert interface
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command alert file struct
func NewAlertCommand ¶
NewAlertCommand creates a new script alert instance
func (*Command) GetDescription ¶
GetDescription returns a description for this alert
func (*Command) GetOptions ¶
GetOptions returns this alert options
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
Email alert file struct
func NewAlertEmail ¶
NewAlertEmail creates a new file alert instance
func (*Email) GetDescription ¶
GetDescription returns a description for this alert
func (*Email) GetOptions ¶
GetOptions returns this alert options
type File ¶
type File struct {
// contains filtered or unexported fields
}
File alert file struct
func NewAlertFile ¶
NewAlertFile creates a new file alert instance
func (*File) GetDescription ¶
GetDescription returns a description for this alert
func (*File) GetOptions ¶
GetOptions returns this alert options
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
Script alert file struct
func NewAlertScript ¶
NewAlertScript creates a new script alert instance
func (*Script) GetDescription ¶
GetDescription returns a description for this alert
func (*Script) GetOptions ¶
GetOptions returns this alert options
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook alert file struct
func NewAlertWebhook ¶
NewAlertWebhook creates a new file alert instance
func (*Webhook) GetDescription ¶
GetDescription returns a description for this alert
func (*Webhook) GetOptions ¶
GetOptions returns this alert options