Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewRequest ¶
MustNewRequest creates a new http get request or panics if it can't
func MustParseURL ¶ added in v1.4.0
MustParseURL parses a URL or panics if it can't
Types ¶
type CollectingCounter ¶ added in v1.6.0
CollectingCounter is a metrics.Counter implementation that enables access to the CounterValue and LastLabelValues.
func (*CollectingCounter) Add ¶ added in v1.6.0
func (c *CollectingCounter) Add(delta float64)
Add is there to satisfy the metrics.Counter interface.
type CollectingGauge ¶ added in v1.6.0
CollectingGauge is a metrics.Gauge implementation that enables access to the GaugeValue and LastLabelValues.
func (*CollectingGauge) Add ¶ added in v1.6.0
func (g *CollectingGauge) Add(delta float64)
Add is there to satisfy the metrics.Gauge interface.
func (*CollectingGauge) Set ¶ added in v1.6.0
func (g *CollectingGauge) Set(value float64)
Set is there to satisfy the metrics.Gauge interface.
type CollectingHealthCheckMetrics ¶ added in v1.6.0
type CollectingHealthCheckMetrics struct {
Gauge *CollectingGauge
}
CollectingHealthCheckMetrics can be used for testing the Metrics instrumentation of the HealthCheck package.
func NewCollectingHealthCheckMetrics ¶ added in v1.6.0
func NewCollectingHealthCheckMetrics() *CollectingHealthCheckMetrics
NewCollectingHealthCheckMetrics creates a new CollectingHealthCheckMetrics instance.
func (*CollectingHealthCheckMetrics) BackendServerUpGauge ¶ added in v1.6.0
func (m *CollectingHealthCheckMetrics) BackendServerUpGauge() metrics.Gauge
BackendServerUpGauge is there to satisfy the healthcheck.metricsRegistry interface.