1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-15 09:10:07 +00:00

feat(conditions,ui): Add endpoints[].ui.resolve-successful-conditions (#1486)

feat(ui&endpoints): add bolean option for show resolve-successful-conditions
This commit is contained in:
Lorenzo Pereira Piccoli Xavier
2026-01-12 00:36:23 -03:00
committed by GitHub
parent 1095deb3c6
commit 7bb959e072
7 changed files with 68 additions and 23 deletions

View File

@@ -22,6 +22,9 @@ type Config struct {
// DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI
DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"`
// ResolveSuccessfulConditions whether to resolve successful conditions in the Result for display in the UI
ResolveSuccessfulConditions bool `yaml:"resolve-successful-conditions"`
// Badge is the configuration for the badges generated
Badge *Badge `yaml:"badge"`
}
@@ -63,6 +66,7 @@ func GetDefaultConfig() *Config {
HidePort: false,
HideErrors: false,
DontResolveFailedConditions: false,
ResolveSuccessfulConditions: false,
HideConditions: false,
Badge: &Badge{
ResponseTime: &ResponseTime{