Documentation
¶
Index ¶
- type Config
- type Metrics
- func (s *Metrics) Close() error
- func (s *Metrics) Count(name string, value int64, tags []string, rate float64) error
- func (s *Metrics) Decr(name string, tags []string, rate float64) error
- func (s *Metrics) Event(e *statsd.Event) error
- func (s *Metrics) Gauge(name string, value float64, tags []string, rate float64) error
- func (s *Metrics) Incr(name string, tags []string, rate float64) error
- func (s *Metrics) ServiceCheck(sc *statsd.ServiceCheck) error
- func (s *Metrics) SimpleEvent(title, text string) error
- type NoopMetrics
- func (s *NoopMetrics) Close() error
- func (s *NoopMetrics) Count(name string, value int64, tags []string, rate float64) error
- func (s *NoopMetrics) Decr(name string, tags []string, rate float64) error
- func (s *NoopMetrics) Event(e *statsd.Event) error
- func (s *NoopMetrics) Gauge(name string, value float64, tags []string, rate float64) error
- func (s *NoopMetrics) Incr(name string, tags []string, rate float64) error
- func (s *NoopMetrics) ServiceCheck(sc *statsd.ServiceCheck) error
- func (s *NoopMetrics) SimpleEvent(title, text string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
Metrics wrapper for customized statsd
func NewMetrics ¶
func (*Metrics) ServiceCheck ¶
func (s *Metrics) ServiceCheck(sc *statsd.ServiceCheck) error
func (*Metrics) SimpleEvent ¶
type NoopMetrics ¶
type NoopMetrics struct{}
func NewNoopMetrics ¶
func NewNoopMetrics() (*NoopMetrics, error)
func (*NoopMetrics) Close ¶
func (s *NoopMetrics) Close() error
func (*NoopMetrics) Decr ¶
func (s *NoopMetrics) Decr(name string, tags []string, rate float64) error
func (*NoopMetrics) Incr ¶
func (s *NoopMetrics) Incr(name string, tags []string, rate float64) error
func (*NoopMetrics) ServiceCheck ¶
func (s *NoopMetrics) ServiceCheck(sc *statsd.ServiceCheck) error
func (*NoopMetrics) SimpleEvent ¶
func (s *NoopMetrics) SimpleEvent(title, text string) error
Click to show internal directories.
Click to hide internal directories.