Provisioning: Add metrics for repo controller (#111450)

This commit is contained in:
Stephanie Hingtgen
2025-09-22 20:14:03 +00:00
committed by GitHub
parent a2d09490ae
commit 8b1caccc72
17 changed files with 187 additions and 66 deletions
@@ -0,0 +1,25 @@
package utils
const (
SuccessOutcome = "success"
ErrorOutcome = "error"
)
func GetResourceCountBucket(count int) string {
switch {
case count == 0:
return "0"
case count <= 10:
return "1-10"
case count <= 50:
return "11-50"
case count <= 100:
return "51-100"
case count <= 500:
return "101-500"
case count <= 1000:
return "501-1000"
default:
return "1000+"
}
}