applicationinsights
Version:
Microsoft Application Insights module for Node.js
43 lines (42 loc) • 1.28 kB
TypeScript
export declare const LOGGER_NAME = "applicationinsights.extension.diagnostics";
export declare const LOGGER_LANGUAGE = "nodejs";
export declare const NODE_JS_RUNTIME_MAJOR_VERSION: number;
export declare const AZURE_APP_NAME: string;
export declare const AZURE_MONITOR_AUTO_ATTACH = "AZURE_MONITOR_AUTO_ATTACH";
export interface IAgentLogger {
log(message: any, ...optional: any[]): void;
}
export interface IDiagnosticLogger {
logMessage(log?: IDiagnosticLog): void;
}
export interface IDiagnosticLog {
time?: string;
message: string;
extensionVersion?: string;
language?: string;
loggerName?: string;
subscriptionId?: string;
siteName?: string;
instrumentationKey?: string;
sdkVersion?: string;
messageId?: string;
}
export interface IStatusContract {
AgentInitializedSuccessfully?: boolean;
Reason?: string;
SDKPresent?: boolean;
AppType?: string;
MachineName?: string;
PID?: string;
SdkVersion?: string;
Ikey?: string;
}
export declare const DiagnosticMessageId: {
attachSuccessful: string;
sdkExists: string;
missingIkey: string;
setupAlreadyCalled: string;
prefixFailed: string;
aadEnabled: string;
unknownError: string;
};