statsd

package
v0.0.0-...-41c389d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Project  string
	Addr     string
	ChanSize int
}

Config statsd config.

type Statsd

type Statsd struct {
	// contains filtered or unexported fields
}

Statsd statsd struct.

func New

func New(c *Config) (s *Statsd)

New new a statsd struct.

func (*Statsd) Close

func (s *Statsd) Close()

Close close the connection.

func (*Statsd) Incr

func (s *Statsd) Incr(name string, extra ...string)

Incr increments one stat counter without sampling

func (*Statsd) State

func (s *Statsd) State(stat string, val int64, extra ...string)

State set state

func (*Statsd) Timing

func (s *Statsd) Timing(name string, time int64, extra ...string)

Timing log timing information (in milliseconds) without sampling

Jump to

Keyboard shortcuts

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