From a4c18fa7fc3e370a8cfbbafc66bbdf4d1d834713 Mon Sep 17 00:00:00 2001 From: Mike Spreitzer Date: Mon, 23 May 2022 16:11:05 -0400 Subject: [PATCH] Rename observer.go to interface.go --- .../metrics/{observer.go => interface.go} | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) rename staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/{observer.go => interface.go} (92%) diff --git a/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/observer.go b/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/interface.go similarity index 92% rename from staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/observer.go rename to staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/interface.go index 4b8dd98b209..aba79b5d77b 100644 --- a/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/observer.go +++ b/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/interface.go @@ -39,7 +39,6 @@ type RatioedGauge interface { // RatioedGaugeVec creates related observers that are // differentiated by a series of label values type RatioedGaugeVec interface { - // NewForLabelValuesSafe makes a new vector member for the given tuple of label values, // initialized with the given numerator and denominator. // Unlike the usual Vec WithLabelValues method, this is intended to be called only @@ -50,12 +49,11 @@ type RatioedGaugeVec interface { } //////////////////////////////// Pairs //////////////////////////////// - -/* API Priority and Fairness tends to use RatioedGaugeVec members in pairs, - * one for requests waiting in a queue and one for requests being executed. - * The following definitions are a convenience layer that adds support for that - * particular pattern of usage. - */ +// +// API Priority and Fairness tends to use RatioedGaugeVec members in pairs, +// one for requests waiting in a queue and one for requests being executed. +// The following definitions are a convenience layer that adds support for that +// particular pattern of usage. // RatioedGaugePair is a corresponding pair of gauges, one for the // number of requests waiting in queue(s) and one for the number of @@ -70,7 +68,6 @@ type RatioedGaugePair struct { // RatioedGaugePairVec generates pairs type RatioedGaugePairVec interface { - // NewForLabelValuesSafe makes a new vector member for the given tuple of label values, // initialized with the given denominators and zeros for numerators. // Unlike the usual Vec WithLabelValues method, this is intended to be called only