Versions in this module Expand all Collapse all v0 v0.3.0 Feb 12, 2018 Changes in this version + func Register(v *View) error + func RegisterExporter(e Exporter) + func SetReportingPeriod(d time.Duration) + func Unregister(v *View) error + func UnregisterExporter(e Exporter) + type Aggregation interface + type AggregationData interface + type CountAggregation struct + type CountData int64 + type Data struct + End time.Time + Rows []*Row + Start time.Time + View *View + 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 + ExportView func(viewData *Data) + type MeanAggregation struct + type MeanData struct + Count float64 + Mean float64 + func (a *MeanData) Sum() float64 + 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 Find(name string) (v *View) + func New(name, description string, keys []tag.Key, measure stats.Measure, ...) (*View, error) + func (v *View) Aggregation() Aggregation + func (v *View) Description() string + func (v *View) Measure() stats.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