Documentation
¶
Index ¶
- Constants
- func Benchmark(start time.Time, name string) error
- func BenchmarkWithTags(start time.Time, name string, tags []string) error
- func Configure(host string, port string, metricPrefix string) error
- func ConfigureWithOptions(options Options) error
- func External() externalClientConvenience
- func Increment(name string) error
- func IncrementBy(name string, value int) error
- func IncrementByWithTags(name string, value int, tags []string) error
- func IncrementWithTags(name string, tags []string) error
- func Submit(name string, value int) error
- func SubmitWithTags(name string, tags []string, value int) error
- func TimingWithTags(name string, tags []string, value int64) error
- type BackendType
- type Client
- func (c *Client) BenchmarkWithTags(start time.Time, name string, tags []string) error
- func (c *Client) FormatMetricNameWithTags(name string, tags []string) (string, error)
- func (c *Client) IncrementByWithTags(name string, value int, tags []string) error
- func (c *Client) IncrementWithTags(name string, tags []string) error
- func (c *Client) SubmitWithTags(name string, tags []string, value int) error
- func (c *Client) TimingWithTags(name string, tags []string, value int64) error
- type ClientI
- type MetricsChannel
- type Options
Constants ¶
View Source
const ( InternalOnly = iota ExternalOnly All )
View Source
const ( BackendGraphite = iota BackendCloudwatch )
Variables ¶
This section is empty.
Functions ¶
func ConfigureWithOptions ¶
func IncrementBy ¶
func IncrementWithTags ¶
Types ¶
type BackendType ¶
type BackendType uint8
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BenchmarkWithTags ¶
func (*Client) FormatMetricNameWithTags ¶
func (*Client) IncrementByWithTags ¶
func (*Client) IncrementWithTags ¶
func (*Client) SubmitWithTags ¶
type ClientI ¶
type ClientI interface {
TimingWithTags(name string, tags []string, value int64) error
BenchmarkWithTags(start time.Time, name string, tags []string) error
IncrementWithTags(name string, tags []string) error
IncrementByWithTags(name string, value int, tags []string) error
SubmitWithTags(name string, tags []string, value int) error
}
type MetricsChannel ¶
type MetricsChannel uint8
type Options ¶
type Options struct {
Host string
Port string
MetricPrefix string
MetricsChannel MetricsChannel
BackendType BackendType
ConnectionAttempts int
ConnectionAttemptWait time.Duration
}
Click to show internal directories.
Click to hide internal directories.