Files
karma/internal/config/models.go
Łukasz Mierzwa 058d10f4ba chore(config): move value mapping options to grid:sorting section
Those options are only valid for sorting, so move it to the new config section where all sort options live
2019-02-21 18:15:11 +00:00

84 lines
1.3 KiB
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
InsecureSkipVerify bool `yaml:"insecureSkipVerify"`
}
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
}
Grid struct {
Sorting struct {
Order string
Reverse bool
Label string
CustomValues struct {
Labels map[string]map[string]int
} `yaml:"customValues"`
}
}
Labels struct {
Keep []string
Strip []string
Color struct {
Custom map[string]map[string]string
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
}
}