package metrics
import "k8s.io/apiserver/pkg/cel/metrics"
Index ¶
Variables ¶
var Metrics = newCelMetrics()
Metrics provides access to CEL metrics.
Types ¶
type CelMetrics ¶
type CelMetrics struct {
// contains filtered or unexported fields
}
func (*CelMetrics) ObserveCompilation ¶
func (m *CelMetrics) ObserveCompilation(elapsed time.Duration)
ObserveCompilation records a CEL compilation with the time the compilation took.
func (*CelMetrics) ObserveEvaluation ¶
func (m *CelMetrics) ObserveEvaluation(elapsed time.Duration)
ObserveEvaluation records a CEL evaluation with the time the evaluation took.
Source Files ¶
metrics.go
- Version
- v0.26.1
- Published
- Jan 19, 2023
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.