cel

package
v0.26.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Metrics provides access to validation admission metrics.
	Metrics = newValidationAdmissionMetrics()
)

Functions

This section is empty.

Types

type ValidatingAdmissionPolicyMetrics

type ValidatingAdmissionPolicyMetrics struct {
	// contains filtered or unexported fields
}

ValidatingAdmissionPolicyMetrics aggregates Prometheus metrics related to validation admission control.

func (*ValidatingAdmissionPolicyMetrics) ObserveCheck

func (m *ValidatingAdmissionPolicyMetrics) ObserveCheck(ctx context.Context, elapsed time.Duration, policy, binding, expression, enforcementAction, params, state string)

ObserveCheck observes a policy validation check.

func (*ValidatingAdmissionPolicyMetrics) ObserveDefinition

func (m *ValidatingAdmissionPolicyMetrics) ObserveDefinition(ctx context.Context, state, enforcementAction string)

ObserveDefinition observes a policy definition.

func (*ValidatingAdmissionPolicyMetrics) Reset

Reset resets all validation admission-related Prometheus metrics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL