@microsoft/applicationinsights-common 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-04
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/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +157 -295
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +2805 -1244
- package/dist/applicationinsights-common.api.md +78 -35
- package/dist/applicationinsights-common.d.ts +494 -282
- package/dist/applicationinsights-common.js +157 -295
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +494 -282
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +2 -2
- package/dist-esm/Interfaces/PartAExtensions.js.map +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +1 -1
- package/dist-esm/StorageHelperFuncs.js +1 -1
- package/dist-esm/Telemetry/Common/Data.js +6 -11
- package/dist-esm/Telemetry/Common/Data.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +8 -9
- package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +12 -12
- package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
- package/dist-esm/Telemetry/Event.js +9 -12
- package/dist-esm/Telemetry/Event.js.map +1 -1
- package/dist-esm/Telemetry/Exception.js +74 -81
- package/dist-esm/Telemetry/Exception.js.map +1 -1
- package/dist-esm/Telemetry/Metric.js +9 -12
- package/dist-esm/Telemetry/Metric.js.map +1 -1
- package/dist-esm/Telemetry/PageView.js +12 -15
- package/dist-esm/Telemetry/PageView.js.map +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +16 -19
- package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +17 -20
- package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
- package/dist-esm/Telemetry/Trace.js +10 -13
- package/dist-esm/Telemetry/Trace.js.map +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +1 -1
- package/dist-esm/applicationinsights-common.js +3 -6
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +3 -3
- package/src/Interfaces/IExceptionTelemetry.ts +1 -1
- package/src/Interfaces/ITraceTelemetry.ts +1 -1
- package/src/Interfaces/PartAExtensions.ts +1 -1
- package/src/Interfaces/Telemetry/IEnvelope.ts +35 -3
- package/src/Telemetry/Common/Data.ts +12 -4
- package/src/Telemetry/Common/DataPoint.ts +38 -2
- package/src/Telemetry/Common/Envelope.ts +51 -10
- package/src/Telemetry/Event.ts +30 -12
- package/src/Telemetry/Exception.ts +158 -71
- package/src/Telemetry/Metric.ts +27 -7
- package/src/Telemetry/PageView.ts +45 -10
- package/src/Telemetry/PageViewPerformance.ts +75 -13
- package/src/Telemetry/RemoteDependencyData.ts +70 -15
- package/src/Telemetry/Trace.ts +34 -8
- package/src/applicationinsights-common.ts +5 -5
- package/types/Interfaces/IExceptionTelemetry.d.ts +1 -1
- package/types/Interfaces/ITraceTelemetry.d.ts +1 -1
- package/types/Interfaces/PartAExtensions.d.ts +1 -1
- package/types/Interfaces/Telemetry/IEnvelope.d.ts +24 -0
- package/types/Telemetry/Common/Data.d.ts +10 -2
- package/types/Telemetry/Common/DataPoint.d.ts +31 -2
- package/types/Telemetry/Common/Envelope.d.ts +35 -4
- package/types/Telemetry/Event.d.ts +19 -3
- package/types/Telemetry/Exception.d.ts +75 -7
- package/types/Telemetry/Metric.d.ts +19 -2
- package/types/Telemetry/PageView.d.ts +30 -2
- package/types/Telemetry/PageViewPerformance.d.ts +50 -2
- package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
- package/types/Telemetry/Trace.d.ts +23 -3
- package/types/applicationinsights-common.d.ts +5 -5
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
- package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +0 -89
- package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
- package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
- package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
- package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Domain.js +0 -8
- package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
- package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
- package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
- package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
- package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
- package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +0 -19
- package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js.map +0 -1
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
- package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
- package/dist-esm/Telemetry/Common/Base.js +0 -22
- package/dist-esm/Telemetry/Common/Base.js.map +0 -1
- package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
- package/src/Interfaces/Contracts/Generated/Base.ts +0 -18
- package/src/Interfaces/Contracts/Generated/ContextTagKeys.ts +0 -299
- package/src/Interfaces/Contracts/Generated/Data.ts +0 -26
- package/src/Interfaces/Contracts/Generated/DataPoint.ts +0 -44
- package/src/Interfaces/Contracts/Generated/DataPointType.ts +0 -11
- package/src/Interfaces/Contracts/Generated/DependencyKind.ts +0 -12
- package/src/Interfaces/Contracts/Generated/DependencySourceType.ts +0 -12
- package/src/Interfaces/Contracts/Generated/Domain.ts +0 -10
- package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
- package/src/Interfaces/Contracts/Generated/EventData.ts +0 -33
- package/src/Interfaces/Contracts/Generated/ExceptionData.ts +0 -40
- package/src/Interfaces/Contracts/Generated/ExceptionDetails.ts +0 -46
- package/src/Interfaces/Contracts/Generated/MessageData.ts +0 -39
- package/src/Interfaces/Contracts/Generated/MetricData.ts +0 -34
- package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
- package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
- package/src/Interfaces/Contracts/Generated/RemoteDependencyData.ts +0 -68
- package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
- package/src/Interfaces/Contracts/Generated/SeverityLevel.ts +0 -15
- package/src/Interfaces/Contracts/Generated/StackFrame.ts +0 -34
- package/src/Telemetry/Common/Base.ts +0 -14
- package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
- package/types/Interfaces/Contracts/Generated/Base.d.ts +0 -10
- package/types/Interfaces/Contracts/Generated/ContextTagKeys.d.ts +0 -175
- package/types/Interfaces/Contracts/Generated/Data.d.ts +0 -15
- package/types/Interfaces/Contracts/Generated/DataPoint.d.ts +0 -34
- package/types/Interfaces/Contracts/Generated/DataPointType.d.ts +0 -7
- package/types/Interfaces/Contracts/Generated/DependencyKind.d.ts +0 -8
- package/types/Interfaces/Contracts/Generated/DependencySourceType.d.ts +0 -8
- package/types/Interfaces/Contracts/Generated/Domain.d.ts +0 -5
- package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
- package/types/Interfaces/Contracts/Generated/EventData.d.ts +0 -23
- package/types/Interfaces/Contracts/Generated/ExceptionData.d.ts +0 -29
- package/types/Interfaces/Contracts/Generated/ExceptionDetails.d.ts +0 -34
- package/types/Interfaces/Contracts/Generated/MessageData.d.ts +0 -28
- package/types/Interfaces/Contracts/Generated/MetricData.d.ts +0 -24
- package/types/Interfaces/Contracts/Generated/PageViewData.d.ts +0 -35
- package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
- package/types/Interfaces/Contracts/Generated/RemoteDependencyData.d.ts +0 -51
- package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
- package/types/Interfaces/Contracts/Generated/SeverityLevel.d.ts +0 -10
- package/types/Interfaces/Contracts/Generated/StackFrame.d.ts +0 -25
- package/types/Telemetry/Common/Base.d.ts +0 -8
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { createClassFromInterface } from "@microsoft/applicationinsights-core-js";
|
|
5
|
-
|
|
6
|
-
function _aiNameFunc(baseName: string) {
|
|
7
|
-
let aiName = "ai." + baseName + ".";
|
|
8
|
-
return function(name: string) {
|
|
9
|
-
return aiName + name;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
let _aiApplication = _aiNameFunc("application");
|
|
14
|
-
let _aiDevice = _aiNameFunc("device");
|
|
15
|
-
let _aiLocation = _aiNameFunc("location");
|
|
16
|
-
let _aiOperation = _aiNameFunc("operation");
|
|
17
|
-
let _aiSession = _aiNameFunc("session");
|
|
18
|
-
let _aiUser = _aiNameFunc("user");
|
|
19
|
-
let _aiCloud = _aiNameFunc("cloud");
|
|
20
|
-
let _aiInternal = _aiNameFunc("internal");
|
|
21
|
-
|
|
22
|
-
export interface IContextTagKeys {
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Application version. Information in the application context fields is always about the application that is sending the telemetry.
|
|
26
|
-
*/
|
|
27
|
-
readonly applicationVersion: string;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Application build.
|
|
31
|
-
*/
|
|
32
|
-
readonly applicationBuild: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Application type id.
|
|
36
|
-
*/
|
|
37
|
-
readonly applicationTypeId: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Application id.
|
|
41
|
-
*/
|
|
42
|
-
readonly applicationId: string;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Application layer.
|
|
46
|
-
*/
|
|
47
|
-
readonly applicationLayer: string;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Unique client device id. Computer name in most cases.
|
|
51
|
-
*/
|
|
52
|
-
readonly deviceId: string;
|
|
53
|
-
readonly deviceIp: string;
|
|
54
|
-
readonly deviceLanguage: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
|
|
58
|
-
*/
|
|
59
|
-
readonly deviceLocale: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.
|
|
63
|
-
*/
|
|
64
|
-
readonly deviceModel: string;
|
|
65
|
-
readonly deviceFriendlyName: string;
|
|
66
|
-
readonly deviceNetwork: string;
|
|
67
|
-
readonly deviceNetworkName: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Client device OEM name taken from the browser.
|
|
71
|
-
*/
|
|
72
|
-
readonly deviceOEMName: string;
|
|
73
|
-
readonly deviceOS: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'
|
|
77
|
-
*/
|
|
78
|
-
readonly deviceOSVersion: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.
|
|
82
|
-
*/
|
|
83
|
-
readonly deviceRoleInstance: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Name of the role application is part of. Maps directly to the role name in azure.
|
|
87
|
-
*/
|
|
88
|
-
readonly deviceRoleName: string;
|
|
89
|
-
readonly deviceScreenResolution: string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.
|
|
93
|
-
*/
|
|
94
|
-
readonly deviceType: string;
|
|
95
|
-
readonly deviceMachineName: string;
|
|
96
|
-
readonly deviceVMName: string;
|
|
97
|
-
readonly deviceBrowser: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The browser name and version as reported by the browser.
|
|
101
|
-
*/
|
|
102
|
-
readonly deviceBrowserVersion: string;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* The IP address of the client device. IPv4 and IPv6 are supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
|
|
106
|
-
*/
|
|
107
|
-
readonly locationIp: string;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The country of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
|
|
111
|
-
*/
|
|
112
|
-
readonly locationCountry: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* The province/state of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
|
|
116
|
-
*/
|
|
117
|
-
readonly locationProvince: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The city of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
|
|
121
|
-
*/
|
|
122
|
-
readonly locationCity: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.
|
|
126
|
-
*/
|
|
127
|
-
readonly operationId: string;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').
|
|
131
|
-
*/
|
|
132
|
-
readonly operationName: string;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* The unique identifier of the telemetry item's immediate parent.
|
|
136
|
-
*/
|
|
137
|
-
readonly operationParentId: string;
|
|
138
|
-
readonly operationRootId: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.
|
|
142
|
-
*/
|
|
143
|
-
readonly operationSyntheticSource: string;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
|
|
147
|
-
*/
|
|
148
|
-
readonly operationCorrelationVector: string;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.
|
|
152
|
-
*/
|
|
153
|
-
readonly sessionId: string;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
|
|
157
|
-
*/
|
|
158
|
-
readonly sessionIsFirst: string;
|
|
159
|
-
readonly sessionIsNew: string;
|
|
160
|
-
readonly userAccountAcquisitionDate: string;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.
|
|
164
|
-
*/
|
|
165
|
-
readonly userAccountId: string;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.
|
|
169
|
-
*/
|
|
170
|
-
readonly userAgent: string;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.
|
|
174
|
-
*/
|
|
175
|
-
readonly userId: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Store region for UWP applications.
|
|
179
|
-
*/
|
|
180
|
-
readonly userStoreRegion: string;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.
|
|
184
|
-
*/
|
|
185
|
-
readonly userAuthUserId: string;
|
|
186
|
-
readonly userAnonymousUserAcquisitionDate: string;
|
|
187
|
-
readonly userAuthenticatedUserAcquisitionDate: string;
|
|
188
|
-
readonly cloudName: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Name of the role the application is a part of. Maps directly to the role name in azure.
|
|
192
|
-
*/
|
|
193
|
-
readonly cloudRole: string;
|
|
194
|
-
readonly cloudRoleVer: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.
|
|
198
|
-
*/
|
|
199
|
-
readonly cloudRoleInstance: string;
|
|
200
|
-
readonly cloudEnvironment: string;
|
|
201
|
-
readonly cloudLocation: string;
|
|
202
|
-
readonly cloudDeploymentUnit: string;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
|
|
206
|
-
*/
|
|
207
|
-
readonly internalSdkVersion: string;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
|
|
211
|
-
*/
|
|
212
|
-
readonly internalAgentVersion: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* This is the node name used for billing purposes. Use it to override the standard detection of nodes.
|
|
216
|
-
*/
|
|
217
|
-
readonly internalNodeName: string;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* This identifies the version of the snippet that was used to initialize the SDK
|
|
221
|
-
*/
|
|
222
|
-
readonly internalSnippet: string;
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* This identifies the source of the Sdk script (used to identify whether the SDK was loaded via the CDN)
|
|
226
|
-
*/
|
|
227
|
-
readonly internalSdkSrc: string;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export class ContextTagKeys extends createClassFromInterface<IContextTagKeys>({
|
|
231
|
-
applicationVersion: _aiApplication("ver"),
|
|
232
|
-
applicationBuild: _aiApplication("build"),
|
|
233
|
-
applicationTypeId: _aiApplication("typeId"),
|
|
234
|
-
applicationId: _aiApplication("applicationId"),
|
|
235
|
-
applicationLayer: _aiApplication("layer"),
|
|
236
|
-
|
|
237
|
-
deviceId: _aiDevice("id"),
|
|
238
|
-
deviceIp: _aiDevice("ip"),
|
|
239
|
-
deviceLanguage: _aiDevice("language"),
|
|
240
|
-
deviceLocale: _aiDevice("locale"),
|
|
241
|
-
deviceModel: _aiDevice("model"),
|
|
242
|
-
deviceFriendlyName: _aiDevice("friendlyName"),
|
|
243
|
-
deviceNetwork: _aiDevice("network"),
|
|
244
|
-
deviceNetworkName: _aiDevice("networkName"),
|
|
245
|
-
deviceOEMName: _aiDevice("oemName"),
|
|
246
|
-
deviceOS: _aiDevice("os"),
|
|
247
|
-
deviceOSVersion: _aiDevice("osVersion"),
|
|
248
|
-
deviceRoleInstance: _aiDevice("roleInstance"),
|
|
249
|
-
deviceRoleName: _aiDevice("roleName"),
|
|
250
|
-
deviceScreenResolution: _aiDevice("screenResolution"),
|
|
251
|
-
deviceType: _aiDevice("type"),
|
|
252
|
-
deviceMachineName: _aiDevice("machineName"),
|
|
253
|
-
deviceVMName: _aiDevice("vmName"),
|
|
254
|
-
deviceBrowser: _aiDevice("browser"),
|
|
255
|
-
deviceBrowserVersion: _aiDevice("browserVersion"),
|
|
256
|
-
|
|
257
|
-
locationIp: _aiLocation("ip"),
|
|
258
|
-
locationCountry: _aiLocation("country"),
|
|
259
|
-
locationProvince: _aiLocation("province"),
|
|
260
|
-
locationCity: _aiLocation("city"),
|
|
261
|
-
|
|
262
|
-
operationId: _aiOperation("id"),
|
|
263
|
-
operationName: _aiOperation("name"),
|
|
264
|
-
operationParentId: _aiOperation("parentId"),
|
|
265
|
-
operationRootId: _aiOperation("rootId"),
|
|
266
|
-
operationSyntheticSource: _aiOperation("syntheticSource"),
|
|
267
|
-
operationCorrelationVector: _aiOperation("correlationVector"),
|
|
268
|
-
|
|
269
|
-
sessionId: _aiSession("id"),
|
|
270
|
-
sessionIsFirst: _aiSession("isFirst"),
|
|
271
|
-
sessionIsNew: _aiSession("isNew"),
|
|
272
|
-
|
|
273
|
-
userAccountAcquisitionDate: _aiUser("accountAcquisitionDate"),
|
|
274
|
-
userAccountId: _aiUser("accountId"),
|
|
275
|
-
userAgent: _aiUser("userAgent"),
|
|
276
|
-
userId: _aiUser("id"),
|
|
277
|
-
userStoreRegion: _aiUser("storeRegion"),
|
|
278
|
-
userAuthUserId: _aiUser("authUserId"),
|
|
279
|
-
userAnonymousUserAcquisitionDate: _aiUser("anonUserAcquisitionDate"),
|
|
280
|
-
userAuthenticatedUserAcquisitionDate: _aiUser("authUserAcquisitionDate"),
|
|
281
|
-
|
|
282
|
-
cloudName: _aiCloud("name"),
|
|
283
|
-
cloudRole: _aiCloud("role"),
|
|
284
|
-
cloudRoleVer: _aiCloud("roleVer"),
|
|
285
|
-
cloudRoleInstance: _aiCloud("roleInstance"),
|
|
286
|
-
cloudEnvironment: _aiCloud("environment"),
|
|
287
|
-
cloudLocation: _aiCloud("location"),
|
|
288
|
-
cloudDeploymentUnit: _aiCloud("deploymentUnit"),
|
|
289
|
-
|
|
290
|
-
internalNodeName: _aiInternal("nodeName"),
|
|
291
|
-
internalSdkVersion: _aiInternal("sdkVersion"),
|
|
292
|
-
internalAgentVersion: _aiInternal("agentVersion"),
|
|
293
|
-
internalSnippet: _aiInternal("snippet"),
|
|
294
|
-
internalSdkSrc: _aiInternal("sdkSrc")
|
|
295
|
-
}) {
|
|
296
|
-
constructor() {
|
|
297
|
-
super();
|
|
298
|
-
}
|
|
299
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
|
-
import { Base } from "./Base";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Data struct to contain both B and C sections.
|
|
9
|
-
*/
|
|
10
|
-
export class Data<TDomain> extends Base {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
14
|
-
*/
|
|
15
|
-
public baseType: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Container for data item (B section).
|
|
19
|
-
*/
|
|
20
|
-
public baseData: TDomain;
|
|
21
|
-
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { DataPointType } from "./DataPointType";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Metric data single measurement.
|
|
7
|
-
*/
|
|
8
|
-
export class DataPoint {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Name of the metric.
|
|
12
|
-
*/
|
|
13
|
-
public name: string;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Metric type. Single measurement or the aggregated value.
|
|
17
|
-
*/
|
|
18
|
-
public kind: DataPointType = DataPointType.Measurement;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Single value for measurement. Sum of individual measurements for the aggregation.
|
|
22
|
-
*/
|
|
23
|
-
public value: number;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Metric weight of the aggregated metric. Should not be set for a measurement.
|
|
27
|
-
*/
|
|
28
|
-
public count: number;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Minimum value of the aggregated metric. Should not be set for a measurement.
|
|
32
|
-
*/
|
|
33
|
-
public min: number;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Maximum value of the aggregated metric. Should not be set for a measurement.
|
|
37
|
-
*/
|
|
38
|
-
public max: number;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Standard deviation of the aggregated metric. Should not be set for a measurement.
|
|
42
|
-
*/
|
|
43
|
-
public stdDev: number;
|
|
44
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
|
-
/**
|
|
6
|
-
* Identifies the source of the dependency.
|
|
7
|
-
*/
|
|
8
|
-
export enum DependencySourceType {
|
|
9
|
-
Undefined = 0,
|
|
10
|
-
Aic = 1,
|
|
11
|
-
Apmc = 2,
|
|
12
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Base } from "./Base";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* System variables for a telemetry item.
|
|
8
|
-
*/
|
|
9
|
-
export class Envelope {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
|
|
13
|
-
*/
|
|
14
|
-
public ver: number = 1;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Type name of telemetry data item.
|
|
18
|
-
*/
|
|
19
|
-
public name: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
|
|
23
|
-
*/
|
|
24
|
-
public time: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
|
|
28
|
-
*/
|
|
29
|
-
public sampleRate: number = 100.0;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Sequence field used to track absolute order of uploaded events.
|
|
33
|
-
*/
|
|
34
|
-
public seq: string;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
|
|
38
|
-
*/
|
|
39
|
-
public iKey: string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
|
|
43
|
-
*/
|
|
44
|
-
public tags: any = {};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Telemetry data item.
|
|
48
|
-
*/
|
|
49
|
-
public data: Base;
|
|
50
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Domain } from "./Domain";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.
|
|
8
|
-
*/
|
|
9
|
-
export class EventData implements Domain {
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Schema version
|
|
13
|
-
*/
|
|
14
|
-
public ver: number = 2;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
18
|
-
*/
|
|
19
|
-
public name: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Collection of custom properties.
|
|
23
|
-
*/
|
|
24
|
-
public properties: any = {};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Collection of custom measurements.
|
|
28
|
-
*/
|
|
29
|
-
public measurements: any = {};
|
|
30
|
-
|
|
31
|
-
constructor() {
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { ExceptionDetails } from "./ExceptionDetails";
|
|
5
|
-
import { Domain } from "./Domain";
|
|
6
|
-
import { SeverityLevel } from "./SeverityLevel";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
10
|
-
*/
|
|
11
|
-
export class ExceptionData implements Domain {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Schema version
|
|
15
|
-
*/
|
|
16
|
-
public ver: number = 2;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Exception chain - list of inner exceptions.
|
|
20
|
-
*/
|
|
21
|
-
public exceptions: ExceptionDetails[] = [];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
25
|
-
*/
|
|
26
|
-
public severityLevel: SeverityLevel;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Collection of custom properties.
|
|
30
|
-
*/
|
|
31
|
-
public properties: any = {};
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Collection of custom measurements.
|
|
35
|
-
*/
|
|
36
|
-
public measurements: any = {};
|
|
37
|
-
|
|
38
|
-
constructor() {
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
// THIS FILE WAS AUTOGENERATED
|
|
5
|
-
import { StackFrame } from "./StackFrame";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Exception details of the exception in a chain.
|
|
9
|
-
*/
|
|
10
|
-
export class ExceptionDetails {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
14
|
-
*/
|
|
15
|
-
public id: number;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
|
|
19
|
-
*/
|
|
20
|
-
public outerId: number;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Exception type name.
|
|
24
|
-
*/
|
|
25
|
-
public typeName: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Exception message.
|
|
29
|
-
*/
|
|
30
|
-
public message: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
|
|
34
|
-
*/
|
|
35
|
-
public hasFullStack: boolean = true;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Text describing the stack. Either stack or parsedStack should have a value.
|
|
39
|
-
*/
|
|
40
|
-
public stack: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* List of stack frames. Either stack or parsedStack should have a value.
|
|
44
|
-
*/
|
|
45
|
-
public parsedStack: StackFrame[] = [];
|
|
46
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Domain } from "./Domain";
|
|
5
|
-
import { SeverityLevel } from "./SeverityLevel";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.
|
|
9
|
-
*/
|
|
10
|
-
export class MessageData implements Domain {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Schema version
|
|
14
|
-
*/
|
|
15
|
-
public ver: number = 2;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Trace message
|
|
19
|
-
*/
|
|
20
|
-
public message: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Trace severity level.
|
|
24
|
-
*/
|
|
25
|
-
public severityLevel: SeverityLevel;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Collection of custom properties.
|
|
29
|
-
*/
|
|
30
|
-
public properties: any = {};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Collection of custom measurements.
|
|
34
|
-
*/
|
|
35
|
-
public measurements: any = {};
|
|
36
|
-
|
|
37
|
-
constructor() {
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { Domain } from "./Domain";
|
|
5
|
-
import { DataPoint } from "./DataPoint";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
9
|
-
*/
|
|
10
|
-
export class MetricData implements Domain {
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Schema version
|
|
14
|
-
*/
|
|
15
|
-
public ver: number = 2;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.
|
|
19
|
-
*/
|
|
20
|
-
public metrics: DataPoint[] = [];
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Collection of custom properties.
|
|
24
|
-
*/
|
|
25
|
-
public properties: any = {};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Collection of custom measurements.
|
|
29
|
-
*/
|
|
30
|
-
public measurements: any = {};
|
|
31
|
-
|
|
32
|
-
constructor() {
|
|
33
|
-
}
|
|
34
|
-
}
|