-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocs.mli
More file actions
28 lines (27 loc) · 758 Bytes
/
docs.mli
File metadata and controls
28 lines (27 loc) · 758 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
type Prober := {
isHealthy: () => Boolean,
isSick: () => Boolean,
notok: () => void,
ok: () => void,
prober: (
request: (Callback<Error, HttpResponse>) => void,
bypass: (Error) => void,
callback: (Callback<Error, HttpResponse>) => void
) => void,
setLogger: (WinstonLoggerClient) => void
}
rt-prober := ({
title: String,
statsd?: { increment: (String) => void },
threshold?: Number,
window?: Number,
defaultWaitPeriod?: Number,
maxWaitPeriod?: Number,
enabled?: Boolean,
detectFailuresBy?: 'event' | 'callback' | 'both',
logger?: WinstonLoggerClient,
backend?: EventEmitter,
failureEvent?: String,
successEvent?: String,
now?: () => Number
}) => Prober