Skip to content

Instantly share code, notes, and snippets.

Created November 7, 2019 03:42
What would you like to do?
declare module 'humio' {
interface Options {
ssl?: boolean;
host: string;
port: number;
basePath?: string;
dataspaceId?: string;
sessionId?: string;
includeClientMetadata?: boolean;
includeSessionId?: boolean;
additionalFields?: { [key: string]: any };
ingestToken?: string;
repository?: string;
class Humio {
constructor(options: Options);
json: { [key: string]: any },
options?: {
additionalFields?: { [key: string]: any };
tags?: { [key: string]: any };
timestamp?: string;
): Promise<void>;
message: string,
additionalFields?: { [key: string]: any }
): Promise<void>;
addMetadata(fields: { [key: string]: any }): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment