forked from JaniAnttonen/winston-loki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
30 lines (26 loc) · 807 Bytes
/
index.d.ts
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
import TransportStream from "winston-transport";
import http from 'http';
import https from 'https';
declare interface LokiTransportOptions extends TransportStream.TransportStreamOptions{
host: string;
basicAuth?: string;
headers?: object;
interval?: number;
json?: boolean;
batching?: boolean;
labels?: object;
clearOnError?: boolean,
replaceTimestamp?: boolean,
gracefulShutdown?: boolean,
timeout?: number,
httpAgent?: http.Agent | boolean;
httpsAgent?: https.Agent | boolean;
useWinstonMetaAsLabels?: boolean;
ignoredMeta?: Array<string>;
onConnectionError?(error: unknown): void
}
declare class LokiTransport extends TransportStream {
constructor(opts: LokiTransportOptions);
flush(): Promise<null>;
}
export = LokiTransport;