Versions in this module Expand all Collapse all v0 v0.1.0 Dec 15, 2017 Changes in this version + func DeleteMeasure(m Measure) error + func Record(ctx context.Context, ms ...Measurement) + func RegisterExporter(e Exporter) + func RegisterView(v *View) error + func SetReportingPeriod(d time.Duration) + func UnregisterExporter(e Exporter) + func UnregisterView(v *View) error + type Aggregation interface + type AggregationData interface + type CountAggregation struct + type CountData int64 + type Cumulative struct + type DistributionAggregation []float64 + type DistributionData struct + Count int64 + CountPerBucket []int64 + Max float64 + Mean float64 + Min float64 + SumOfSquaredDev float64 + func (a *DistributionData) Sum() float64 + type Exporter interface + Export func(viewData *ViewData) + type Interval struct + Duration time.Duration + Intervals int + type MeanAggregation struct + type MeanData struct + Count float64 + Mean float64 + func (a *MeanData) Sum() float64 + type Measure interface + Description func() string + Name func() string + Unit func() string + func FindMeasure(name string) (m Measure) + type MeasureFloat64 struct + func NewMeasureFloat64(name, description, unit string) (*MeasureFloat64, error) + func (m *MeasureFloat64) Description() string + func (m *MeasureFloat64) M(v float64) Measurement + func (m *MeasureFloat64) Name() string + func (m *MeasureFloat64) Unit() string + type MeasureInt64 struct + func NewMeasureInt64(name, description, unit string) (*MeasureInt64, error) + func (m *MeasureInt64) Description() string + func (m *MeasureInt64) M(v int64) Measurement + func (m *MeasureInt64) Name() string + func (m *MeasureInt64) Unit() string + type Measurement interface + type Row struct + Data AggregationData + Tags []tag.Tag + func (r *Row) Equal(other *Row) bool + func (r *Row) String() string + type SumAggregation struct + type SumData float64 + type View struct + func FindView(name string) (v *View) + func NewView(name, description string, keys []tag.Key, measure Measure, agg Aggregation, ...) (*View, error) + func (v *View) Aggregation() Aggregation + func (v *View) Description() string + func (v *View) Measure() Measure + func (v *View) Name() string + func (v *View) RetrieveData() ([]*Row, error) + func (v *View) Subscribe() error + func (v *View) TagKeys() []tag.Key + func (v *View) Unsubscribe() error + func (v *View) Window() Window + type ViewData struct + End time.Time + Rows []*Row + Start time.Time + View *View + type Window interface