package
0.11.3
Repository: https://github.com/google/cloudprober.git
Documentation: pkg.go.dev

# Packages

Package payload provides utilities to work with the metrics in payload.
No description provided by the author
Package testutils provides utilities for tests.

# Functions

IsString checks if the given value is a string.
NewAtomicInt returns a new AtomicInt.
NewDistribution returns a new distribution container.
NewDistributionFromProto returns a new distribution based on the provided protobuf.
NewEventMetrics return a new EventMetrics object with internals maps initialized.
NewExponentialDistribution returns a distribution container with exponentially growing bucket sizes.
NewFloat returns a new Float.
NewInt returns a new Int.
NewMap returns a new Map.
NewString returns a new String with the given string value.
ParseDistFromString parses a distribution value from a string that's in a format that's generated by the String() method: Example string: dist:sum:899|count:221|lb:-Inf,0.5,2,7.5|bc:34,54,121,12.
ParseMapFromString parses a map value string into a map object.
ParseValueFromString parses a value from its string representation.

# Constants

CUMULATIVE metrics accumulate with time and are usually used to represent counters, e.g.
GAUGE metrics are used to represent values at a certain point of time, e.g.

# Structs

AtomicInt implements NumValue with int64 storage and atomic operations.
Distribution metrics type implements a histogram of values distributed over a set of pre-defined buckets.
DistributionData stuct, along with Data() function, provides a way to readily share the Distribution data with other packages.
EventMetrics respresents metrics associated with a particular time event.
Float implements NumValue with float64 storage.
Int implements NumValue with int64 storage.
Map implements a key-value store where keys are of type string and values are of type NumValue.
String implements a value type with string storage.

# Interfaces

NumValue represents any numerical metric value, e.g.
Value represents any metric value.

# Type aliases

Kind represents EventMetrics type.