@microsoft/applicationinsights-analytics-js 3.0.0-beta.2303-11 → 3.0.0-beta.2304-07
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/es5/applicationinsights-analytics-js.cjs.js +5452 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.js +5456 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.integrity.json +66 -0
- package/browser/{applicationinsights-analytics-js.js → es5/applicationinsights-analytics-js.js} +898 -867
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -0
- package/dist/{applicationinsights-analytics-js.js → es5/applicationinsights-analytics-js.js} +898 -867
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -0
- package/dist/es5/applicationinsights-analytics-js.min.js +6 -0
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Timing.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-analytics-js.js +1 -1
- package/package.json +19 -18
- package/tsconfig.json +5 -4
- package/types/applicationinsights-analytics-js.d.ts +181 -2
- package/{dist/applicationinsights-analytics-js.d.ts → types/applicationinsights-analytics-js.namespaced.d.ts} +1 -1
- package/browser/applicationinsights-analytics-js.integrity.json +0 -26
- package/browser/applicationinsights-analytics-js.js.map +0 -1
- package/browser/applicationinsights-analytics-js.min.js +0 -6
- package/browser/applicationinsights-analytics-js.min.js.map +0 -1
- package/dist/applicationinsights-analytics-js.api.json +0 -1845
- package/dist/applicationinsights-analytics-js.api.md +0 -100
- package/dist/applicationinsights-analytics-js.js.map +0 -1
- package/dist/applicationinsights-analytics-js.min.js +0 -6
- package/dist/applicationinsights-analytics-js.min.js.map +0 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +0 -182
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +0 -1064
- package/src/JavaScriptSDK/Telemetry/PageViewManager.ts +0 -249
- package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +0 -221
- package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +0 -128
- package/src/JavaScriptSDK/Timing.ts +0 -46
- package/src/JavaScriptSDK.Interfaces/ITelemetryConfig.ts +0 -13
- package/src/__DynamicConstants.ts +0 -56
- package/src/applicationinsights-analytics-js.ts +0 -5
- package/types/JavaScriptSDK/AnalyticsPlugin.d.ts +0 -140
- package/types/JavaScriptSDK/Telemetry/PageViewManager.d.ts +0 -30
- package/types/JavaScriptSDK/Telemetry/PageViewPerformanceManager.d.ts +0 -23
- package/types/JavaScriptSDK/Telemetry/PageVisitTimeManager.d.ts +0 -25
- package/types/JavaScriptSDK/Timing.d.ts +0 -18
- package/types/JavaScriptSDK.Interfaces/ITelemetryConfig.d.ts +0 -10
- package/types/__DynamicConstants.d.ts +0 -44
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Timing.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/applicationinsights-analytics-js.js.map +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
// @skip-file-minify
|
|
4
|
-
|
|
5
|
-
// ##############################################################
|
|
6
|
-
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
7
|
-
// ##############################################################
|
|
8
|
-
|
|
9
|
-
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
11
|
-
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
|
-
|
|
13
|
-
export const _DYN_TO_STRING = "toString"; // Count: 4
|
|
14
|
-
export const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled"; // Count: 3
|
|
15
|
-
export const _DYN__ADD_HOOK = "_addHook"; // Count: 6
|
|
16
|
-
export const _DYN_CORE = "core"; // Count: 7
|
|
17
|
-
export const _DYN_DATA_TYPE = "dataType"; // Count: 8
|
|
18
|
-
export const _DYN_ENVELOPE_TYPE = "envelopeType"; // Count: 7
|
|
19
|
-
export const _DYN_DIAG_LOG = "diagLog"; // Count: 13
|
|
20
|
-
export const _DYN_TRACK = "track"; // Count: 7
|
|
21
|
-
export const _DYN_TRACK_PAGE_VIEW = "trackPageView"; // Count: 4
|
|
22
|
-
export const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit"; // Count: 3
|
|
23
|
-
export const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal"; // Count: 7
|
|
24
|
-
export const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal"; // Count: 3
|
|
25
|
-
export const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent"; // Count: 3
|
|
26
|
-
export const _DYN_HREF = "href"; // Count: 6
|
|
27
|
-
export const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal"; // Count: 2
|
|
28
|
-
export const _DYN_EXCEPTION = "exception"; // Count: 3
|
|
29
|
-
export const _DYN_ERROR = "error"; // Count: 5
|
|
30
|
-
export const _DYN__ONERROR = "_onerror"; // Count: 3
|
|
31
|
-
export const _DYN_ERROR_SRC = "errorSrc"; // Count: 3
|
|
32
|
-
export const _DYN_LINE_NUMBER = "lineNumber"; // Count: 5
|
|
33
|
-
export const _DYN_COLUMN_NUMBER = "columnNumber"; // Count: 5
|
|
34
|
-
export const _DYN_MESSAGE = "message"; // Count: 4
|
|
35
|
-
export const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException"; // Count: 3
|
|
36
|
-
export const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer"; // Count: 4
|
|
37
|
-
export const _DYN_OVERRIDE_PAGE_VIEW_D8 = "overridePageViewDuration"; // Count: 2
|
|
38
|
-
export const _DYN_DURATION = "duration"; // Count: 10
|
|
39
|
-
export const _DYN_AUTO_TRACK_PAGE_VISI9 = "autoTrackPageVisitTime"; // Count: 2
|
|
40
|
-
export const _DYN_IS_BROWSER_LINK_TRAC10 = "isBrowserLinkTrackingEnabled"; // Count: 2
|
|
41
|
-
export const _DYN_LENGTH = "length"; // Count: 5
|
|
42
|
-
export const _DYN_ENABLE_AUTO_ROUTE_TR11 = "enableAutoRouteTracking"; // Count: 2
|
|
43
|
-
export const _DYN_ENABLE_UNHANDLED_PRO12 = "enableUnhandledPromiseRejectionTracking"; // Count: 2
|
|
44
|
-
export const _DYN_AUTO_UNHANDLED_PROMI13 = "autoUnhandledPromiseInstrumented"; // Count: 3
|
|
45
|
-
export const _DYN_IS_PERFORMANCE_TIMIN14 = "isPerformanceTimingSupported"; // Count: 2
|
|
46
|
-
export const _DYN_GET_PERFORMANCE_TIMI15 = "getPerformanceTiming"; // Count: 2
|
|
47
|
-
export const _DYN_NAVIGATION_START = "navigationStart"; // Count: 4
|
|
48
|
-
export const _DYN_SHOULD_COLLECT_DURAT16 = "shouldCollectDuration"; // Count: 3
|
|
49
|
-
export const _DYN_IS_PERFORMANCE_TIMIN17 = "isPerformanceTimingDataReady"; // Count: 2
|
|
50
|
-
export const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType"; // Count: 3
|
|
51
|
-
export const _DYN_RESPONSE_START = "responseStart"; // Count: 5
|
|
52
|
-
export const _DYN_REQUEST_START = "requestStart"; // Count: 3
|
|
53
|
-
export const _DYN_LOAD_EVENT_END = "loadEventEnd"; // Count: 4
|
|
54
|
-
export const _DYN_RESPONSE_END = "responseEnd"; // Count: 5
|
|
55
|
-
export const _DYN_CONNECT_END = "connectEnd"; // Count: 4
|
|
56
|
-
export const _DYN_PAGE_VISIT_START_TIM18 = "pageVisitStartTime"; // Count: 2
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
export { AnalyticsPlugin, AnalyticsPlugin as ApplicationInsights } from "./JavaScriptSDK/AnalyticsPlugin";
|
|
5
|
-
export { IAppInsightsInternal } from "./JavaScriptSDK/Telemetry/PageViewManager";
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ApplicationInsights.ts
|
|
3
|
-
* @copyright Microsoft 2018
|
|
4
|
-
*/
|
|
5
|
-
import { IAppInsights, IAutoExceptionTelemetry, IConfig, IEventTelemetry, IExceptionTelemetry, IMetricTelemetry, IPageViewPerformanceTelemetry, IPageViewPerformanceTelemetryInternal, IPageViewTelemetry, IPageViewTelemetryInternal, ITraceTelemetry } from "@microsoft/applicationinsights-common";
|
|
6
|
-
import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, ICookieMgr, ICustomProperties, IPlugin, IProcessTelemetryContext, ITelemetryInitializerHandler, ITelemetryItem, ITelemetryPluginChain } from "@microsoft/applicationinsights-core-js";
|
|
7
|
-
import { IAppInsightsInternal } from "./Telemetry/PageViewManager";
|
|
8
|
-
export declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
9
|
-
static Version: string;
|
|
10
|
-
identifier: string;
|
|
11
|
-
priority: number;
|
|
12
|
-
readonly config: IConfig;
|
|
13
|
-
queue: Array<() => void>;
|
|
14
|
-
autoRoutePVDelay: number;
|
|
15
|
-
constructor();
|
|
16
|
-
/**
|
|
17
|
-
* Get the current cookie manager for this instance
|
|
18
|
-
*/
|
|
19
|
-
getCookieMgr(): ICookieMgr;
|
|
20
|
-
processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
21
|
-
trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
|
|
22
|
-
/**
|
|
23
|
-
* Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.
|
|
24
|
-
* @param name A string that identifies this event uniquely within the document.
|
|
25
|
-
*/
|
|
26
|
-
startTrackEvent(name: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* Log an extended event that you started timing with `startTrackEvent`.
|
|
29
|
-
* @param name The string you used to identify this event in `startTrackEvent`.
|
|
30
|
-
* @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.
|
|
31
|
-
* @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.
|
|
32
|
-
*/
|
|
33
|
-
stopTrackEvent(name: string, properties?: {
|
|
34
|
-
[key: string]: string;
|
|
35
|
-
}, measurements?: {
|
|
36
|
-
[key: string]: number;
|
|
37
|
-
}): void;
|
|
38
|
-
/**
|
|
39
|
-
* @description Log a diagnostic message
|
|
40
|
-
* @param trace
|
|
41
|
-
* @param ICustomProperties.
|
|
42
|
-
* @memberof ApplicationInsights
|
|
43
|
-
*/
|
|
44
|
-
trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
|
|
45
|
-
/**
|
|
46
|
-
* @description Log a numeric value that is not associated with a specific event. Typically
|
|
47
|
-
* used to send regular reports of performance indicators. To send single measurement, just
|
|
48
|
-
* use the name and average fields of {@link IMetricTelemetry}. If you take measurements
|
|
49
|
-
* frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
|
|
50
|
-
* and sending the resulting average at intervals
|
|
51
|
-
* @param metric - input object argument. Only name and average are mandatory.
|
|
52
|
-
* @param } customProperties additional data used to filter metrics in the
|
|
53
|
-
* portal. Defaults to empty.
|
|
54
|
-
* @memberof ApplicationInsights
|
|
55
|
-
*/
|
|
56
|
-
trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
57
|
-
/**
|
|
58
|
-
* Logs that a page or other item was viewed.
|
|
59
|
-
* @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
60
|
-
* @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
|
|
61
|
-
* If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
|
|
62
|
-
*/
|
|
63
|
-
trackPageView(pageView?: IPageViewTelemetry, customProperties?: ICustomProperties): void;
|
|
64
|
-
/**
|
|
65
|
-
* Create a page view telemetry item and send it to the SDK pipeline through the core.track API
|
|
66
|
-
* @param pageView - Page view item to be sent
|
|
67
|
-
* @param properties - Custom properties (Part C) that a user can add to the telemetry item
|
|
68
|
-
* @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
|
|
69
|
-
*/
|
|
70
|
-
sendPageViewInternal(pageView: IPageViewTelemetryInternal, properties?: {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
}, systemProperties?: {
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
}): void;
|
|
75
|
-
/**
|
|
76
|
-
* @ignore INTERNAL ONLY
|
|
77
|
-
* @param pageViewPerformance
|
|
78
|
-
* @param properties
|
|
79
|
-
*/
|
|
80
|
-
sendPageViewPerformanceInternal(pageViewPerformance: IPageViewPerformanceTelemetryInternal, properties?: {
|
|
81
|
-
[key: string]: any;
|
|
82
|
-
}, systemProperties?: {
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
}): void;
|
|
85
|
-
/**
|
|
86
|
-
* Send browser performance metrics.
|
|
87
|
-
* @param pageViewPerformance
|
|
88
|
-
* @param customProperties
|
|
89
|
-
*/
|
|
90
|
-
trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: ICustomProperties): void;
|
|
91
|
-
/**
|
|
92
|
-
* Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,
|
|
93
|
-
* but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view
|
|
94
|
-
* and send the event.
|
|
95
|
-
* @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
96
|
-
*/
|
|
97
|
-
startTrackPage(name?: string): void;
|
|
98
|
-
/**
|
|
99
|
-
* Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.
|
|
100
|
-
* The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.
|
|
101
|
-
* @param name The string you used as the name in startTrackPage. Defaults to the document title.
|
|
102
|
-
* @param url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
|
|
103
|
-
* @param properties map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
104
|
-
* @param measurements map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.
|
|
105
|
-
*/
|
|
106
|
-
stopTrackPage(name?: string, url?: string, properties?: {
|
|
107
|
-
[key: string]: string;
|
|
108
|
-
}, measurement?: {
|
|
109
|
-
[key: string]: number;
|
|
110
|
-
}): void;
|
|
111
|
-
/**
|
|
112
|
-
* @ignore INTERNAL ONLY
|
|
113
|
-
* @param exception
|
|
114
|
-
* @param properties
|
|
115
|
-
* @param systemProperties
|
|
116
|
-
*/
|
|
117
|
-
sendExceptionInternal(exception: IExceptionTelemetry, customProperties?: {
|
|
118
|
-
[key: string]: any;
|
|
119
|
-
}, systemProperties?: {
|
|
120
|
-
[key: string]: any;
|
|
121
|
-
}): void;
|
|
122
|
-
/**
|
|
123
|
-
* Log an exception you have caught.
|
|
124
|
-
*
|
|
125
|
-
* @param exception - Object which contains exception to be sent
|
|
126
|
-
* @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
127
|
-
*
|
|
128
|
-
* Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
|
|
129
|
-
* @memberof ApplicationInsights
|
|
130
|
-
*/
|
|
131
|
-
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
132
|
-
/**
|
|
133
|
-
* @description Custom error handler for Application Insights Analytics
|
|
134
|
-
* @param exception
|
|
135
|
-
* @memberof ApplicationInsights
|
|
136
|
-
*/
|
|
137
|
-
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
138
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
139
|
-
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
140
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IPageViewPerformanceTelemetryInternal, IPageViewTelemetry, IPageViewTelemetryInternal } from "@microsoft/applicationinsights-common";
|
|
2
|
-
import { IAppInsightsCore, IProcessTelemetryUnloadContext, ITelemetryUnloadState } from "@microsoft/applicationinsights-core-js";
|
|
3
|
-
import { PageViewPerformanceManager } from "./PageViewPerformanceManager";
|
|
4
|
-
/**
|
|
5
|
-
* Internal interface to pass appInsights object to subcomponents without coupling
|
|
6
|
-
*/
|
|
7
|
-
export interface IAppInsightsInternal {
|
|
8
|
-
sendPageViewInternal(pageViewItem: IPageViewTelemetryInternal, properties?: Object, systemProperties?: Object): void;
|
|
9
|
-
sendPageViewPerformanceInternal(pageViewPerformance: IPageViewPerformanceTelemetryInternal, properties?: Object, systemProperties?: Object): void;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Class encapsulates sending page views and page view performance telemetry.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PageViewManager {
|
|
15
|
-
constructor(appInsights: IAppInsightsInternal, overridePageViewDuration: boolean, core: IAppInsightsCore, pageViewPerformanceManager: PageViewPerformanceManager);
|
|
16
|
-
/**
|
|
17
|
-
* Currently supported cases:
|
|
18
|
-
* 1) (default case) track page view called with default parameters, overridePageViewDuration = false. Page view is sent with page view performance when navigation timing data is available.
|
|
19
|
-
* a. If navigation timing is not supported then page view is sent right away with undefined duration. Page view performance is not sent.
|
|
20
|
-
* 2) overridePageViewDuration = true, custom duration provided. Custom duration is used, page view sends right away.
|
|
21
|
-
* 3) overridePageViewDuration = true, custom duration NOT provided. Page view is sent right away, duration is time spent from page load till now (or undefined if navigation timing is not supported).
|
|
22
|
-
* 4) overridePageViewDuration = false, custom duration is provided. Page view is sent right away with custom duration.
|
|
23
|
-
*
|
|
24
|
-
* In all cases page view performance is sent once (only for the 1st call of trackPageView), or not sent if navigation timing is not supported.
|
|
25
|
-
*/
|
|
26
|
-
trackPageView(pageView: IPageViewTelemetry, customProperties?: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}): void;
|
|
29
|
-
teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void;
|
|
30
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IPageViewPerformanceTelemetryInternal } from "@microsoft/applicationinsights-common";
|
|
2
|
-
import { IAppInsightsCore } from "@microsoft/applicationinsights-core-js";
|
|
3
|
-
/**
|
|
4
|
-
* Class encapsulates sending page view performance telemetry.
|
|
5
|
-
*/
|
|
6
|
-
export declare class PageViewPerformanceManager {
|
|
7
|
-
constructor(core: IAppInsightsCore);
|
|
8
|
-
populatePageViewPerformanceEvent(pageViewPerformance: IPageViewPerformanceTelemetryInternal): void;
|
|
9
|
-
getPerformanceTiming(): PerformanceTiming | null;
|
|
10
|
-
/**
|
|
11
|
-
* Returns true is window performance timing API is supported, false otherwise.
|
|
12
|
-
*/
|
|
13
|
-
isPerformanceTimingSupported(): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* As page loads different parts of performance timing numbers get set. When all of them are set we can report it.
|
|
16
|
-
* Returns true if ready, false otherwise.
|
|
17
|
-
*/
|
|
18
|
-
isPerformanceTimingDataReady(): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* This method tells if given durations should be excluded from collection.
|
|
21
|
-
*/
|
|
22
|
-
shouldCollectDuration(...durations: number[]): boolean;
|
|
23
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
-
/**
|
|
3
|
-
* Used to track page visit durations
|
|
4
|
-
*/
|
|
5
|
-
export declare class PageVisitTimeManager {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a new instance of PageVisitTimeManager
|
|
8
|
-
* @param pageVisitTimeTrackingHandler - Delegate that will be called to send telemetry data to AI (when trackPreviousPageVisit is called)
|
|
9
|
-
* @returns {}
|
|
10
|
-
*/
|
|
11
|
-
constructor(logger: IDiagnosticLogger, pageVisitTimeTrackingHandler: (pageName: string, pageUrl: string, pageVisitTime: number) => void);
|
|
12
|
-
/**
|
|
13
|
-
* Tracks the previous page visit time telemetry (if exists) and starts timing of new page visit time
|
|
14
|
-
* @param currentPageName - Name of page to begin timing for visit duration
|
|
15
|
-
* @param currentPageUrl - Url of page to begin timing for visit duration
|
|
16
|
-
*/
|
|
17
|
-
trackPreviousPageVisit(currentPageName: string, currentPageUrl: string): void;
|
|
18
|
-
}
|
|
19
|
-
export declare class PageVisitData {
|
|
20
|
-
pageName: string;
|
|
21
|
-
pageUrl: string;
|
|
22
|
-
pageVisitStartTime: number;
|
|
23
|
-
pageVisitTime: number;
|
|
24
|
-
constructor(pageName: string, pageUrl: string);
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IDiagnosticLogger } from "@microsoft/applicationinsights-core-js";
|
|
2
|
-
/**
|
|
3
|
-
* Used to record timed events and page views.
|
|
4
|
-
*/
|
|
5
|
-
export declare class Timing {
|
|
6
|
-
action: (name?: string, url?: string, duration?: number, properties?: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
}, measurements?: {
|
|
9
|
-
[key: string]: number;
|
|
10
|
-
}) => void;
|
|
11
|
-
start: (name: string) => void;
|
|
12
|
-
stop: (name: string, url: string, properties?: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
}, measurements?: {
|
|
15
|
-
[key: string]: number;
|
|
16
|
-
}) => void;
|
|
17
|
-
constructor(logger: IDiagnosticLogger, name: string);
|
|
18
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface ITelemetryConfig {
|
|
2
|
-
instrumentationKey: () => string;
|
|
3
|
-
accountId: () => string;
|
|
4
|
-
sessionRenewalMs: () => number;
|
|
5
|
-
sampleRate: () => number;
|
|
6
|
-
sessionExpirationMs: () => number;
|
|
7
|
-
sdkExtension: () => string;
|
|
8
|
-
isBrowserLinkTrackingEnabled: () => boolean;
|
|
9
|
-
appId: () => string;
|
|
10
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const _DYN_TO_STRING = "toString";
|
|
2
|
-
export declare const _DYN_IS_STORAGE_USE_DISAB0 = "isStorageUseDisabled";
|
|
3
|
-
export declare const _DYN__ADD_HOOK = "_addHook";
|
|
4
|
-
export declare const _DYN_CORE = "core";
|
|
5
|
-
export declare const _DYN_DATA_TYPE = "dataType";
|
|
6
|
-
export declare const _DYN_ENVELOPE_TYPE = "envelopeType";
|
|
7
|
-
export declare const _DYN_DIAG_LOG = "diagLog";
|
|
8
|
-
export declare const _DYN_TRACK = "track";
|
|
9
|
-
export declare const _DYN_TRACK_PAGE_VIEW = "trackPageView";
|
|
10
|
-
export declare const _DYN_TRACK_PREVIOUS_PAGE_1 = "trackPreviousPageVisit";
|
|
11
|
-
export declare const _DYN_SEND_PAGE_VIEW_INTER2 = "sendPageViewInternal";
|
|
12
|
-
export declare const _DYN_SEND_PAGE_VIEW_PERFO3 = "sendPageViewPerformanceInternal";
|
|
13
|
-
export declare const _DYN_POPULATE_PAGE_VIEW_P4 = "populatePageViewPerformanceEvent";
|
|
14
|
-
export declare const _DYN_HREF = "href";
|
|
15
|
-
export declare const _DYN_SEND_EXCEPTION_INTER5 = "sendExceptionInternal";
|
|
16
|
-
export declare const _DYN_EXCEPTION = "exception";
|
|
17
|
-
export declare const _DYN_ERROR = "error";
|
|
18
|
-
export declare const _DYN__ONERROR = "_onerror";
|
|
19
|
-
export declare const _DYN_ERROR_SRC = "errorSrc";
|
|
20
|
-
export declare const _DYN_LINE_NUMBER = "lineNumber";
|
|
21
|
-
export declare const _DYN_COLUMN_NUMBER = "columnNumber";
|
|
22
|
-
export declare const _DYN_MESSAGE = "message";
|
|
23
|
-
export declare const _DYN__CREATE_AUTO_EXCEPTI6 = "CreateAutoException";
|
|
24
|
-
export declare const _DYN_ADD_TELEMETRY_INITIA7 = "addTelemetryInitializer";
|
|
25
|
-
export declare const _DYN_OVERRIDE_PAGE_VIEW_D8 = "overridePageViewDuration";
|
|
26
|
-
export declare const _DYN_DURATION = "duration";
|
|
27
|
-
export declare const _DYN_AUTO_TRACK_PAGE_VISI9 = "autoTrackPageVisitTime";
|
|
28
|
-
export declare const _DYN_IS_BROWSER_LINK_TRAC10 = "isBrowserLinkTrackingEnabled";
|
|
29
|
-
export declare const _DYN_LENGTH = "length";
|
|
30
|
-
export declare const _DYN_ENABLE_AUTO_ROUTE_TR11 = "enableAutoRouteTracking";
|
|
31
|
-
export declare const _DYN_ENABLE_UNHANDLED_PRO12 = "enableUnhandledPromiseRejectionTracking";
|
|
32
|
-
export declare const _DYN_AUTO_UNHANDLED_PROMI13 = "autoUnhandledPromiseInstrumented";
|
|
33
|
-
export declare const _DYN_IS_PERFORMANCE_TIMIN14 = "isPerformanceTimingSupported";
|
|
34
|
-
export declare const _DYN_GET_PERFORMANCE_TIMI15 = "getPerformanceTiming";
|
|
35
|
-
export declare const _DYN_NAVIGATION_START = "navigationStart";
|
|
36
|
-
export declare const _DYN_SHOULD_COLLECT_DURAT16 = "shouldCollectDuration";
|
|
37
|
-
export declare const _DYN_IS_PERFORMANCE_TIMIN17 = "isPerformanceTimingDataReady";
|
|
38
|
-
export declare const _DYN_GET_ENTRIES_BY_TYPE = "getEntriesByType";
|
|
39
|
-
export declare const _DYN_RESPONSE_START = "responseStart";
|
|
40
|
-
export declare const _DYN_REQUEST_START = "requestStart";
|
|
41
|
-
export declare const _DYN_LOAD_EVENT_END = "loadEventEnd";
|
|
42
|
-
export declare const _DYN_RESPONSE_END = "responseEnd";
|
|
43
|
-
export declare const _DYN_CONNECT_END = "connectEnd";
|
|
44
|
-
export declare const _DYN_PAGE_VISIT_START_TIM18 = "pageVisitStartTime";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.34.4"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|