Metrics

Index

All Metrics functions

Name Function header Example Result Description Errorhandling
newMeter func() Meter [[ $v := newMeter ]] $v contains new Meter Object
startMeter func(meter Meter) Meter [[ $v := startMeter $meter ]] $v contains the $meter Object. The Meter has been started
stopMeter func(meter Meter) Meter [[ $v := stopMeter $meter ]] $v contains the $meter Object with the Meter stopped
getMeterSeconds func(meter Meter) float64 [[ $v := getMeterSeconds $meter ]] $v contains the seconds passed between start and stop
getMeterNanos func(meter Meter) float64 [[ $v := getMeterNanos $meter ]] $v contains the Nanoseconds between start and stop
getMeterDuration func(meter Meter) Duration [[ $v := getMeterDuration $meter ]] $v contains the duration beween start and stop
addMetric func(metrictype string, metricunit string, metricname string, metricid string, value interface{}, more string) bool [[ addMetric "flow" "s" "meter1" "act1" (getMeterSeconds $meter) (print (getMeterDuration $meter)) ]] Adds a Metric entry to the stats with the measurement of a meter
getMeta func() Data [[ $v := getMeta ]] $v contains the Meta Data (Data Object)
setMeta func(metadata Data) bool [[ setMeta $data ]] Set the Meta Data on the Metric

addMetric

// TODO

func(metrictype string, metricunit string, metricname string, metricid string, value interface{}, more string) bool

The addMetric function …

Example with addMetric

[[ $v := addMetric ... ]]

$v contains …

getMeta

// TODO

func() Data

The getMeta function …

Example with getMeta

[[ $v := getMeta ... ]]

$v contains …

getMeterDuration

// TODO

func(meter Meter) Duration

The getMeterDuration function …

Example with getMeterDuration

[[ $v := getMeterDuration ... ]]

$v contains …

getMeterNanos

// TODO

func(meter Meter) float64

The getMeterNanos function …

Example with getMeterNanos

[[ $v := getMeterNanos ... ]]

$v contains …

getMeterSeconds

// TODO

func(meter Meter) float64

The getMeterSeconds function …

Example with getMeterSeconds

[[ $v := getMeterSeconds ... ]]

$v contains …

newMeter

// TODO

func() Meter

The newMeter function …

Example with newMeter

[[ $v := newMeter ... ]]

$v contains …

setMeta

// TODO

func(metadata Data) bool

The setMeta function …

Example with setMeta

[[ $v := setMeta ... ]]

$v contains …

startMeter

// TODO

func(meter Meter) Meter

The startMeter function …

Example with startMeter

[[ $v := startMeter ... ]]

$v contains …

stopMeter

// TODO

func(meter Meter) Meter

The stopMeter function …

Example with stopMeter

[[ $v := stopMeter ... ]]

$v contains …