cel

package
v0.26.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 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) ObserveAdmissionWithError

func (m *ValidatingAdmissionPolicyMetrics) ObserveAdmissionWithError(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveAdmissionWithError observes a policy validation error that was ignored due to failure policy.

func (*ValidatingAdmissionPolicyMetrics) ObserveDefinition

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

ObserveDefinition observes a policy definition.

func (*ValidatingAdmissionPolicyMetrics) ObserveRejection

func (m *ValidatingAdmissionPolicyMetrics) ObserveRejection(ctx context.Context, elapsed time.Duration, policy, binding, state string)

ObserveRejection observes a policy validation error that was at least one of the reasons for a deny.

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