Documentation ¶
Index ¶
- type Client
- func (client *Client) Close()
- func (client *Client) Count(key string, value int, sampleRate float32)
- func (client *Client) Flush() error
- func (client *Client) Gauge(key string, value int)
- func (client *Client) GaugeShift(key string, value int)
- func (client *Client) Open()
- func (client *Client) Set(key string, value int)
- func (client *Client) SetFlushInterval(flushInterval time.Duration)
- func (client *Client) SetPrefix(metricPrefix string)
- func (client *Client) Timing(key string, time int64, sampleRate float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
The Client type
func NewBufferedClient ¶
NewBufferedClient creates new StatsD client with enabled buffer. If flush interval not defined, manual call of Flush() required to send metrics to StatsD server.
func (*Client) Gauge ¶
Gauge track To set a gauge to a negative number you need first set it to 0, because negative value interprets as negative shift.
func (*Client) GaugeShift ¶
GaugeShift decrease previously set value if negative value passed, and increase if positive.
func (*Client) SetFlushInterval ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.