mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-26 02:32:49 +00:00
* Added 'node-loggly-bulk' package support * Fix LogglyBulkConstructor interface constructor
31 lines
885 B
TypeScript
31 lines
885 B
TypeScript
// Type definitions for node-loggly-bulk 2.2
|
|
// Project: https://github.com/loggly/node-loggly-bulk#readme
|
|
// Definitions by: Andrei Kazakou <https://github.com/akazakou>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import { LogglyInstance, LogglyOptions } from 'loggly';
|
|
|
|
export interface LogglyBulkOptions extends LogglyOptions {
|
|
proxy?: any;
|
|
userAgent?: string;
|
|
useTagHeader?: boolean;
|
|
isBulk?: boolean;
|
|
bufferOptions?: {
|
|
size: number;
|
|
retriesInMilliSeconds: number;
|
|
};
|
|
networkErrorsOnConsole?: boolean;
|
|
}
|
|
|
|
export interface LogglyBulkConstructor {
|
|
new (options: LogglyBulkOptions): LogglyInstance;
|
|
}
|
|
|
|
export const Loggly: LogglyBulkConstructor;
|
|
|
|
export const version: string;
|
|
|
|
export function createClient(options: LogglyBulkOptions): LogglyInstance;
|
|
|
|
export function serialize(obj: any, key?: string): string;
|