Documentation ¶
Index ¶
- func Cumulative(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func CumulativeDist(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func CumulativeInt(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func DistPt(ts time.Time, bounds []float64, counts []int64) *metricspb.Point
- func Double(ts time.Time, value float64) *metricspb.Point
- func Gauge(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func GaugeDist(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func GaugeInt(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func SummPt(ts time.Time, count int64, sum float64, percent, vals []float64) *metricspb.Point
- func Summary(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
- func Timeseries(sts time.Time, vals []string, point *metricspb.Point) *metricspb.TimeSeries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cumulative ¶
Cumulative creates a cumulative metric.
func CumulativeDist ¶
func CumulativeDist(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
CumulativeDist creates a cumulative distribution metric.
func CumulativeInt ¶
func CumulativeInt(name string, keys []string, timeseries ...*metricspb.TimeSeries) *metricspb.Metric
CumulativeInt creates a cumulative metric of type int64.
func DistPt ¶
DistPt creates a distribution point. It takes the time stamp, the bucket boundaries for the distribution, and the and counts for the individual buckets as input.
func Timeseries ¶
Timeseries creates a timeseries. It takes the start time stamp, a sequence of label values (associated with the label keys in the overall metric), and the value of the timeseries.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.