Documentation ¶
Index ¶
- Variables
- type ValidatingAdmissionPolicyMetrics
- func (m *ValidatingAdmissionPolicyMetrics) ObserveAdmissionWithError(ctx context.Context, elapsed time.Duration, policy, binding, state string)
- func (m *ValidatingAdmissionPolicyMetrics) ObserveDefinition(ctx context.Context, state, enforcementAction string)
- func (m *ValidatingAdmissionPolicyMetrics) ObserveRejection(ctx context.Context, elapsed time.Duration, policy, binding, state string)
- func (m *ValidatingAdmissionPolicyMetrics) Reset()
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 ¶
func (m *ValidatingAdmissionPolicyMetrics) Reset()
Reset resets all validation admission-related Prometheus metrics.
Click to show internal directories.
Click to hide internal directories.