Skip to content

Instantly share code, notes, and snippets.

Embed
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);
sendJson(
json: { [key: string]: any },
options?: {
additionalFields?: { [key: string]: any };
tags?: { [key: string]: any };
timestamp?: string;
}
): Promise<void>;
sendMessage(
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
You can’t perform that action at this time.