- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ObserveEvaluation (0.33 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics.go
func (m *CelMetrics) ObserveCompilation(elapsed time.Duration) { seconds := elapsed.Seconds() m.compilationTime.Observe(seconds) } // ObserveEvaluation records a CEL evaluation with the time the evaluation took. func (m *CelMetrics) ObserveEvaluation(elapsed time.Duration) { seconds := elapsed.Seconds() m.evaluationTime.Observe(seconds)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 09 23:50:48 UTC 2022 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/metrics/metrics_test.go
t.Errorf("unexpected count: %v", c) } if math.Abs(s-2.0) > 1e-7 { t.Fatalf("incorrect sum: %v", s) } } func TestObserveEvaluation(t *testing.T) { defer legacyregistry.Reset() Metrics.ObserveEvaluation(2 * time.Second) c, s := gatherHistogram(t, "apiserver_cel_evaluation_duration_seconds") if c != 1 { t.Errorf("unexpected count: %v", c) } if math.Abs(s-2.0) > 1e-7 { t.Fatalf("incorrect sum: %v", s) }
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/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0)