Files
karma/internal/config/models.go
Richard Maynard ec14be0288 feat(backend): add support for custom headers (#368)
This will allow the AlertManager upstreams to be sent user defined HTTP headers.
2019-01-17 08:53:33 +00:00

72 lines
992 B
Go

package config
import "time"
type alertmanagerConfig struct {
Name string
URI string
Timeout time.Duration
Proxy bool
TLS struct {
CA string
Cert string
Key string
}
Headers map[string]string
}
type jiraRule struct {
Regex string
URI string
}
type configSchema struct {
Alertmanager struct {
Interval time.Duration
Servers []alertmanagerConfig
}
Annotations struct {
Default struct {
Hidden bool
}
Hidden []string
Visible []string
Keep []string
Strip []string
}
Custom struct {
CSS string
JS string
}
Debug bool
Filters struct {
Default []string
}
Labels struct {
Keep []string
Strip []string
Color struct {
Static []string
Unique []string
}
}
Listen struct {
Address string
Port int
Prefix string
}
Log struct {
Config bool
Level string
}
JIRA []jiraRule
Receivers struct {
Keep []string
Strip []string
}
Sentry struct {
Private string
Public string
}
}