Versions in this module Expand all Collapse all v0 v0.5.0 May 16, 2023 Changes in this version + func Populate(metricMap map[label.RuneList]Metric, metricKind mon.MetricKind, ...) + func StampEpoch(stamp string) int64 + type Histogram struct + BucketHits []uint64 + SampleCount uint64 + func (_ *Histogram) IsReadOnly() bool + func (hv *Histogram) AsReadOnly() Metric + func (hv *Histogram) Copy(samplePeriod time.Duration) Metric + func (hv *Histogram) Export(metricKind mon.MetricKind, valueType mon.ValueType, ls *label.Set, ...) dto.Metric + type Metric interface + AsReadOnly func() Metric + Copy func(time.Duration) Metric + Export func(metricKind mon.MetricKind, valueType mon.ValueType, ls *label.Set, ...) dto.Metric + Float func() float64 + GcpEpoch func() int64 + IsReadOnly func() bool + type RwHistogram struct + func (_ *RwHistogram) IsReadOnly() bool + func (hv *RwHistogram) AddFloat(f float64) + func (hv *RwHistogram) Convert(subBuckets []int, dv *sd.Distribution) float64 + func (hv *RwHistogram) SetEpoch(e int64) + type RwMetric interface + AddFloat func(float64) + SetEpoch func(int64) + type RwSimple struct + func (_ *RwSimple) IsReadOnly() bool + func (sv *RwSimple) AddFloat(f float64) + func (sv *RwSimple) SetEpoch(e int64) + type Simple struct + func (_ *Simple) IsReadOnly() bool + func (sv *Simple) AsReadOnly() Metric + func (sv *Simple) Copy(samplePeriod time.Duration) Metric + func (sv *Simple) Export(metricKind mon.MetricKind, valueType mon.ValueType, ls *label.Set, ...) (m dto.Metric) + func (sv *Simple) Float() float64 + func (sv *Simple) GcpEpoch() int64 + func (sv *Simple) PromEpoch() int64 + type Writer struct + Metric dto.Metric + PDesc *prom.Desc + func (mw Writer) Desc() *prom.Desc + func (mw Writer) Write(out *dto.Metric) error