feat(ui): Implement endpoints[].ui.hide-conditions

This commit is contained in:
TwiN committed 2024-04-18 21:08:43 -04:00
1 parent 7efe7429dd
commit e0ab35e86a
5 files changed
+80

No files matched your search

+4
View File
@@ -4,6 +4,9 @@ import "errors"
// Config is the UI configuration for core.Endpoint
type Config struct {
// HideConditions whether to hide the condition results on the UI
HideConditions bool `yaml:"hide-conditions"`
// HideHostname whether to hide the hostname in the Result
HideHostname bool `yaml:"hide-hostname"`
@@ -52,6 +55,7 @@ func GetDefaultConfig() *Config {
HideHostname: false,
HideURL: false,
DontResolveFailedConditions: false,
HideConditions: false,
Badge: &Badge{
ResponseTime: &ResponseTime{
Thresholds: []int{50, 200, 300, 500, 750},