metrics

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemMetrics = false

SystemMetrics enables uAdmin system metrics to be recorded

View Source
var UserMetrics = false

UserMetrics enables the user metrics to be recorded

Functions

func IncrementMetric

func IncrementMetric(name string)

IncrementMetric increments the value of a

func NewMetric

func NewMetric(name string, template string) error

NewMetric creates a new metric

func SetMetric

func SetMetric(name string, value float64)

SetMetric sets the value of a gauge metric

func TimeMetric

func TimeMetric(name string, div float64, f func())

TimeMetric runs a function and times it as a metric

Types

This section is empty.

Jump to

Keyboard shortcuts

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