A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/go-kit/kit@v0.13.0/metrics/generic below:

generic package - github.com/go-kit/kit/metrics/generic - Go Packages

Package generic implements generic versions of each of the metric types. They can be embedded by other implementations, and converted to specific formats as necessary.

This section is empty.

This section is empty.

This section is empty.

type Bucket struct {
	From, To, Count int64
}

Bucket is a range in a histogram which aggregates observations.

type Counter struct {
	Name string
	
}

Counter is an in-memory implementation of a Counter.

NewCounter returns a new, usable Counter.

LabelValues returns the set of label values attached to the counter.

Value returns the current value of the counter.

ValueReset returns the current value of the counter, and resets it to zero. This is useful for metrics backends whose counter aggregations expect deltas, like Graphite.

type Gauge struct {
	Name string
	
}

Gauge is an in-memory implementation of a Gauge.

NewGauge returns a new, usable Gauge.

Add implements metrics.Gauge.

LabelValues returns the set of label values attached to the gauge.

Value returns the current value of the gauge.

type Histogram struct {
	Name string
	
}

Histogram is an in-memory implementation of a streaming histogram, based on VividCortex/gohistogram. It dynamically computes quantiles, so it's not suitable for aggregation.

NewHistogram returns a numeric histogram based on VividCortex/gohistogram. A good default value for buckets is 50.

LabelValues returns the set of label values attached to the histogram.

Observe implements Histogram.

Print writes a string representation of the histogram to the passed writer. Useful for printing to a terminal.

Quantile returns the value of the quantile q, 0.0 < q < 1.0.

With implements Histogram.

type Quantile struct {
	Quantile int 
	Value    int64
}

Quantile is a pair of a quantile (0..100) and its observed maximum value.

type SimpleHistogram struct {
	
}

SimpleHistogram is an in-memory implementation of a Histogram. It only tracks an approximate moving average, so is likely too naïve for many use cases.

NewSimpleHistogram returns a SimpleHistogram, ready for observations.

ApproximateMovingAverage returns the approximate moving average of observations.

LabelValues returns the set of label values attached to the histogram.

Observe implements Histogram.

With implements Histogram.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4