# Functions
DecIntBy increments an integer Datum by the provided value, at time ts, or panics if the Datum is not an IntDatum.
No description provided by the author
GetBucketCount returns the total count of observations in d, or panics if d is not a BucketsDatum.
GetBucketsCumByMax returns a map of cumulative bucket observations by their upper bonds, or panics if d is not a BucketsDatum.
GetBucketsSum returns the sum of observations in d, or panics if d is not a BucketsDatum.
GetFloat returns the floating-point value of a datum, or error.
GetInt returns the integer value of a datum, or error.
GetString returns the string of a datum, or error.
IncIntBy increments an integer Datum by the provided value, at time ts, or panics if the Datum is not an IntDatum.
MakeBuckets creates a new bucket datum with the provided list of ranges and timestamp.
MakeFloat creates a new floating-point datum with the provided value and timestamp.
MakeInt creates a new integer datum with the provided value and timestamp.
MakeString creates a new string datum with the provided value and timestamp.
NewBuckets creates a new zero buckets datum.
NewFloat creates a new zero floating-point datum.
NewInt creates a new zero integer datum.
NewString creates a new zero string datum.
Observe records an observation v at time ts in d, or panics if d is not a BucketsDatum.
SetFloat sets a floating-point Datum to the provided value and timestamp, or panics if the Datum is not a FloatDatum.
SetInt sets an integer datum to the provided value and timestamp, or panics if the Datum is not an IntDatum.
SetString sets a string Datum to the provided value and timestamp, or panics if the Datym is not a String Datum.
# Structs
BaseDatum is a struct used to record timestamps across all Datum implementations.
No description provided by the author
Buckets describes a floating point value at a given timestamp.
Float describes a floating point value at a given timestamp.
Int describes an integer value at a given timestamp.
No description provided by the author
String describes a string value at a given timestamp.
# Interfaces
Datum is an interface for metric datums, with a type, value and timestamp to be exported.