Versions in this module Expand all Collapse all v0 v0.10.1 Jan 13, 2019 v0.10.0 Dec 13, 2018 Changes in this version + const CUMULATIVE + const GAUGE + type AtomicInt struct + Str func(int64) string + func NewAtomicInt(i int64) *AtomicInt + func (i *AtomicInt) Add(val Value) error + func (i *AtomicInt) AddFloat64(f float64) + func (i *AtomicInt) AddInt64(ii int64) + func (i *AtomicInt) Clone() Value + func (i *AtomicInt) Float64() float64 + func (i *AtomicInt) Inc() + func (i *AtomicInt) IncBy(delta NumValue) + func (i *AtomicInt) Int64() int64 + func (i *AtomicInt) String() string + type Distribution struct + func NewDistribution(lowerBounds []float64) *Distribution + func NewDistributionFromProto(distProto *distpb.Dist) (*Distribution, error) + func NewExponentialDistribution(base, scaleFactor float64, numBuckets int) (*Distribution, error) + func ParseDistFromString(str string) (*Distribution, error) + func (d *Distribution) Add(val Value) error + func (d *Distribution) AddFloat64(f float64) + func (d *Distribution) AddInt64(i int64) + func (d *Distribution) AddSample(sample float64) + func (d *Distribution) Clone() Value + func (d *Distribution) Data() *DistributionData + func (d *Distribution) StackdriverTypedValue() *monitoring.TypedValue + func (d *Distribution) String() string + func (d *Distribution) Verify() error + type DistributionData struct + BucketCounts []int64 + Count int64 + LowerBounds []float64 + Sum float64 + type EventMetrics struct + Kind Kind + Timestamp time.Time + func NewEventMetrics(ts time.Time) *EventMetrics + func (em *EventMetrics) AddLabel(name string, val string) *EventMetrics + func (em *EventMetrics) AddMetric(name string, val Value) *EventMetrics + func (em *EventMetrics) Clone() *EventMetrics + func (em *EventMetrics) Label(name string) string + func (em *EventMetrics) LabelsKeys() []string + func (em *EventMetrics) Metric(name string) Value + func (em *EventMetrics) MetricsKeys() []string + func (em *EventMetrics) String() string + func (em *EventMetrics) Update(in *EventMetrics) error + type Float struct + Str func(float64) string + func NewFloat(f float64) *Float + func (f *Float) Add(val Value) error + func (f *Float) AddFloat64(ff float64) + func (f *Float) AddInt64(i int64) + func (f *Float) Clone() Value + func (f *Float) Float64() float64 + func (f *Float) Inc() + func (f *Float) IncBy(delta NumValue) + func (f *Float) Int64() int64 + func (f *Float) String() string + type Int struct + Str func(int64) string + func NewInt(i int64) *Int + func (i *Int) Add(val Value) error + func (i *Int) AddFloat64(f float64) + func (i *Int) AddInt64(ii int64) + func (i *Int) Clone() Value + func (i *Int) Float64() float64 + func (i *Int) Inc() + func (i *Int) IncBy(delta NumValue) + func (i *Int) Int64() int64 + func (i *Int) String() string + type Kind int + type Map struct + MapName string + func NewMap(mapName string, defaultValue NumValue) *Map + func (m *Map) Add(val Value) error + func (m *Map) AddFloat64(f float64) + func (m *Map) AddInt64(i int64) + func (m *Map) Clone() Value + func (m *Map) GetKey(key string) NumValue + func (m *Map) IncKey(key string) + func (m *Map) IncKeyBy(key string, delta NumValue) + func (m *Map) Keys() []string + func (m *Map) String() string + type NumValue interface + Float64 func() float64 + Inc func() + IncBy func(delta NumValue) + Int64 func() int64 + type String struct + func NewString(s string) String + func (s String) Add(val Value) error + func (s String) AddFloat64(f float64) + func (s String) AddInt64(i int64) + func (s String) Clone() Value + func (s String) String() string + type Value interface + Add func(delta Value) error + AddFloat64 func(f float64) + AddInt64 func(i int64) + Clone func() Value + String func() string