stats

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 10

Documentation

Overview

This file was auto-generated by the vanadium vdl tool. Package: stats 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
}

Type definitions ================ HistogramBucket is one histogram bucket.

func (HistogramBucket) VDLIsZero

func (x HistogramBucket) VDLIsZero() bool

func (*HistogramBucket) VDLRead

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

func (HistogramBucket) VDLReflect

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

func (HistogramBucket) VDLWrite

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

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) VDLRead

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

func (HistogramValue) VDLReflect

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

func (HistogramValue) VDLWrite

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

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) VDLRead

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

func (TimeSeries) VDLReflect

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

func (TimeSeries) VDLWrite

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL