forked from uber-archive/node-statsd-client
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocs.jsig
37 lines (33 loc) · 963 Bytes
/
docs.jsig
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
29
30
31
32
33
34
35
36
37
type StatsDClient : {
gauge: (name: String, value: Number) => void,
counter: (name: String, value: Number) => void,
increment: (name: String, delta?: Number) => void,
decrement: (name: String, delta?: Number) => void,
timing: (name: String, time: Number) => void,
close: () => void
}
-- Given a set of options returns a statsd client.
uber-statsd-client : ({
prefix?: String,
host?: String,
port?: Number,
socket_timeout?: Number,
highWaterMark?: Number,
isDisabled?: () => Boolean,
packetQueue?: {
block?: Number,
flush?: Number,
trailingNewLine?: Boolean
},
dnsResolver?: {
timeToLive?: Number,
seedIP?: String,
backoffSettings?: {
maxDelay?: Number,
minDelay?: Number,
retries?: Number,
factor?: Number
}
}
}) => StatsDClient
uber-statsd-client/null : (capacity?: Number) => StatsDClient