stats

package
v0.0.0-...-ff5f600 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

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

func (m *HistogramBucket) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*HistogramBucket) MakeVDLTarget

func (m *HistogramBucket) MakeVDLTarget() vdl.Target

func (HistogramBucket) VDLIsZero

func (x HistogramBucket) VDLIsZero() bool

func (*HistogramBucket) VDLRead

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

func (HistogramBucket) VDLWrite

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

type HistogramBucketTarget

type HistogramBucketTarget struct {
	Value *HistogramBucket

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*HistogramBucketTarget) FinishField

func (t *HistogramBucketTarget) FinishField(_, _ vdl.Target) error

func (*HistogramBucketTarget) FinishFields

func (t *HistogramBucketTarget) FinishFields(_ vdl.FieldsTarget) error

func (*HistogramBucketTarget) StartField

func (t *HistogramBucketTarget) StartField(name string) (key, field vdl.Target, _ error)

func (*HistogramBucketTarget) StartFields

func (t *HistogramBucketTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*HistogramBucketTarget) ZeroField

func (t *HistogramBucketTarget) ZeroField(name string) 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) FillVDLTarget

func (m *HistogramValue) FillVDLTarget(t vdl.Target, tt *vdl.Type) error

func (*HistogramValue) MakeVDLTarget

func (m *HistogramValue) MakeVDLTarget() vdl.Target

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

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

type HistogramValueTarget

type HistogramValueTarget struct {
	Value *HistogramValue

	vdl.TargetBase
	vdl.FieldsTargetBase
	// contains filtered or unexported fields
}

func (*HistogramValueTarget) FinishField

func (t *HistogramValueTarget) FinishField(_, _ vdl.Target) error

func (*HistogramValueTarget) FinishFields

func (t *HistogramValueTarget) FinishFields(_ vdl.FieldsTarget) error

func (*HistogramValueTarget) StartField

func (t *HistogramValueTarget) StartField(name string) (key, field vdl.Target, _ error)

func (*HistogramValueTarget) StartFields

func (t *HistogramValueTarget) StartFields(tt *vdl.Type) (vdl.FieldsTarget, error)

func (*HistogramValueTarget) ZeroField

func (t *HistogramValueTarget) ZeroField(name string) error

Jump to

Keyboard shortcuts

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