UNPKG

852 BTypeScriptView Raw
1import TelemetryEvent from "./TelemetryEvent";
2export interface InProgressEvents {
3 [key: string]: TelemetryEvent;
4}
5export interface EventCount {
6 [eventName: string]: number;
7}
8export interface EventCountByCorrelationId {
9 [correlationId: string]: EventCount;
10}
11export interface CompletedEvents {
12 [correlationId: string]: Array<TelemetryEvent>;
13}
14export declare type TelemetryEmitter = (events: Array<object>) => void;
15export interface TelemetryPlatform {
16 sdk?: string;
17 sdkVersion?: string;
18 applicationName: string;
19 applicationVersion: string;
20 networkInformation?: NetworkInformation;
21}
22export interface TelemetryConfig {
23 platform: TelemetryPlatform;
24 onlySendFailureTelemetry?: boolean;
25 clientId: string;
26}
27export interface NetworkInformation {
28 connectionSpeed: string;
29}