-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathinterface.go
More file actions
28 lines (23 loc) · 747 Bytes
/
interface.go
File metadata and controls
28 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package statsd
import (
"time"
"github.com/quipo/statsd/event"
)
// Statsd is an interface to a StatsD client (buffered/unbuffered)
type Statsd interface {
CreateSocket() error
CreateTCPSocket() error
Close() error
Incr(stat string, count int64) error
Decr(stat string, count int64) error
Timing(stat string, delta int64) error
PrecisionTiming(stat string, delta time.Duration) error
Gauge(stat string, value int64) error
GaugeDelta(stat string, value int64) error
Absolute(stat string, value int64) error
Total(stat string, value int64) error
FGauge(stat string, value float64) error
FGaugeDelta(stat string, value float64) error
FAbsolute(stat string, value float64) error
SendEvents(events map[string]event.Event) error
}