From 4efabb7053c9e02c4cd1c0b687ba8b53e23ffa2b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 22 Jan 2026 09:53:32 +0200 Subject: add SU: (suppressed) count to status summary line Co-Authored-By: Claude Opus 4.5 --- internal/html.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/html.go') diff --git a/internal/html.go b/internal/html.go index 71f17e4..1a55aa3 100644 --- a/internal/html.go +++ b/internal/html.go @@ -79,7 +79,7 @@ func (s state) htmlReport(subject string, conf config) string { numSuppressed := s.countSuppressed(conf) // Write HTML header with summary - sb.WriteString(htmlHeader(subject, numCriticals, numWarnings, numUnknown, numStale, numOK)) + sb.WriteString(htmlHeader(subject, numCriticals, numWarnings, numUnknown, numStale, numSuppressed, numOK)) // Alerts with status changed section sb.WriteString(`
` + "\n") @@ -292,7 +292,8 @@ func (s state) countStale(conf config) int { } // htmlHeader generates the HTML document header with embedded CSS and status summary. -func htmlHeader(subject string, numCriticals, numWarnings, numUnknown, numStale, numOK int) string { +// The summary line format is: C:# W:# U:# S:# SU:# OK:# +func htmlHeader(subject string, numCriticals, numWarnings, numUnknown, numStale, numSuppressed, numOK int) string { var sb strings.Builder sb.WriteString(` @@ -341,7 +342,7 @@ func htmlHeader(subject string, numCriticals, numWarnings, numUnknown, numStale,

Gogios Status Report

C:`) - sb.WriteString(fmt.Sprintf("%d W:%d U:%d S:%d OK:%d", numCriticals, numWarnings, numUnknown, numStale, numOK)) + sb.WriteString(fmt.Sprintf("%d W:%d U:%d S:%d SU:%d OK:%d", numCriticals, numWarnings, numUnknown, numStale, numSuppressed, numOK)) sb.WriteString(`

Last Updated: `) sb.WriteString(time.Now().Format("2006-01-02 15:04:05 MST")) -- cgit v1.2.3