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 ¶
func (m *ValidatingAdmissionPolicyMetrics) Reset()
Reset resets all validation admission-related Prometheus metrics.
Click to show internal directories.
Click to hide internal directories.