Documentation ¶
Index ¶
- Variables
- type ValidatingAdmissionPolicyMetrics
- func (m *ValidatingAdmissionPolicyMetrics) ObserveAdmissionWithError(ctx context.Context, elapsed time.Duration, policy, binding, state string)
- func (m *ValidatingAdmissionPolicyMetrics) ObserveAudit(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) ObserveWarn(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) ObserveAudit ¶ added in v0.27.0
func (m *ValidatingAdmissionPolicyMetrics) ObserveAudit(ctx context.Context, elapsed time.Duration, policy, binding, state string)
ObserveAudit observes a policy validation audit annotation was published for a validation failure.
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) ObserveWarn ¶ added in v0.27.0
func (m *ValidatingAdmissionPolicyMetrics) ObserveWarn(ctx context.Context, elapsed time.Duration, policy, binding, state string)
ObserveWarn observes a policy validation warning was published for a validation failure.
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.