stats

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	statsd.Statter

	SampleRate float32
	// contains filtered or unexported fields
}

func NewStats

func NewStats(client statsd.Statter, env, server, service string, sampleRate string) Stats

func NullStats

func NullStats() *Stats

func (*Stats) Agent

func (s *Stats) Agent(stat string) string

func (Stats) Metric

func (s Stats) Metric(metric string) string

func (*Stats) SetAgent

func (s *Stats) SetAgent(agentId uint)

func (*Stats) SetComponent

func (s *Stats) SetComponent(component string)

func (*Stats) System

func (s *Stats) System(stat string) string

Jump to

Keyboard shortcuts

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