- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetSampleCount (0.1 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics_test.go
if err != nil { t.Fatalf("Failed to gather metrics: %s", err) } for _, mf := range metrics { if mf.GetName() == name { for _, m := range mf.GetMetric() { h := m.GetHistogram() count += h.GetSampleCount() sum += h.GetSampleSum() } return } } t.Fatalf("metric not found: %v", name) return 0, 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go
continue // Ignore other metrics. } for _, metric := range mf.GetMetric() { if !testutil.LabelsMatch(metric, labelFilter) { continue } counterSum += int(metric.GetHistogram().GetSampleCount()) } } if wantCount != counterSum { t.Errorf("Wanted count %d, got %d for metric %s with labels %#+v", wantCount, counterSum, name, labelFilter) for _, mf := range metrics { if mf.GetName() == name {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 24 04:26:43 UTC 2020 - 3.4K bytes - Viewed (0)