Files
.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
event.go
event_test.go
health_status.go
result.go
result_test.go
service.go
service_status.go
service_status_test.go
service_test.go
uptime.go
docs
examples
jsonpath
metric
pattern
security
storage
util
vendor
watchdog
web
.dockerignore
.gitattributes
.gitignore
Dockerfile
LICENSE.md
Makefile
README.md
config.yaml
go.mod
go.sum
main.go
gatus/core/ui/ui.go

18 lines
555 B
Go

package ui
// Config is the UI configuration for services
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,
}
}