Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-05-26 10:12:37 -07:00
parent e6f988834d
commit e040851a4c
20 changed files with 219 additions and 1 deletions

View File

@@ -44,9 +44,11 @@ func (c funcCheck) Run(ctx context.Context) Result {
if r.CheckKey == "" {
r.CheckKey = c.key
}
if r.ObservedAt.IsZero() {
r.ObservedAt = time.Now().UTC()
}
return r
}
@@ -71,6 +73,7 @@ func truncate(s string, n int) string {
if len(s) <= n {
return s
}
return s[:n] + "…"
}