utils

package
v1.8.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bucketize added in v1.3.1

func Bucketize(value uint, buckets []uint) string

Bucketize will put the value of a metric into the correct bucket, and return the label for it. It is expected that the buckets are already sorted in increasing order and non-empty.

func LinearBuckets added in v1.4.1

func LinearBuckets(minValue, maxValue float64, count int) []float64

LinearBuckets returns an evenly distributed range of buckets in the closed interval [min...max]. The min and max count toward the bucket count since they are included in the range.

Types

This section is empty.

Directories

Path Synopsis
Package apimethod provides a type for the API grpc method names.
Package apimethod provides a type for the API grpc method names.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL