statsd

package
Version: v0.0.0-...-7995a24 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(bucket string, number interface{})

count

func Gauge

func Gauge(bucket string, value interface{})

gauge

func GetStatsd

func GetStatsd() *statsd.Client

get statsd client

func Increment

func Increment(bucket string)

increment

func Init

func Init(args ...string) error

init

func InitStatsd

func InitStatsd(addr string, project string) error

init statsd client, if addr is empty, using default setting

Types

type MonitorTiming

type MonitorTiming struct {
	statsd.Timing
}

func NewTiming

func NewTiming() *MonitorTiming

timing

func (*MonitorTiming) SendTiming

func (timing *MonitorTiming) SendTiming(bucket string)

sent timing

Jump to

Keyboard shortcuts

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