npm install --save @types/ineum
This package contains type definitions for ineum (https://docs.instana.io/products/website_monitoring/api/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ineum.
// Website Monitoring API from Instana (status: 2022-01-11)
declare function ineum(command: "key" | "page" | "reportingUrl" | "traceId", value: string): void;
declare function ineum(command: "user", userId?: string, userName?: string, userEmail?: string): void;
declare function ineum(command: "meta", key: string, value: string | number | boolean): void;
declare function ineum(command: "ignorePings" | "wrapEventHandlers" | "wrapTimers", value: boolean): void;
declare function ineum(
command: "trackSessions",
sessionInactivityTimeout?: number,
sessionTerminationTimeout?: number,
): void;
declare function ineum(command: "terminateSession"): void;
declare function ineum(command: "getPageLoadId"): string | undefined;
declare function ineum(
command:
| "beaconBatchingTime"
| "maxMaitForPageLoadMetricsMillis"
| "maxWaitForResourceTimingsMillis"
| "xhrTransmissionTimeout",
durationMillis: number,
): void;
declare function ineum(
command: "reportError",
error: Error | string,
opts?: {
componentStack?: string | undefined;
meta?: {
[key: string]: string | number | boolean;
} | undefined;
},
): void;
declare function ineum(
command: "reportEvent",
eventName: string,
opts?: {
duration?: number | undefined;
timestamp?: number | undefined;
backendTraceId?: string | undefined;
error?: Error | undefined;
componentStack?: string | undefined;
meta?: {
[key: string]: string | number | boolean;
} | undefined;
customMetric?: number | undefined;
},
): void;
declare function ineum(
command:
| "allowedOrigins"
| "captureHeaders"
| "ignoreErrorMessages"
| "ignoreUrls"
| "ignoreUserTimings"
| "secrets"
| "urlsToCheckForGraphQlInsights",
values: RegExp[],
): void;
/**
* Use command: 'key' instead.
*
* @deprecated
*/
// tslint:disable-next-line unified-signatures
declare function ineum(command: "apiKey", value: string): void;
/**
* Use command: 'allowedOrigins' instead (from release 185).
*
* @deprecated
*/
// tslint:disable-next-line unified-signatures
declare function ineum(command: "whitelistedOrigins", values: RegExp[]): void;
- Last updated: Thu, 28 Nov 2024 19:02:24 GMT
- Dependencies: none
These definitions were written by Enzo Volkmann, Benjamin Blackmore, and David Taylor.