Continue working on #2: Slack alerts
This commit is contained in:
14
core/alert.go
Normal file
14
core/alert.go
Normal file
@ -0,0 +1,14 @@
|
||||
package core
|
||||
|
||||
type Alert struct {
|
||||
Type AlertType `yaml:"type"`
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Threshold int `yaml:"threshold"`
|
||||
Description string `yaml:"description"`
|
||||
}
|
||||
|
||||
type AlertType string
|
||||
|
||||
const (
|
||||
SlackAlert AlertType = "slack"
|
||||
)
|
5
core/alerting.go
Normal file
5
core/alerting.go
Normal file
@ -0,0 +1,5 @@
|
||||
package core
|
||||
|
||||
type Alerting struct {
|
||||
Slack string `yaml:"slack"`
|
||||
}
|
Reference in New Issue
Block a user