metrics: extract boolGauge to simplify RecordInventory (issue #9) #11

Open
hermes-automation wants to merge 1 commits from wt/t_f1593f8c into main

1 Commits

Author SHA1 Message Date
Hermes Agent
0143d47246 metrics: extract boolGauge to simplify RecordInventory
Resolves the SonarQube go:S3776 cognitive-complexity finding on
RecordInventory by replacing the pvc.Healthy if/else with a boolGauge
helper. Adds tests locking the pvc_backup_health gauge to exactly 1 for
healthy and 0 for unhealthy with unchanged metric identity and labels.

Closes #9

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 20:05:43 +00:00