# Functions
ConvertProtoStatObject converts between a proto and struct StatObject.
ConvertProtoStatValue converts between a proto and struct StatValue.
ConvertStructStatObject converts between a struct and proto StatObject.
ConvertStructStatValue converts between a struct and proto StatValue.
CopyMapStringAttribute copies a map of string to Attribute.
NewBoolAttribute returns a new boolean attribute.
NewFloatAttribute returns a new float attribute.
NewIntergerAttribute returns a new integer attribute.
NewStringAttribute returns a new string attribute.
ParseAttribute takes a string and parses it into an attribute, pulling out units if they are specified as a suffix on a number.
ReattachConfigFromGoPlugin converts a go plugin ReattachConfig into a ReattachConfig wrapper struct.
ReattachConfigToGoPlugin converts a ReattachConfig wrapper struct into a go plugin ReattachConfig struct.
# Constants
Decimal SI Byte Units.
Decimal SI Byte Rates.
Binary SI Byte Units.
Binary SI Byte Rates.
Hertz units.
Watts units.
# Variables
UnitIndex is a map of unit name to unit.
# Structs
Attribute is used to describe the value of an attribute, optionally specifying units.
ReattachConfig is a wrapper around plugin.ReattachConfig to better support serialization.
StatObject is a collection of statistics either exposed at the top level or via nested StatObjects.
StatValue exposes the values of a particular statistic.
Unit describes a unit and its multiplier over the base unit type.
# Type aliases
BaseUnit is a unique base unit.