Documentation ¶
Overview ¶
Packages stats defines the non-native types exported by the stats service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistogramBucket ¶
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 ¶
func (x HistogramBucket) VDLIsZero() bool
func (HistogramBucket) VDLReflect ¶
func (HistogramBucket) VDLReflect(struct { Name string `vdl:"v.io/x/ref/services/stats.HistogramBucket"` })
type HistogramValue ¶
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 ¶
func (v HistogramValue) Print(w io.Writer)
Print writes textual output of the histogram values.
func (HistogramValue) String ¶
func (v HistogramValue) String() string
String returns the textual output of the histogram values as string.
func (HistogramValue) VDLIsZero ¶
func (x HistogramValue) VDLIsZero() bool
func (HistogramValue) VDLReflect ¶
func (HistogramValue) VDLReflect(struct { Name string `vdl:"v.io/x/ref/services/stats.HistogramValue"` })
type TimeSeries ¶
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 ¶
func (ts TimeSeries) Print(w io.Writer)
Print writes textual output of the TimeSeries values.
func (TimeSeries) String ¶
func (ts TimeSeries) String() string
String returns the textual output of the TimeSeries values as string.
func (TimeSeries) VDLIsZero ¶
func (x TimeSeries) VDLIsZero() bool
func (TimeSeries) VDLReflect ¶
func (TimeSeries) VDLReflect(struct { Name string `vdl:"v.io/x/ref/services/stats.TimeSeries"` })
Click to show internal directories.
Click to hide internal directories.