Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( M3CounterValue = []byte("counter") M3GaugeValue = []byte("gauge") M3TimerValue = []byte("timer") M3MetricsPrefix = []byte("__m3") M3MetricsPrefixString = string(M3MetricsPrefix) M3TypeTag = []byte(M3MetricsPrefixString + "_type__") M3MetricsGraphiteAggregation = []byte(M3MetricsPrefixString + "_graphite_aggregation__") M3MetricsGraphitePrefix = []byte(M3MetricsPrefixString + "_graphite_prefix__") )
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type is a metric type.
func MustParseType ¶
MustParseType parses a type string and panics if the input in invalid.
func (*Type) FromProto ¶
func (t *Type) FromProto(pb metricpb.MetricType) error
FromProto converts the protobuf message to a metric type.
func (Type) ToProto ¶
func (t Type) ToProto(pb *metricpb.MetricType) error
ToProto converts the metric type to a protobuf message in place.
func (*Type) UnmarshalYAML ¶
UnmarshalYAML unmarshals YAML object into a metric type.
Click to show internal directories.
Click to hide internal directories.