const metricsNamespace …
const metricsSubsystem …
type ValidationErrorType …
const ValidationCompileError …
const ValidatingInvalidError …
const ValidatingOutOfBudget …
const ValidationNoError …
var Metrics …
type ValidatingAdmissionPolicyMetrics …
func newValidationAdmissionMetrics() *ValidatingAdmissionPolicyMetrics { … }
func (m *ValidatingAdmissionPolicyMetrics) Reset() { … }
func (m *ValidatingAdmissionPolicyMetrics) ObserveAdmission(ctx context.Context, elapsed time.Duration, policy, binding string, errorType ValidationErrorType) { … }
func (m *ValidatingAdmissionPolicyMetrics) ObserveRejection(ctx context.Context, elapsed time.Duration, policy, binding string, errorType ValidationErrorType) { … }
func (m *ValidatingAdmissionPolicyMetrics) ObserveAudit(ctx context.Context, elapsed time.Duration, policy, binding string, errorType ValidationErrorType) { … }
func (m *ValidatingAdmissionPolicyMetrics) ObserveWarn(ctx context.Context, elapsed time.Duration, policy, binding string, errorType ValidationErrorType) { … }