v.io: v.io/x/ref/services/stats Index | Files

package stats

import "v.io/x/ref/services/stats"

Packages stats defines the non-native types exported by the stats service. nolint:golint

Index

Package Files

stats.vdl.go types.go

type HistogramBucket Uses

type HistogramBucket struct {
    // LowBound is the lower bound of the bucket.
    LowBound int64
    // Count is the number of values in the bucket.
    Count int64
}

HistogramBucket is one histogram bucket.

func (HistogramBucket) VDLIsZero Uses

func (x HistogramBucket) VDLIsZero() bool

func (*HistogramBucket) VDLRead Uses

func (x *HistogramBucket) VDLRead(dec vdl.Decoder) error

func (HistogramBucket) VDLReflect Uses

func (HistogramBucket) VDLReflect(struct {
    Name string `vdl:"v.io/x/ref/services/stats.HistogramBucket"`
})

func (HistogramBucket) VDLWrite Uses

func (x HistogramBucket) VDLWrite(enc vdl.Encoder) error

type HistogramValue Uses

type HistogramValue struct {
    // Count is the total number of values added to the histogram.
    Count int64
    // Sum is the sum of all the values added to the histogram.
    Sum int64
    // Min is the minimum of all the values added to the histogram.
    Min int64
    // Max is the maximum of all the values added to the histogram.
    Max int64
    // Buckets contains all the buckets of the histogram.
    Buckets []HistogramBucket
}

HistogramValue is the value of Histogram objects.

func (HistogramValue) Print Uses

func (v HistogramValue) Print(w io.Writer)

Print writes textual output of the histogram values.

func (HistogramValue) String Uses

func (v HistogramValue) String() string

String returns the textual output of the histogram values as string.

func (HistogramValue) VDLIsZero Uses

func (x HistogramValue) VDLIsZero() bool

func (*HistogramValue) VDLRead Uses

func (x *HistogramValue) VDLRead(dec vdl.Decoder) error

func (HistogramValue) VDLReflect Uses

func (HistogramValue) VDLReflect(struct {
    Name string `vdl:"v.io/x/ref/services/stats.HistogramValue"`
})

func (HistogramValue) VDLWrite Uses

func (x HistogramValue) VDLWrite(enc vdl.Encoder) error

type TimeSeries Uses

type TimeSeries struct {
    // Values holds the time series values (from oldest to newest).
    Values []int64
    // Resolution is the time resolution of the time series.
    Resolution time.Duration
    // StartTime is the time of the first value of the time series.
    StartTime time.Time
}

TimeSeries records data of a single time series.

func (TimeSeries) Print Uses

func (ts TimeSeries) Print(w io.Writer)

Print writes textual output of the TimeSeries values.

func (TimeSeries) String Uses

func (ts TimeSeries) String() string

String returns the textual output of the TimeSeries values as string.

func (TimeSeries) VDLIsZero Uses

func (x TimeSeries) VDLIsZero() bool

func (*TimeSeries) VDLRead Uses

func (x *TimeSeries) VDLRead(dec vdl.Decoder) error

func (TimeSeries) VDLReflect Uses

func (TimeSeries) VDLReflect(struct {
    Name string `vdl:"v.io/x/ref/services/stats.TimeSeries"`
})

func (TimeSeries) VDLWrite Uses

func (x TimeSeries) VDLWrite(enc vdl.Encoder) error

Package stats imports 8 packages (graph) and is imported by 8 packages. Updated 2020-10-23. Refresh now. Tools for package owners.