.examples
.github
alerting
client
config
controller
core
ui
ui.go
condition.go
condition_bench_test.go
condition_result.go
condition_test.go
dns.go
dns_test.go
endpoint.go
endpoint_status.go
endpoint_status_test.go
endpoint_test.go
event.go
event_test.go
health_status.go
result.go
result_test.go
uptime.go
docs
jsonpath
metric
pattern
security
storage
test
util
vendor
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE
Makefile
README.md
config.yaml
go.mod
go.sum
main.go
18 lines
560 B
Go
18 lines
560 B
Go
package ui
|
|
|
|
// Config is the UI configuration for core.Endpoint
|
|
type Config struct {
|
|
// HideHostname whether to hide the hostname in the Result
|
|
HideHostname bool `yaml:"hide-hostname"`
|
|
// DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI
|
|
DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"`
|
|
}
|
|
|
|
// GetDefaultConfig retrieves the default UI configuration
|
|
func GetDefaultConfig() *Config {
|
|
return &Config{
|
|
HideHostname: false,
|
|
DontResolveFailedConditions: false,
|
|
}
|
|
}
|