actually resolve the computations for buckets for static analysis

Change-Id: Icafe84e165cc14087a2811f9a3e5d5e69ef3f178
This commit is contained in:
Han Kang 2022-10-13 13:44:51 -07:00
parent 215f236a6b
commit a07718258a

View File

@ -49,19 +49,19 @@ var clientCertificateExpirationHistogram = metrics.NewHistogram(
Help: "Distribution of the remaining lifetime on the certificate used to authenticate a request.", Help: "Distribution of the remaining lifetime on the certificate used to authenticate a request.",
Buckets: []float64{ Buckets: []float64{
0, 0,
(30 * time.Minute).Seconds(), 1800, // 30 minutes
(1 * time.Hour).Seconds(), 3600, // 1 hour
(2 * time.Hour).Seconds(), 7200, // 2 hours
(6 * time.Hour).Seconds(), 21600, // 6 hours
(12 * time.Hour).Seconds(), 43200, // 12 hours
(24 * time.Hour).Seconds(), 86400, // 1 day
(2 * 24 * time.Hour).Seconds(), 172800, // 2 days
(4 * 24 * time.Hour).Seconds(), 345600, // 4 days
(7 * 24 * time.Hour).Seconds(), 604800, // 1 week
(30 * 24 * time.Hour).Seconds(), 2592000, // 1 month
(3 * 30 * 24 * time.Hour).Seconds(), 7776000, // 3 months
(6 * 30 * 24 * time.Hour).Seconds(), 15552000, // 6 months
(12 * 30 * 24 * time.Hour).Seconds(), 31104000, // 1 year
}, },
StabilityLevel: metrics.ALPHA, StabilityLevel: metrics.ALPHA,
}, },