@microsoft/applicationinsights-common 2.8.0-beta.2203-16 → 2.8.0-nightly.2204-05
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 +521 -743
- 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 +2816 -1246
- package/dist/applicationinsights-common.api.md +87 -43
- package/dist/applicationinsights-common.d.ts +503 -290
- package/dist/applicationinsights-common.js +521 -743
- 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 +503 -290
- 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 +8 -8
- package/dist-esm/StorageHelperFuncs.js.map +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 +9 -9
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +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/StorageHelperFuncs.ts +7 -7
- package/src/Telemetry/Common/Data.ts +12 -4
- package/src/Telemetry/Common/DataPoint.ts +38 -2
- package/src/Telemetry/Common/DataSanitizer.ts +10 -10
- 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 +76 -14
- package/src/Telemetry/RemoteDependencyData.ts +70 -15
- package/src/Telemetry/Trace.ts +34 -8
- package/src/applicationinsights-common.ts +5 -5
- package/types/Enums.d.ts +4 -4
- 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/DataSanitizer.d.ts +3 -3
- 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,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 2.8.0-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
declare namespace ApplicationInsights {
|
|
10
|
+
import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
|
|
11
|
+
import { EnumValue } from '@microsoft/applicationinsights-core-js';
|
|
10
12
|
import { IChannelControls } from '@microsoft/applicationinsights-core-js';
|
|
11
13
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
12
14
|
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
13
15
|
import { ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';
|
|
14
16
|
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
15
17
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
16
|
-
import { _InternalMessageId } from '@microsoft/applicationinsights-core-js';
|
|
17
18
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
18
19
|
import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
|
|
19
20
|
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
@@ -21,18 +22,17 @@ declare namespace ApplicationInsights {
|
|
|
21
22
|
/**
|
|
22
23
|
* Data struct to contain only C section with custom fields.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
interface AIBase {
|
|
25
26
|
/**
|
|
26
27
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
27
28
|
*/
|
|
28
29
|
baseType: string;
|
|
29
|
-
constructor();
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Data struct to contain both B and C sections.
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
interface AIData<TDomain> extends AIBase {
|
|
36
36
|
/**
|
|
37
37
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
38
38
|
*/
|
|
@@ -41,7 +41,6 @@ declare namespace ApplicationInsights {
|
|
|
41
41
|
* Container for data item (B section).
|
|
42
42
|
*/
|
|
43
43
|
baseData: TDomain;
|
|
44
|
-
constructor();
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
|
|
@@ -74,7 +73,7 @@ declare namespace ApplicationInsights {
|
|
|
74
73
|
|
|
75
74
|
let CtxTagKeys: ContextTagKeys;
|
|
76
75
|
|
|
77
|
-
class Data<TDomain>
|
|
76
|
+
class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
78
77
|
/**
|
|
79
78
|
* The data contract for serializing this object.
|
|
80
79
|
*/
|
|
@@ -82,16 +81,33 @@ declare namespace ApplicationInsights {
|
|
|
82
81
|
baseType: FieldType;
|
|
83
82
|
baseData: FieldType;
|
|
84
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
86
|
+
*/
|
|
87
|
+
baseType: string;
|
|
88
|
+
/**
|
|
89
|
+
* Container for data item (B section).
|
|
90
|
+
*/
|
|
91
|
+
baseData: TDomain;
|
|
85
92
|
/**
|
|
86
93
|
* Constructs a new instance of telemetry data.
|
|
87
94
|
*/
|
|
88
95
|
constructor(baseType: string, data: TDomain);
|
|
89
96
|
}
|
|
90
97
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
class DataPoint implements IDataPoint, ISerializable {
|
|
99
|
+
/**
|
|
100
|
+
* The data contract for serializing this object.
|
|
101
|
+
*/
|
|
102
|
+
aiDataContract: {
|
|
103
|
+
name: FieldType;
|
|
104
|
+
kind: FieldType;
|
|
105
|
+
value: FieldType;
|
|
106
|
+
count: FieldType;
|
|
107
|
+
min: FieldType;
|
|
108
|
+
max: FieldType;
|
|
109
|
+
stdDev: FieldType;
|
|
110
|
+
};
|
|
95
111
|
/**
|
|
96
112
|
* Name of the metric.
|
|
97
113
|
*/
|
|
@@ -125,7 +141,7 @@ declare namespace ApplicationInsights {
|
|
|
125
141
|
/**
|
|
126
142
|
* Type of the metric data measurement.
|
|
127
143
|
*/
|
|
128
|
-
enum DataPointType {
|
|
144
|
+
const enum DataPointType {
|
|
129
145
|
Measurement = 0,
|
|
130
146
|
Aggregation = 1
|
|
131
147
|
}
|
|
@@ -134,7 +150,7 @@ declare namespace ApplicationInsights {
|
|
|
134
150
|
|
|
135
151
|
function dataSanitizeId(logger: IDiagnosticLogger, id: string): string;
|
|
136
152
|
|
|
137
|
-
function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId:
|
|
153
|
+
function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId): any;
|
|
138
154
|
|
|
139
155
|
function dataSanitizeKey(logger: IDiagnosticLogger, name: any): any;
|
|
140
156
|
|
|
@@ -206,20 +222,14 @@ declare namespace ApplicationInsights {
|
|
|
206
222
|
*/
|
|
207
223
|
const DisabledPropertyName: string;
|
|
208
224
|
|
|
209
|
-
const DistributedTracingModes: {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
225
|
+
const DistributedTracingModes: EnumValue< {
|
|
226
|
+
AI: number;
|
|
227
|
+
AI_AND_W3C: number;
|
|
228
|
+
W3C: number;
|
|
229
|
+
}>;
|
|
214
230
|
|
|
215
231
|
type DistributedTracingModes = number | eDistributedTracingModes;
|
|
216
232
|
|
|
217
|
-
/**
|
|
218
|
-
* The abstract common base of all domains.
|
|
219
|
-
*/
|
|
220
|
-
interface Domain {
|
|
221
|
-
}
|
|
222
|
-
|
|
223
233
|
function dsPadNumber(num: number): string;
|
|
224
234
|
|
|
225
235
|
const enum eDistributedTracingModes {
|
|
@@ -237,21 +247,11 @@ declare namespace ApplicationInsights {
|
|
|
237
247
|
W3C = 2
|
|
238
248
|
}
|
|
239
249
|
|
|
240
|
-
class Envelope
|
|
250
|
+
class Envelope implements IEnvelope {
|
|
241
251
|
/**
|
|
242
252
|
* The data contract for serializing this object.
|
|
243
253
|
*/
|
|
244
254
|
aiDataContract: any;
|
|
245
|
-
/**
|
|
246
|
-
* Constructs a new instance of telemetry data.
|
|
247
|
-
*/
|
|
248
|
-
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* System variables for a telemetry item.
|
|
253
|
-
*/
|
|
254
|
-
class Envelope_2 {
|
|
255
255
|
/**
|
|
256
256
|
* 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.
|
|
257
257
|
*/
|
|
@@ -284,9 +284,13 @@ declare namespace ApplicationInsights {
|
|
|
284
284
|
* Telemetry data item.
|
|
285
285
|
*/
|
|
286
286
|
data: AIBase;
|
|
287
|
+
/**
|
|
288
|
+
* Constructs a new instance of telemetry data.
|
|
289
|
+
*/
|
|
290
|
+
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
287
291
|
}
|
|
288
292
|
|
|
289
|
-
class Event_2
|
|
293
|
+
class Event_2 implements IEventData, ISerializable {
|
|
290
294
|
static envelopeType: string;
|
|
291
295
|
static dataType: string;
|
|
292
296
|
aiDataContract: {
|
|
@@ -295,17 +299,6 @@ declare namespace ApplicationInsights {
|
|
|
295
299
|
properties: FieldType;
|
|
296
300
|
measurements: FieldType;
|
|
297
301
|
};
|
|
298
|
-
/**
|
|
299
|
-
* Constructs a new instance of the EventTelemetry object
|
|
300
|
-
*/
|
|
301
|
-
constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
|
|
302
|
-
}
|
|
303
|
-
export { Event_2 as Event }
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* 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.
|
|
307
|
-
*/
|
|
308
|
-
class EventData implements Domain {
|
|
309
302
|
/**
|
|
310
303
|
* Schema version
|
|
311
304
|
*/
|
|
@@ -322,10 +315,14 @@ declare namespace ApplicationInsights {
|
|
|
322
315
|
* Collection of custom measurements.
|
|
323
316
|
*/
|
|
324
317
|
measurements: any;
|
|
325
|
-
|
|
318
|
+
/**
|
|
319
|
+
* Constructs a new instance of the EventTelemetry object
|
|
320
|
+
*/
|
|
321
|
+
constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
|
|
326
322
|
}
|
|
323
|
+
export { Event_2 as Event }
|
|
327
324
|
|
|
328
|
-
class Exception
|
|
325
|
+
class Exception implements IExceptionData, ISerializable {
|
|
329
326
|
static envelopeType: string;
|
|
330
327
|
static dataType: string;
|
|
331
328
|
id?: string;
|
|
@@ -338,30 +335,6 @@ declare namespace ApplicationInsights {
|
|
|
338
335
|
properties: FieldType;
|
|
339
336
|
measurements: FieldType;
|
|
340
337
|
};
|
|
341
|
-
/**
|
|
342
|
-
* Constructs a new instance of the ExceptionTelemetry object
|
|
343
|
-
*/
|
|
344
|
-
constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
|
|
345
|
-
[key: string]: any;
|
|
346
|
-
}, measurements?: {
|
|
347
|
-
[key: string]: number;
|
|
348
|
-
}, severityLevel?: SeverityLevel, id?: string);
|
|
349
|
-
static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
|
|
350
|
-
static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
|
|
351
|
-
[key: string]: number;
|
|
352
|
-
}): Exception;
|
|
353
|
-
toInterface(): IExceptionInternal;
|
|
354
|
-
/**
|
|
355
|
-
* Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
|
|
356
|
-
*/
|
|
357
|
-
static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
|
|
358
|
-
static formatError: typeof _formatErrorCode;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
363
|
-
*/
|
|
364
|
-
class ExceptionData implements Domain {
|
|
365
338
|
/**
|
|
366
339
|
* Schema version
|
|
367
340
|
*/
|
|
@@ -369,7 +342,7 @@ declare namespace ApplicationInsights {
|
|
|
369
342
|
/**
|
|
370
343
|
* Exception chain - list of inner exceptions.
|
|
371
344
|
*/
|
|
372
|
-
exceptions:
|
|
345
|
+
exceptions: IExceptionDetails[];
|
|
373
346
|
/**
|
|
374
347
|
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
375
348
|
*/
|
|
@@ -382,41 +355,24 @@ declare namespace ApplicationInsights {
|
|
|
382
355
|
* Collection of custom measurements.
|
|
383
356
|
*/
|
|
384
357
|
measurements: any;
|
|
385
|
-
constructor();
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* Exception details of the exception in a chain.
|
|
390
|
-
*/
|
|
391
|
-
class ExceptionDetails {
|
|
392
|
-
/**
|
|
393
|
-
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
394
|
-
*/
|
|
395
|
-
id: number;
|
|
396
|
-
/**
|
|
397
|
-
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
|
|
398
|
-
*/
|
|
399
|
-
outerId: number;
|
|
400
358
|
/**
|
|
401
|
-
*
|
|
402
|
-
*/
|
|
403
|
-
typeName: string;
|
|
404
|
-
/**
|
|
405
|
-
* Exception message.
|
|
406
|
-
*/
|
|
407
|
-
message: string;
|
|
408
|
-
/**
|
|
409
|
-
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
|
|
410
|
-
*/
|
|
411
|
-
hasFullStack: boolean;
|
|
412
|
-
/**
|
|
413
|
-
* Text describing the stack. Either stack or parsedStack should have a value.
|
|
359
|
+
* Constructs a new instance of the ExceptionTelemetry object
|
|
414
360
|
*/
|
|
415
|
-
|
|
361
|
+
constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
|
|
362
|
+
[key: string]: any;
|
|
363
|
+
}, measurements?: {
|
|
364
|
+
[key: string]: number;
|
|
365
|
+
}, severityLevel?: SeverityLevel, id?: string);
|
|
366
|
+
static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
|
|
367
|
+
static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
|
|
368
|
+
[key: string]: number;
|
|
369
|
+
}): Exception;
|
|
370
|
+
toInterface(): IExceptionInternal;
|
|
416
371
|
/**
|
|
417
|
-
*
|
|
372
|
+
* Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
|
|
418
373
|
*/
|
|
419
|
-
|
|
374
|
+
static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
|
|
375
|
+
static formatError: typeof _formatErrorCode;
|
|
420
376
|
}
|
|
421
377
|
|
|
422
378
|
const Extensions: {
|
|
@@ -1111,6 +1067,40 @@ declare namespace ApplicationInsights {
|
|
|
1111
1067
|
getCorrelationContextValue(responseHeader: string, key: string): string | undefined;
|
|
1112
1068
|
}
|
|
1113
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* Metric data single measurement.
|
|
1072
|
+
*/
|
|
1073
|
+
interface IDataPoint {
|
|
1074
|
+
/**
|
|
1075
|
+
* Name of the metric.
|
|
1076
|
+
*/
|
|
1077
|
+
name: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Metric type. Single measurement or the aggregated value.
|
|
1080
|
+
*/
|
|
1081
|
+
kind: DataPointType;
|
|
1082
|
+
/**
|
|
1083
|
+
* Single value for measurement. Sum of individual measurements for the aggregation.
|
|
1084
|
+
*/
|
|
1085
|
+
value: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Metric weight of the aggregated metric. Should not be set for a measurement.
|
|
1088
|
+
*/
|
|
1089
|
+
count: number;
|
|
1090
|
+
/**
|
|
1091
|
+
* Minimum value of the aggregated metric. Should not be set for a measurement.
|
|
1092
|
+
*/
|
|
1093
|
+
min: number;
|
|
1094
|
+
/**
|
|
1095
|
+
* Maximum value of the aggregated metric. Should not be set for a measurement.
|
|
1096
|
+
*/
|
|
1097
|
+
max: number;
|
|
1098
|
+
/**
|
|
1099
|
+
* Standard deviation of the aggregated metric. Should not be set for a measurement.
|
|
1100
|
+
*/
|
|
1101
|
+
stdDev: number;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1114
1104
|
interface IDataSanitizer {
|
|
1115
1105
|
/**
|
|
1116
1106
|
* Max length allowed for custom names.
|
|
@@ -1149,7 +1139,7 @@ declare namespace ApplicationInsights {
|
|
|
1149
1139
|
sanitizeProperties: (logger: IDiagnosticLogger, properties: any) => any;
|
|
1150
1140
|
sanitizeMeasurements: (logger: IDiagnosticLogger, measurements: any) => any;
|
|
1151
1141
|
sanitizeId: (logger: IDiagnosticLogger, id: string) => string;
|
|
1152
|
-
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId:
|
|
1142
|
+
sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId) => any;
|
|
1153
1143
|
padNumber: (num: number) => string;
|
|
1154
1144
|
/**
|
|
1155
1145
|
* helper method to trim strings (IE8 does not implement String.prototype.trim)
|
|
@@ -1208,19 +1198,71 @@ declare namespace ApplicationInsights {
|
|
|
1208
1198
|
ip: string;
|
|
1209
1199
|
}
|
|
1210
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* The abstract common base of all domains.
|
|
1203
|
+
*/
|
|
1204
|
+
interface IDomain {
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1211
1207
|
interface IEnvelope extends ISerializable {
|
|
1208
|
+
/**
|
|
1209
|
+
* 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.
|
|
1210
|
+
*/
|
|
1212
1211
|
ver: number;
|
|
1212
|
+
/**
|
|
1213
|
+
* Type name of telemetry data item.
|
|
1214
|
+
*/
|
|
1213
1215
|
name: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* 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.
|
|
1218
|
+
*/
|
|
1214
1219
|
time: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
|
|
1222
|
+
*/
|
|
1215
1223
|
sampleRate: number;
|
|
1224
|
+
/**
|
|
1225
|
+
* Sequence field used to track absolute order of uploaded events.
|
|
1226
|
+
*/
|
|
1216
1227
|
seq: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* 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.
|
|
1230
|
+
*/
|
|
1217
1231
|
iKey: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
|
|
1234
|
+
*/
|
|
1218
1235
|
tags: {
|
|
1219
1236
|
[name: string]: any;
|
|
1220
1237
|
};
|
|
1238
|
+
/**
|
|
1239
|
+
* Telemetry data item.
|
|
1240
|
+
*/
|
|
1221
1241
|
data: any;
|
|
1222
1242
|
}
|
|
1223
1243
|
|
|
1244
|
+
/**
|
|
1245
|
+
* 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.
|
|
1246
|
+
*/
|
|
1247
|
+
interface IEventData extends IDomain {
|
|
1248
|
+
/**
|
|
1249
|
+
* Schema version
|
|
1250
|
+
*/
|
|
1251
|
+
ver: number;
|
|
1252
|
+
/**
|
|
1253
|
+
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
1254
|
+
*/
|
|
1255
|
+
name: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Collection of custom properties.
|
|
1258
|
+
*/
|
|
1259
|
+
properties: any;
|
|
1260
|
+
/**
|
|
1261
|
+
* Collection of custom measurements.
|
|
1262
|
+
*/
|
|
1263
|
+
measurements: any;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1224
1266
|
interface IEventTelemetry extends IPartC {
|
|
1225
1267
|
/**
|
|
1226
1268
|
* @description An event name string
|
|
@@ -1236,57 +1278,117 @@ declare namespace ApplicationInsights {
|
|
|
1236
1278
|
iKey?: string;
|
|
1237
1279
|
}
|
|
1238
1280
|
|
|
1239
|
-
interface IExceptionDetailsInternal {
|
|
1240
|
-
id: number;
|
|
1241
|
-
outerId: number;
|
|
1242
|
-
typeName: string;
|
|
1243
|
-
message: string;
|
|
1244
|
-
hasFullStack: boolean;
|
|
1245
|
-
stack: string;
|
|
1246
|
-
parsedStack: IExceptionStackFrameInternal[];
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
interface IExceptionInternal extends IPartC {
|
|
1250
|
-
ver: string;
|
|
1251
|
-
id: string;
|
|
1252
|
-
exceptions: IExceptionDetailsInternal[];
|
|
1253
|
-
severityLevel?: SeverityLevel | number;
|
|
1254
|
-
problemGroup: string;
|
|
1255
|
-
isManual: boolean;
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
interface IExceptionStackFrameInternal {
|
|
1259
|
-
level: number;
|
|
1260
|
-
method: string;
|
|
1261
|
-
assembly: string;
|
|
1262
|
-
fileName: string;
|
|
1263
|
-
line: number;
|
|
1264
|
-
pos?: number;
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
1281
|
/**
|
|
1268
|
-
*
|
|
1269
|
-
* @interface IExceptionTelemetry
|
|
1270
|
-
* @description Exception interface used as primary parameter to trackException
|
|
1282
|
+
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
1271
1283
|
*/
|
|
1272
|
-
interface
|
|
1284
|
+
interface IExceptionData extends IDomain {
|
|
1273
1285
|
/**
|
|
1274
|
-
*
|
|
1286
|
+
* Schema version
|
|
1275
1287
|
*/
|
|
1276
|
-
|
|
1288
|
+
ver: number;
|
|
1277
1289
|
/**
|
|
1278
|
-
*
|
|
1279
|
-
* @type {Error}
|
|
1280
|
-
* @memberof IExceptionTelemetry
|
|
1281
|
-
* @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
|
|
1290
|
+
* Exception chain - list of inner exceptions.
|
|
1282
1291
|
*/
|
|
1283
|
-
|
|
1292
|
+
exceptions: IExceptionDetails[];
|
|
1284
1293
|
/**
|
|
1285
|
-
*
|
|
1286
|
-
* @memberof IExceptionTelemetry
|
|
1287
|
-
* @description Error Object(s)
|
|
1294
|
+
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
1288
1295
|
*/
|
|
1289
|
-
|
|
1296
|
+
severityLevel: SeverityLevel;
|
|
1297
|
+
/**
|
|
1298
|
+
* Collection of custom properties.
|
|
1299
|
+
*/
|
|
1300
|
+
properties: any;
|
|
1301
|
+
/**
|
|
1302
|
+
* Collection of custom measurements.
|
|
1303
|
+
*/
|
|
1304
|
+
measurements: any;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Exception details of the exception in a chain.
|
|
1309
|
+
*/
|
|
1310
|
+
interface IExceptionDetails {
|
|
1311
|
+
/**
|
|
1312
|
+
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
1313
|
+
*/
|
|
1314
|
+
id: number;
|
|
1315
|
+
/**
|
|
1316
|
+
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
|
|
1317
|
+
*/
|
|
1318
|
+
outerId: number;
|
|
1319
|
+
/**
|
|
1320
|
+
* Exception type name.
|
|
1321
|
+
*/
|
|
1322
|
+
typeName: string;
|
|
1323
|
+
/**
|
|
1324
|
+
* Exception message.
|
|
1325
|
+
*/
|
|
1326
|
+
message: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
|
|
1329
|
+
*/
|
|
1330
|
+
hasFullStack: boolean;
|
|
1331
|
+
/**
|
|
1332
|
+
* Text describing the stack. Either stack or parsedStack should have a value.
|
|
1333
|
+
*/
|
|
1334
|
+
stack: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* List of stack frames. Either stack or parsedStack should have a value.
|
|
1337
|
+
*/
|
|
1338
|
+
parsedStack: IStackFrame[];
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
interface IExceptionDetailsInternal {
|
|
1342
|
+
id: number;
|
|
1343
|
+
outerId: number;
|
|
1344
|
+
typeName: string;
|
|
1345
|
+
message: string;
|
|
1346
|
+
hasFullStack: boolean;
|
|
1347
|
+
stack: string;
|
|
1348
|
+
parsedStack: IExceptionStackFrameInternal[];
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
interface IExceptionInternal extends IPartC {
|
|
1352
|
+
ver: string;
|
|
1353
|
+
id: string;
|
|
1354
|
+
exceptions: IExceptionDetailsInternal[];
|
|
1355
|
+
severityLevel?: SeverityLevel | number;
|
|
1356
|
+
problemGroup: string;
|
|
1357
|
+
isManual: boolean;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
interface IExceptionStackFrameInternal {
|
|
1361
|
+
level: number;
|
|
1362
|
+
method: string;
|
|
1363
|
+
assembly: string;
|
|
1364
|
+
fileName: string;
|
|
1365
|
+
line: number;
|
|
1366
|
+
pos?: number;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* @export
|
|
1371
|
+
* @interface IExceptionTelemetry
|
|
1372
|
+
* @description Exception interface used as primary parameter to trackException
|
|
1373
|
+
*/
|
|
1374
|
+
interface IExceptionTelemetry extends IPartC {
|
|
1375
|
+
/**
|
|
1376
|
+
* Unique guid identifying this error
|
|
1377
|
+
*/
|
|
1378
|
+
id?: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* @deprecated
|
|
1381
|
+
* @type {Error}
|
|
1382
|
+
* @memberof IExceptionTelemetry
|
|
1383
|
+
* @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
|
|
1384
|
+
*/
|
|
1385
|
+
error?: Error;
|
|
1386
|
+
/**
|
|
1387
|
+
* @type {Error}
|
|
1388
|
+
* @memberof IExceptionTelemetry
|
|
1389
|
+
* @description Error Object(s)
|
|
1390
|
+
*/
|
|
1391
|
+
exception?: Error | IAutoExceptionTelemetry;
|
|
1290
1392
|
/**
|
|
1291
1393
|
* @description Specified severity of exception for use with
|
|
1292
1394
|
* telemetry filtering in dashboard
|
|
@@ -1327,6 +1429,54 @@ declare namespace ApplicationInsights {
|
|
|
1327
1429
|
ip: string;
|
|
1328
1430
|
}
|
|
1329
1431
|
|
|
1432
|
+
/**
|
|
1433
|
+
* 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.
|
|
1434
|
+
*/
|
|
1435
|
+
interface IMessageData extends IDomain {
|
|
1436
|
+
/**
|
|
1437
|
+
* Schema version
|
|
1438
|
+
*/
|
|
1439
|
+
ver: number;
|
|
1440
|
+
/**
|
|
1441
|
+
* Trace message
|
|
1442
|
+
*/
|
|
1443
|
+
message: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* Trace severity level.
|
|
1446
|
+
*/
|
|
1447
|
+
severityLevel: SeverityLevel;
|
|
1448
|
+
/**
|
|
1449
|
+
* Collection of custom properties.
|
|
1450
|
+
*/
|
|
1451
|
+
properties: any;
|
|
1452
|
+
/**
|
|
1453
|
+
* Collection of custom measurements.
|
|
1454
|
+
*/
|
|
1455
|
+
measurements: any;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
1460
|
+
*/
|
|
1461
|
+
interface IMetricData extends IDomain {
|
|
1462
|
+
/**
|
|
1463
|
+
* Schema version
|
|
1464
|
+
*/
|
|
1465
|
+
ver: number;
|
|
1466
|
+
/**
|
|
1467
|
+
* 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.
|
|
1468
|
+
*/
|
|
1469
|
+
metrics: IDataPoint[];
|
|
1470
|
+
/**
|
|
1471
|
+
* Collection of custom properties.
|
|
1472
|
+
*/
|
|
1473
|
+
properties: any;
|
|
1474
|
+
/**
|
|
1475
|
+
* Collection of custom measurements.
|
|
1476
|
+
*/
|
|
1477
|
+
measurements: any;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1330
1480
|
interface IMetricTelemetry extends IPartC {
|
|
1331
1481
|
/**
|
|
1332
1482
|
* @description (required) - name of this metric
|
|
@@ -1377,6 +1527,50 @@ declare namespace ApplicationInsights {
|
|
|
1377
1527
|
name: string;
|
|
1378
1528
|
}
|
|
1379
1529
|
|
|
1530
|
+
/**
|
|
1531
|
+
* An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
|
|
1532
|
+
*/
|
|
1533
|
+
interface IPageViewData extends IEventData {
|
|
1534
|
+
/**
|
|
1535
|
+
* Request URL with all query string parameters
|
|
1536
|
+
*/
|
|
1537
|
+
url: string;
|
|
1538
|
+
/**
|
|
1539
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
1540
|
+
*/
|
|
1541
|
+
duration: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
1544
|
+
*/
|
|
1545
|
+
id: string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
|
|
1550
|
+
*/
|
|
1551
|
+
interface IPageViewPerfData extends IPageViewData {
|
|
1552
|
+
/**
|
|
1553
|
+
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1554
|
+
*/
|
|
1555
|
+
perfTotal: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1558
|
+
*/
|
|
1559
|
+
networkConnect: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1562
|
+
*/
|
|
1563
|
+
sentRequest: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1566
|
+
*/
|
|
1567
|
+
receivedResponse: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1570
|
+
*/
|
|
1571
|
+
domProcessing: string;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1380
1574
|
interface IPageViewPerformanceTelemetry extends IPartC {
|
|
1381
1575
|
/**
|
|
1382
1576
|
* name String - The name of the page. Defaults to the document title.
|
|
@@ -1509,6 +1703,56 @@ declare namespace ApplicationInsights {
|
|
|
1509
1703
|
readonly context: ITelemetryContext;
|
|
1510
1704
|
}
|
|
1511
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
|
|
1708
|
+
*/
|
|
1709
|
+
interface IRemoteDependencyData extends IDomain {
|
|
1710
|
+
/**
|
|
1711
|
+
* Schema version
|
|
1712
|
+
*/
|
|
1713
|
+
ver: number;
|
|
1714
|
+
/**
|
|
1715
|
+
* Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
|
|
1716
|
+
*/
|
|
1717
|
+
name: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
|
|
1720
|
+
*/
|
|
1721
|
+
id: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Result code of a dependency call. Examples are SQL error code and HTTP status code.
|
|
1724
|
+
*/
|
|
1725
|
+
resultCode: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
|
|
1728
|
+
*/
|
|
1729
|
+
duration: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Indication of successful or unsuccessful call.
|
|
1732
|
+
*/
|
|
1733
|
+
success: boolean;
|
|
1734
|
+
/**
|
|
1735
|
+
* Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
|
|
1736
|
+
*/
|
|
1737
|
+
data: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Target site of a dependency call. Examples are server name, host address.
|
|
1740
|
+
*/
|
|
1741
|
+
target: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
|
|
1744
|
+
*/
|
|
1745
|
+
type: string;
|
|
1746
|
+
/**
|
|
1747
|
+
* Collection of custom properties.
|
|
1748
|
+
*/
|
|
1749
|
+
properties: any;
|
|
1750
|
+
/**
|
|
1751
|
+
* Collection of custom measurements.
|
|
1752
|
+
*/
|
|
1753
|
+
measurements: any;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1512
1756
|
interface IRequestContext {
|
|
1513
1757
|
status?: number;
|
|
1514
1758
|
xhr?: XMLHttpRequest;
|
|
@@ -1600,6 +1844,32 @@ declare namespace ApplicationInsights {
|
|
|
1600
1844
|
obj: string[];
|
|
1601
1845
|
}
|
|
1602
1846
|
|
|
1847
|
+
/**
|
|
1848
|
+
* Stack frame information.
|
|
1849
|
+
*/
|
|
1850
|
+
interface IStackFrame {
|
|
1851
|
+
/**
|
|
1852
|
+
* Level in the call stack. For the long stacks SDK may not report every function in a call stack.
|
|
1853
|
+
*/
|
|
1854
|
+
level: number;
|
|
1855
|
+
/**
|
|
1856
|
+
* Method name.
|
|
1857
|
+
*/
|
|
1858
|
+
method: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Name of the assembly (dll, jar, etc.) containing this function.
|
|
1861
|
+
*/
|
|
1862
|
+
assembly: string;
|
|
1863
|
+
/**
|
|
1864
|
+
* File name or URL of the method implementation.
|
|
1865
|
+
*/
|
|
1866
|
+
fileName: string;
|
|
1867
|
+
/**
|
|
1868
|
+
* Line number of the code implementation.
|
|
1869
|
+
*/
|
|
1870
|
+
line: number;
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1603
1873
|
interface ITelemetryContext {
|
|
1604
1874
|
/**
|
|
1605
1875
|
* The object describing a component tracked by this object.
|
|
@@ -1939,34 +2209,7 @@ declare namespace ApplicationInsights {
|
|
|
1939
2209
|
domain: string;
|
|
1940
2210
|
}
|
|
1941
2211
|
|
|
1942
|
-
|
|
1943
|
-
* 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.
|
|
1944
|
-
*/
|
|
1945
|
-
class MessageData implements Domain {
|
|
1946
|
-
/**
|
|
1947
|
-
* Schema version
|
|
1948
|
-
*/
|
|
1949
|
-
ver: number;
|
|
1950
|
-
/**
|
|
1951
|
-
* Trace message
|
|
1952
|
-
*/
|
|
1953
|
-
message: string;
|
|
1954
|
-
/**
|
|
1955
|
-
* Trace severity level.
|
|
1956
|
-
*/
|
|
1957
|
-
severityLevel: SeverityLevel;
|
|
1958
|
-
/**
|
|
1959
|
-
* Collection of custom properties.
|
|
1960
|
-
*/
|
|
1961
|
-
properties: any;
|
|
1962
|
-
/**
|
|
1963
|
-
* Collection of custom measurements.
|
|
1964
|
-
*/
|
|
1965
|
-
measurements: any;
|
|
1966
|
-
constructor();
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
class Metric extends MetricData implements ISerializable {
|
|
2212
|
+
class Metric implements IMetricData, ISerializable {
|
|
1970
2213
|
static envelopeType: string;
|
|
1971
2214
|
static dataType: string;
|
|
1972
2215
|
aiDataContract: {
|
|
@@ -1974,18 +2217,6 @@ declare namespace ApplicationInsights {
|
|
|
1974
2217
|
metrics: FieldType;
|
|
1975
2218
|
properties: FieldType;
|
|
1976
2219
|
};
|
|
1977
|
-
/**
|
|
1978
|
-
* Constructs a new instance of the MetricTelemetry object
|
|
1979
|
-
*/
|
|
1980
|
-
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
|
|
1981
|
-
[key: string]: number;
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
/**
|
|
1986
|
-
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
1987
|
-
*/
|
|
1988
|
-
class MetricData implements Domain {
|
|
1989
2220
|
/**
|
|
1990
2221
|
* Schema version
|
|
1991
2222
|
*/
|
|
@@ -2002,7 +2233,12 @@ declare namespace ApplicationInsights {
|
|
|
2002
2233
|
* Collection of custom measurements.
|
|
2003
2234
|
*/
|
|
2004
2235
|
measurements: any;
|
|
2005
|
-
|
|
2236
|
+
/**
|
|
2237
|
+
* Constructs a new instance of the MetricTelemetry object
|
|
2238
|
+
*/
|
|
2239
|
+
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
|
|
2240
|
+
[key: string]: number;
|
|
2241
|
+
});
|
|
2006
2242
|
}
|
|
2007
2243
|
|
|
2008
2244
|
/**
|
|
@@ -2010,7 +2246,7 @@ declare namespace ApplicationInsights {
|
|
|
2010
2246
|
*/
|
|
2011
2247
|
function msToTimeSpan(totalms: number): string;
|
|
2012
2248
|
|
|
2013
|
-
class PageView
|
|
2249
|
+
class PageView implements IPageViewData, ISerializable {
|
|
2014
2250
|
static envelopeType: string;
|
|
2015
2251
|
static dataType: string;
|
|
2016
2252
|
aiDataContract: {
|
|
@@ -2022,6 +2258,34 @@ declare namespace ApplicationInsights {
|
|
|
2022
2258
|
measurements: FieldType;
|
|
2023
2259
|
id: FieldType;
|
|
2024
2260
|
};
|
|
2261
|
+
/**
|
|
2262
|
+
* Schema version
|
|
2263
|
+
*/
|
|
2264
|
+
ver: number;
|
|
2265
|
+
/**
|
|
2266
|
+
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
2267
|
+
*/
|
|
2268
|
+
name: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* Collection of custom properties.
|
|
2271
|
+
*/
|
|
2272
|
+
properties: any;
|
|
2273
|
+
/**
|
|
2274
|
+
* Collection of custom measurements.
|
|
2275
|
+
*/
|
|
2276
|
+
measurements: any;
|
|
2277
|
+
/**
|
|
2278
|
+
* Request URL with all query string parameters
|
|
2279
|
+
*/
|
|
2280
|
+
url: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
2283
|
+
*/
|
|
2284
|
+
duration: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2287
|
+
*/
|
|
2288
|
+
id: string;
|
|
2025
2289
|
/**
|
|
2026
2290
|
* Constructs a new instance of the PageEventTelemetry object
|
|
2027
2291
|
*/
|
|
@@ -2032,30 +2296,30 @@ declare namespace ApplicationInsights {
|
|
|
2032
2296
|
}, id?: string);
|
|
2033
2297
|
}
|
|
2034
2298
|
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2299
|
+
class PageViewPerformance implements IPageViewPerfData, ISerializable {
|
|
2300
|
+
static envelopeType: string;
|
|
2301
|
+
static dataType: string;
|
|
2302
|
+
aiDataContract: {
|
|
2303
|
+
ver: FieldType;
|
|
2304
|
+
name: FieldType;
|
|
2305
|
+
url: FieldType;
|
|
2306
|
+
duration: FieldType;
|
|
2307
|
+
perfTotal: FieldType;
|
|
2308
|
+
networkConnect: FieldType;
|
|
2309
|
+
sentRequest: FieldType;
|
|
2310
|
+
receivedResponse: FieldType;
|
|
2311
|
+
domProcessing: FieldType;
|
|
2312
|
+
properties: FieldType;
|
|
2313
|
+
measurements: FieldType;
|
|
2314
|
+
};
|
|
2039
2315
|
/**
|
|
2040
2316
|
* Schema version
|
|
2041
2317
|
*/
|
|
2042
2318
|
ver: number;
|
|
2043
|
-
/**
|
|
2044
|
-
* Request URL with all query string parameters
|
|
2045
|
-
*/
|
|
2046
|
-
url: string;
|
|
2047
2319
|
/**
|
|
2048
2320
|
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
2049
2321
|
*/
|
|
2050
2322
|
name: string;
|
|
2051
|
-
/**
|
|
2052
|
-
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
2053
|
-
*/
|
|
2054
|
-
duration: string;
|
|
2055
|
-
/**
|
|
2056
|
-
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2057
|
-
*/
|
|
2058
|
-
id: string;
|
|
2059
2323
|
/**
|
|
2060
2324
|
* Collection of custom properties.
|
|
2061
2325
|
*/
|
|
@@ -2064,33 +2328,22 @@ declare namespace ApplicationInsights {
|
|
|
2064
2328
|
* Collection of custom measurements.
|
|
2065
2329
|
*/
|
|
2066
2330
|
measurements: any;
|
|
2067
|
-
constructor();
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
/**
|
|
2071
|
-
* An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
|
|
2072
|
-
*/
|
|
2073
|
-
class PageViewPerfData extends PageViewData {
|
|
2074
|
-
/**
|
|
2075
|
-
* Schema version
|
|
2076
|
-
*/
|
|
2077
|
-
ver: number;
|
|
2078
2331
|
/**
|
|
2079
2332
|
* Request URL with all query string parameters
|
|
2080
2333
|
*/
|
|
2081
2334
|
url: string;
|
|
2082
2335
|
/**
|
|
2083
|
-
*
|
|
2336
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
|
|
2084
2337
|
*/
|
|
2085
|
-
|
|
2338
|
+
duration: string;
|
|
2086
2339
|
/**
|
|
2087
|
-
*
|
|
2340
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2088
2341
|
*/
|
|
2089
|
-
|
|
2342
|
+
id: string;
|
|
2090
2343
|
/**
|
|
2091
|
-
*
|
|
2344
|
+
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2092
2345
|
*/
|
|
2093
|
-
|
|
2346
|
+
perfTotal: string;
|
|
2094
2347
|
/**
|
|
2095
2348
|
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2096
2349
|
*/
|
|
@@ -2107,33 +2360,6 @@ declare namespace ApplicationInsights {
|
|
|
2107
2360
|
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2108
2361
|
*/
|
|
2109
2362
|
domProcessing: string;
|
|
2110
|
-
/**
|
|
2111
|
-
* Collection of custom properties.
|
|
2112
|
-
*/
|
|
2113
|
-
properties: any;
|
|
2114
|
-
/**
|
|
2115
|
-
* Collection of custom measurements.
|
|
2116
|
-
*/
|
|
2117
|
-
measurements: any;
|
|
2118
|
-
constructor();
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
|
-
class PageViewPerformance extends PageViewPerfData implements ISerializable {
|
|
2122
|
-
static envelopeType: string;
|
|
2123
|
-
static dataType: string;
|
|
2124
|
-
aiDataContract: {
|
|
2125
|
-
ver: FieldType;
|
|
2126
|
-
name: FieldType;
|
|
2127
|
-
url: FieldType;
|
|
2128
|
-
duration: FieldType;
|
|
2129
|
-
perfTotal: FieldType;
|
|
2130
|
-
networkConnect: FieldType;
|
|
2131
|
-
sentRequest: FieldType;
|
|
2132
|
-
receivedResponse: FieldType;
|
|
2133
|
-
domProcessing: FieldType;
|
|
2134
|
-
properties: FieldType;
|
|
2135
|
-
measurements: FieldType;
|
|
2136
|
-
};
|
|
2137
2363
|
/**
|
|
2138
2364
|
* Constructs a new instance of the PageEventTelemetry object
|
|
2139
2365
|
*/
|
|
@@ -2150,7 +2376,7 @@ declare namespace ApplicationInsights {
|
|
|
2150
2376
|
|
|
2151
2377
|
const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
2152
2378
|
|
|
2153
|
-
class RemoteDependencyData
|
|
2379
|
+
class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
|
|
2154
2380
|
static envelopeType: string;
|
|
2155
2381
|
static dataType: string;
|
|
2156
2382
|
aiDataContract: {
|
|
@@ -2176,16 +2402,6 @@ declare namespace ApplicationInsights {
|
|
|
2176
2402
|
commandName: FieldType;
|
|
2177
2403
|
dependencyTypeName: FieldType;
|
|
2178
2404
|
};
|
|
2179
|
-
/**
|
|
2180
|
-
* Constructs a new instance of the RemoteDependencyData object
|
|
2181
|
-
*/
|
|
2182
|
-
constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
/**
|
|
2186
|
-
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
|
|
2187
|
-
*/
|
|
2188
|
-
class RemoteDependencyData_2 implements Domain {
|
|
2189
2405
|
/**
|
|
2190
2406
|
* Schema version
|
|
2191
2407
|
*/
|
|
@@ -2230,7 +2446,10 @@ declare namespace ApplicationInsights {
|
|
|
2230
2446
|
* Collection of custom measurements.
|
|
2231
2447
|
*/
|
|
2232
2448
|
measurements: any;
|
|
2233
|
-
|
|
2449
|
+
/**
|
|
2450
|
+
* Constructs a new instance of the RemoteDependencyData object
|
|
2451
|
+
*/
|
|
2452
|
+
constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
|
|
2234
2453
|
}
|
|
2235
2454
|
|
|
2236
2455
|
const RequestHeaders: IRequestHeaders;
|
|
@@ -2248,32 +2467,6 @@ declare namespace ApplicationInsights {
|
|
|
2248
2467
|
Critical = 4
|
|
2249
2468
|
}
|
|
2250
2469
|
|
|
2251
|
-
/**
|
|
2252
|
-
* Stack frame information.
|
|
2253
|
-
*/
|
|
2254
|
-
class StackFrame {
|
|
2255
|
-
/**
|
|
2256
|
-
* Level in the call stack. For the long stacks SDK may not report every function in a call stack.
|
|
2257
|
-
*/
|
|
2258
|
-
level: number;
|
|
2259
|
-
/**
|
|
2260
|
-
* Method name.
|
|
2261
|
-
*/
|
|
2262
|
-
method: string;
|
|
2263
|
-
/**
|
|
2264
|
-
* Name of the assembly (dll, jar, etc.) containing this function.
|
|
2265
|
-
*/
|
|
2266
|
-
assembly: string;
|
|
2267
|
-
/**
|
|
2268
|
-
* File name or URL of the method implementation.
|
|
2269
|
-
*/
|
|
2270
|
-
fileName: string;
|
|
2271
|
-
/**
|
|
2272
|
-
* Line number of the code implementation.
|
|
2273
|
-
*/
|
|
2274
|
-
line: number;
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
2470
|
function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
|
|
2278
2471
|
|
|
2279
2472
|
const strNotSpecified = "not_specified";
|
|
@@ -2295,7 +2488,7 @@ declare namespace ApplicationInsights {
|
|
|
2295
2488
|
}): ITelemetryItem;
|
|
2296
2489
|
}
|
|
2297
2490
|
|
|
2298
|
-
class Trace
|
|
2491
|
+
class Trace implements IMessageData, ISerializable {
|
|
2299
2492
|
static envelopeType: string;
|
|
2300
2493
|
static dataType: string;
|
|
2301
2494
|
aiDataContract: {
|
|
@@ -2304,6 +2497,26 @@ declare namespace ApplicationInsights {
|
|
|
2304
2497
|
severityLevel: FieldType;
|
|
2305
2498
|
properties: FieldType;
|
|
2306
2499
|
};
|
|
2500
|
+
/**
|
|
2501
|
+
* Schema version
|
|
2502
|
+
*/
|
|
2503
|
+
ver: number;
|
|
2504
|
+
/**
|
|
2505
|
+
* Trace message
|
|
2506
|
+
*/
|
|
2507
|
+
message: string;
|
|
2508
|
+
/**
|
|
2509
|
+
* Trace severity level.
|
|
2510
|
+
*/
|
|
2511
|
+
severityLevel: SeverityLevel;
|
|
2512
|
+
/**
|
|
2513
|
+
* Collection of custom properties.
|
|
2514
|
+
*/
|
|
2515
|
+
properties: any;
|
|
2516
|
+
/**
|
|
2517
|
+
* Collection of custom measurements.
|
|
2518
|
+
*/
|
|
2519
|
+
measurements: any;
|
|
2307
2520
|
/**
|
|
2308
2521
|
* Constructs a new instance of the TraceTelemetry object
|
|
2309
2522
|
*/
|