package
1.4.2
Repository: https://github.com/vulcand/oxy.git
Documentation: pkg.go.dev

# Functions

NewCounter creates a counter with fixed amount of buckets that are rotated every resolution period.
NewHDRHistogram creates a new HDRHistogram.
NewRatioCounter creates a new RatioCounter.
NewRollingHDRHistogram created a new RollingHDRHistogram.
NewRTMetrics returns new instance of metrics collector.
RTCounter set a builder function for Counter.
RTHistogram set a builder function for RollingHistogram.
SplitFloat64 provides simple anomaly detection for skewed data sets with no particular distribution.
SplitLatencies provides simple anomaly detection for requests latencies.
SplitRatios provides simple anomaly detection for ratio values, that are all in the range [0, 1] it splits values into good or bad category based on the threshold and the median value.

# Structs

HDRHistogram is a tiny wrapper around github.com/HdrHistogram/hdrhistogram-go that provides convenience functions for measuring http latencies.
RatioCounter calculates a ratio of a/a+b over a rolling window of predefined buckets.
RollingCounter Calculates in memory failure rate of an endpoint using rolling window of a predefined size.
RollingHDRHistogram holds multiple histograms and rotates every period.
RTMetrics provides aggregated performance metrics for HTTP requests processing such as round trip latency, response codes counters network error and total requests.
TestMeter a test meter.

# Type aliases

NewCounterFn builder function type.
NewRollingHistogramFn builder function type.
NewRTMetricsFn builder function type.