From 798c4248ffc0bdbd2188c5aa7cab247eef538ed6 Mon Sep 17 00:00:00 2001 From: TwiN Date: Wed, 10 Aug 2022 21:09:22 -0400 Subject: [PATCH] refactor(badge): Fix formatting --- core/ui/ui.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/ui/ui.go b/core/ui/ui.go index f481a586..c30de942 100644 --- a/core/ui/ui.go +++ b/core/ui/ui.go @@ -6,10 +6,13 @@ import "errors" type Config struct { // HideHostname whether to hide the hostname in the Result HideHostname bool `yaml:"hide-hostname"` + // HideURL whether to ensure the URL is not displayed in the results. Useful if the URL contains a token. HideURL bool `yaml:"hide-url"` + // DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI - DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"` + DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"` + // Badge is the configuration for the badges generated Badge *Badge `yaml:"badge"` } @@ -17,6 +20,7 @@ type Config struct { type Badge struct { ResponseTime *ResponseTime `yaml:"response-time"` } + type ResponseTime struct { Thresholds []int `yaml:"thresholds"` }