summarymetrics

package
v0.13.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package summarymetrics provides a summary metric implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SummaryMetric

type SummaryMetric [5]float64

SummaryMetric is summary metric type

func EmptySummaryMetric

func EmptySummaryMetric() *SummaryMetric

EmptySummaryMetric returns metric object without any values added

func (*SummaryMetric) Add

func (m *SummaryMetric) Add(value float64) *SummaryMetric

Add adds an observed value to the metric

func (*SummaryMetric) Count

func (m *SummaryMetric) Count() uint32

Count returns the number of observed values summarized by the metric

func (*SummaryMetric) Max

func (m *SummaryMetric) Max() float64

Max is the maximum of the observed values

func (*SummaryMetric) Min

func (m *SummaryMetric) Min() float64

Min is the minimum of the observed values

func (*SummaryMetric) SetCount

func (m *SummaryMetric) SetCount(v uint32)

SetCount sets the number of observed values summarized by the metric

func (*SummaryMetric) SetMax

func (m *SummaryMetric) SetMax(v float64)

SetMax sets the maximum of the observed values

func (*SummaryMetric) SetMin

func (m *SummaryMetric) SetMin(v float64)

SetMin sets the minimum of the observed values

func (*SummaryMetric) SetSum

func (m *SummaryMetric) SetSum(v float64)

SetSum sets the sum of the observed values

func (*SummaryMetric) SetSumSquares

func (m *SummaryMetric) SetSumSquares(v float64)

SetSumSquares sets the sum of the squares of the observed values

func (*SummaryMetric) String

func (m *SummaryMetric) String() string

String returns a string representing the metric (not all fields are included)

func (*SummaryMetric) Sum

func (m *SummaryMetric) Sum() float64

Sum is the sum of the observed values

func (*SummaryMetric) SumSquares

func (m *SummaryMetric) SumSquares() float64

SumSquares is the sum of the squares of the observed values

Jump to

Keyboard shortcuts

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