Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Incr(id string, value int64) error Decr(id string, value int64) error IncrGauge(id string, value int64) error DecrGauge(id string, value int64) error SetGauge(id string, value int64) error }
Client represents the interface for a set of operations that can be performed to track performance of queues and topics in Dynamiq
type NOOPClient ¶
type NOOPClient struct { }
NOOPClient is to sub in when we don't want to write stats
func (NOOPClient) DecrGauge ¶
func (c NOOPClient) DecrGauge(id string, value int64) error
DecrGauge does nothing
type StatsdClient ¶
type StatsdClient struct {
// contains filtered or unexported fields
}
StatsdClient will report stats to a StatsD compatible service
func NewStatsdClient ¶
func NewStatsdClient(address string, prefix string, interval time.Duration) StatsdClient
NewStatsdClient will create a new StatsdClient to be used for reporting metrics
func (StatsdClient) Decr ¶
func (c StatsdClient) Decr(id string, value int64) error
Decr decreases the value of a given counter
func (StatsdClient) DecrGauge ¶
func (c StatsdClient) DecrGauge(id string, value int64) error
DecrGauge decreases the value of a given gauge delta
func (StatsdClient) Incr ¶
func (c StatsdClient) Incr(id string, value int64) error
Incr increases the value of a given counter
Click to show internal directories.
Click to hide internal directories.