mirror of
https://github.com/prymitive/karma
synced 2026-05-19 04:26:41 +00:00
This feature solves the problem of sorting by label when values have special meaning and alphabetic sort doesn't make sense for it.
77 lines
1.2 KiB
Go
77 lines
1.2 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
|
|
}
|
|
Labels struct {
|
|
Keep []string
|
|
Strip []string
|
|
Color struct {
|
|
Custom map[string]map[string]string
|
|
Static []string
|
|
Unique []string
|
|
}
|
|
Sorting struct {
|
|
ValueMapping map[string]map[string]int `yaml:"valueMapping"`
|
|
}
|
|
}
|
|
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
|
|
}
|
|
}
|