kubernetes/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/metrics.go

var latencyBuckets

type converterMetricFactory

func newConverterMetricFactory() *converterMetricFactory {}

var _

type converterMetric

func (c *converterMetricFactory) addMetrics(crdName string, converter crConverterInterface) (crConverterInterface, error) {}

func (m *converterMetric) Convert(in runtime.Object, targetGV schema.GroupVersion) (runtime.Object, error) {}

type ConversionWebhookErrorType

const ConversionWebhookCallFailure

const ConversionWebhookMalformedResponseFailure

const ConversionWebhookPartialResponseFailure

const ConversionWebhookInvalidConvertedObjectFailure

const ConversionWebhookNoObjectsReturnedFailure

var Metrics

var namespace

type ConversionWebhookMetrics

func newConversionWebhookMetrics() *ConversionWebhookMetrics {}

// Observe successful request
func (m *ConversionWebhookMetrics) ObserveConversionWebhookSuccess(ctx context.Context, elapsed time.Duration) {}

// Observe failure with failure type
func (m *ConversionWebhookMetrics) ObserveConversionWebhookFailure(ctx context.Context, elapsed time.Duration, errorType ConversionWebhookErrorType) {}

// Observe latency
func (m *ConversionWebhookMetrics) observe(ctx context.Context, elapsed time.Duration, result string, errorType ConversionWebhookErrorType) {}