Documentation
¶
Index ¶
- type Client
- func (l Client) Count(op string, count int64)
- func (l Client) DecrCount(op string, count int64)
- func (l Client) IncErrs(op string)
- func (l Client) IncReqs(op string)
- func (l Client) NewTimer(op string) metrics.StopFunc
- func (l Client) REDCountMetrics(op string) func(int, error) error
- func (l Client) REDMetrics(op string) func(error) error
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
}
Client is a metrics client that wraps some common RED metrics for all services/servers/stores to consume.
func (Client) Count ¶
Count increments the operation count by the specified count. Example would be an op of "insert_item_rows" with a count of 100. Useful in a bulk insert metric.
func (Client) REDCountMetrics ¶
REDCountMetrics is a method for capturing all RED metrics for a given method in addition to the count metric. Often used alongside a List call or the like.
Click to show internal directories.
Click to hide internal directories.