kubernetes/staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/metrics/metrics.go

type AuthorizerMetrics

type NoopAuthorizerMetrics

type RequestMetrics

type NoopRequestMetrics

func (NoopRequestMetrics) RecordRequestTotal(context.Context, string)            {}

func (NoopRequestMetrics) RecordRequestLatency(context.Context, string, float64) {}

type WebhookMetrics

type NoopWebhookMetrics

func (NoopWebhookMetrics) RecordWebhookEvaluation(ctx context.Context, name, result string) {}

func (NoopWebhookMetrics) RecordWebhookDuration(ctx context.Context, name, result string, duration float64) {}

func (NoopWebhookMetrics) RecordWebhookFailOpen(ctx context.Context, name, result string) {}

var registerWebhookMetrics

// RegisterMetrics registers authorizer metrics.
func RegisterWebhookMetrics() {}

func ResetMetricsForTest() {}

const namespace

const subsystem

var webhookEvaluations

var webhookDuration

var webhookFailOpen

type webhookMetrics

func NewWebhookMetrics() WebhookMetrics {}

func ResetWebhookMetricsForTest() {}

func (webhookMetrics) RecordWebhookEvaluation(ctx context.Context, name, result string) {}

func (webhookMetrics) RecordWebhookDuration(ctx context.Context, name, result string, duration float64) {}

func (webhookMetrics) RecordWebhookFailOpen(ctx context.Context, name, result string) {}