@microsoft/applicationinsights-common 2.8.0-nightly.2202-06 → 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 +1007 -536
- 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 +2599 -928
- package/dist/applicationinsights-common.api.md +99 -43
- package/dist/applicationinsights-common.d.ts +515 -282
- package/dist/applicationinsights-common.js +1007 -536
- 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 +515 -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 +11 -24
- package/dist-esm/Enums.js.map +1 -1
- package/dist-esm/HelperFuncs.js +7 -6
- package/dist-esm/HelperFuncs.js.map +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 +52 -0
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js → ContextTagKeys.js} +1 -1
- package/dist-esm/Interfaces/Contracts/{Generated/ContextTagKeys.js.map → ContextTagKeys.js.map} +0 -0
- package/dist-esm/Interfaces/Contracts/DataPointType.js +8 -0
- package/dist-esm/Interfaces/Contracts/DataPointType.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +8 -0
- package/dist-esm/Interfaces/Contracts/DependencyKind.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +8 -0
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/Domain.js → IBase.js} +2 -2
- package/dist-esm/Interfaces/Contracts/IBase.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +6 -0
- package/dist-esm/Interfaces/Contracts/IDataPoint.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IDomain.js +8 -0
- package/dist-esm/Interfaces/Contracts/IDomain.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +46 -0
- package/dist-esm/Interfaces/Contracts/IEnvelope.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IEventData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IEventData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IExceptionData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +8 -0
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IMessageData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IMessageData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IMetricData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IMetricData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IPageViewData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +8 -0
- package/dist-esm/Interfaces/Contracts/IStackFrame.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/RequestData.js +46 -0
- package/dist-esm/Interfaces/Contracts/RequestData.js.map +1 -0
- package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js → SeverityLevel.js} +1 -1
- package/dist-esm/Interfaces/Contracts/{Generated/SeverityLevel.js.map → SeverityLevel.js.map} +0 -0
- 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 +27 -12
- 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 +8 -8
- 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 +4 -7
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +3 -3
- package/src/Enums.ts +19 -3
- package/src/HelperFuncs.ts +7 -5
- package/src/Interfaces/Contracts/AvailabilityData.ts +57 -0
- package/src/Interfaces/Contracts/{Generated/ContextTagKeys.ts → ContextTagKeys.ts} +0 -0
- package/src/Interfaces/Contracts/{Generated/DataPointType.ts → DataPointType.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/DependencyKind.ts → DependencyKind.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/DependencySourceType.ts → DependencySourceType.ts} +2 -3
- package/src/Interfaces/Contracts/{Generated/Base.ts → IBase.ts} +2 -7
- package/src/Interfaces/Contracts/{Generated/Data.ts → IData.ts} +5 -12
- package/src/Interfaces/Contracts/{Generated/DataPoint.ts → IDataPoint.ts} +8 -8
- package/src/Interfaces/Contracts/{Generated/Domain.ts → IDomain.ts} +1 -3
- package/src/Interfaces/Contracts/IEnvelope.ts +50 -0
- package/src/Interfaces/Contracts/{Generated/EventData.ts → IEventData.ts} +7 -10
- package/src/Interfaces/Contracts/{Generated/ExceptionData.ts → IExceptionData.ts} +8 -11
- package/src/Interfaces/Contracts/{Generated/ExceptionDetails.ts → IExceptionDetails.ts} +9 -10
- package/src/Interfaces/Contracts/{Generated/MessageData.ts → IMessageData.ts} +7 -10
- package/src/Interfaces/Contracts/{Generated/MetricData.ts → IMetricData.ts} +7 -10
- package/{types/Interfaces/Contracts/Generated/PageViewData.d.ts → src/Interfaces/Contracts/IPageViewData.ts} +10 -19
- package/src/Interfaces/Contracts/IPageViewPerfData.ts +35 -0
- package/src/Interfaces/Contracts/{Generated/RemoteDependencyData.ts → IRemoteDependencyData.ts} +13 -16
- package/src/Interfaces/Contracts/{Generated/StackFrame.ts → IStackFrame.ts} +6 -7
- package/src/Interfaces/Contracts/RequestData.ts +50 -0
- package/src/Interfaces/Contracts/{Generated/SeverityLevel.ts → SeverityLevel.ts} +0 -0
- 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 +34 -17
- package/src/Telemetry/Common/Data.ts +12 -4
- package/src/Telemetry/Common/DataPoint.ts +38 -2
- package/src/Telemetry/Common/DataSanitizer.ts +13 -13
- package/src/Telemetry/Common/Envelope.ts +51 -10
- package/src/Telemetry/Event.ts +30 -12
- package/src/Telemetry/Exception.ts +179 -80
- 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/TelemetryItemCreator.ts +1 -1
- package/src/applicationinsights-common.ts +7 -7
- package/types/Enums.d.ts +13 -2
- package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/ContextTagKeys.d.ts → ContextTagKeys.d.ts} +0 -0
- package/types/Interfaces/Contracts/{Generated/DataPointType.d.ts → DataPointType.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/DependencyKind.d.ts → DependencyKind.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/DependencySourceType.d.ts → DependencySourceType.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/Base.d.ts → IBase.d.ts} +1 -2
- package/types/Interfaces/Contracts/{Generated/Data.d.ts → IData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/DataPoint.d.ts → IDataPoint.d.ts} +1 -1
- package/types/Interfaces/Contracts/{Generated/Domain.d.ts → IDomain.d.ts} +1 -1
- package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/EventData.d.ts → IEventData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/ExceptionData.d.ts → IExceptionData.d.ts} +4 -5
- package/types/Interfaces/Contracts/{Generated/ExceptionDetails.d.ts → IExceptionDetails.d.ts} +3 -3
- package/types/Interfaces/Contracts/{Generated/MessageData.d.ts → IMessageData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/MetricData.d.ts → IMetricData.d.ts} +4 -5
- package/types/Interfaces/Contracts/IPageViewData.d.ts +18 -0
- package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +26 -0
- package/types/Interfaces/Contracts/{Generated/RemoteDependencyData.d.ts → IRemoteDependencyData.d.ts} +2 -3
- package/types/Interfaces/Contracts/{Generated/StackFrame.d.ts → IStackFrame.d.ts} +1 -1
- package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
- package/types/Interfaces/Contracts/{Generated/SeverityLevel.d.ts → SeverityLevel.d.ts} +0 -0
- 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/StorageHelperFuncs.d.ts +14 -2
- 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 +7 -7
- 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/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.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/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/Envelope.ts +0 -50
- package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
- package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
- package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
- package/src/Telemetry/Common/Base.ts +0 -14
- package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
- package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
- package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
- package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
- 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-nightly.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -27,18 +27,17 @@ import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
|
27
27
|
/**
|
|
28
28
|
* Data struct to contain only C section with custom fields.
|
|
29
29
|
*/
|
|
30
|
-
export declare
|
|
30
|
+
export declare interface AIBase {
|
|
31
31
|
/**
|
|
32
32
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
33
33
|
*/
|
|
34
34
|
baseType: string;
|
|
35
|
-
constructor();
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* Data struct to contain both B and C sections.
|
|
40
39
|
*/
|
|
41
|
-
export declare
|
|
40
|
+
export declare interface AIData<TDomain> extends AIBase {
|
|
42
41
|
/**
|
|
43
42
|
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
44
43
|
*/
|
|
@@ -47,7 +46,6 @@ export declare class AIData<TDomain> extends AIBase {
|
|
|
47
46
|
* Container for data item (B section).
|
|
48
47
|
*/
|
|
49
48
|
baseData: TDomain;
|
|
50
|
-
constructor();
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
export declare const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
|
|
@@ -80,7 +78,7 @@ export declare function createDomEvent(eventName: string): Event;
|
|
|
80
78
|
|
|
81
79
|
export declare let CtxTagKeys: ContextTagKeys;
|
|
82
80
|
|
|
83
|
-
export declare class Data<TDomain>
|
|
81
|
+
export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
84
82
|
/**
|
|
85
83
|
* The data contract for serializing this object.
|
|
86
84
|
*/
|
|
@@ -88,16 +86,33 @@ export declare class Data<TDomain> extends AIData<TDomain> implements ISerializa
|
|
|
88
86
|
baseType: FieldType;
|
|
89
87
|
baseData: FieldType;
|
|
90
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
|
|
91
|
+
*/
|
|
92
|
+
baseType: string;
|
|
93
|
+
/**
|
|
94
|
+
* Container for data item (B section).
|
|
95
|
+
*/
|
|
96
|
+
baseData: TDomain;
|
|
91
97
|
/**
|
|
92
98
|
* Constructs a new instance of telemetry data.
|
|
93
99
|
*/
|
|
94
100
|
constructor(baseType: string, data: TDomain);
|
|
95
101
|
}
|
|
96
102
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
declare class DataPoint implements IDataPoint, ISerializable {
|
|
104
|
+
/**
|
|
105
|
+
* The data contract for serializing this object.
|
|
106
|
+
*/
|
|
107
|
+
aiDataContract: {
|
|
108
|
+
name: FieldType;
|
|
109
|
+
kind: FieldType;
|
|
110
|
+
value: FieldType;
|
|
111
|
+
count: FieldType;
|
|
112
|
+
min: FieldType;
|
|
113
|
+
max: FieldType;
|
|
114
|
+
stdDev: FieldType;
|
|
115
|
+
};
|
|
101
116
|
/**
|
|
102
117
|
* Name of the metric.
|
|
103
118
|
*/
|
|
@@ -131,7 +146,7 @@ declare class DataPoint {
|
|
|
131
146
|
/**
|
|
132
147
|
* Type of the metric data measurement.
|
|
133
148
|
*/
|
|
134
|
-
declare enum DataPointType {
|
|
149
|
+
declare const enum DataPointType {
|
|
135
150
|
Measurement = 0,
|
|
136
151
|
Aggregation = 1
|
|
137
152
|
}
|
|
@@ -212,7 +227,17 @@ export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio
|
|
|
212
227
|
*/
|
|
213
228
|
export declare const DisabledPropertyName: string;
|
|
214
229
|
|
|
215
|
-
export declare
|
|
230
|
+
export declare const DistributedTracingModes: {
|
|
231
|
+
AI: number;
|
|
232
|
+
AI_AND_W3C: number;
|
|
233
|
+
W3C: number;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
237
|
+
|
|
238
|
+
export declare function dsPadNumber(num: number): string;
|
|
239
|
+
|
|
240
|
+
export declare const enum eDistributedTracingModes {
|
|
216
241
|
/**
|
|
217
242
|
* (Default) Send Application Insights correlation headers
|
|
218
243
|
*/
|
|
@@ -227,29 +252,11 @@ export declare enum DistributedTracingModes {
|
|
|
227
252
|
W3C = 2
|
|
228
253
|
}
|
|
229
254
|
|
|
230
|
-
|
|
231
|
-
* The abstract common base of all domains.
|
|
232
|
-
*/
|
|
233
|
-
declare interface Domain {
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export declare function dsPadNumber(num: number): string;
|
|
237
|
-
|
|
238
|
-
export declare class Envelope extends Envelope_2 implements IEnvelope {
|
|
255
|
+
export declare class Envelope implements IEnvelope {
|
|
239
256
|
/**
|
|
240
257
|
* The data contract for serializing this object.
|
|
241
258
|
*/
|
|
242
259
|
aiDataContract: any;
|
|
243
|
-
/**
|
|
244
|
-
* Constructs a new instance of telemetry data.
|
|
245
|
-
*/
|
|
246
|
-
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* System variables for a telemetry item.
|
|
251
|
-
*/
|
|
252
|
-
declare class Envelope_2 {
|
|
253
260
|
/**
|
|
254
261
|
* 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.
|
|
255
262
|
*/
|
|
@@ -282,9 +289,13 @@ declare class Envelope_2 {
|
|
|
282
289
|
* Telemetry data item.
|
|
283
290
|
*/
|
|
284
291
|
data: AIBase;
|
|
292
|
+
/**
|
|
293
|
+
* Constructs a new instance of telemetry data.
|
|
294
|
+
*/
|
|
295
|
+
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
285
296
|
}
|
|
286
297
|
|
|
287
|
-
declare class Event_2
|
|
298
|
+
declare class Event_2 implements IEventData, ISerializable {
|
|
288
299
|
static envelopeType: string;
|
|
289
300
|
static dataType: string;
|
|
290
301
|
aiDataContract: {
|
|
@@ -293,17 +304,6 @@ declare class Event_2 extends EventData implements ISerializable {
|
|
|
293
304
|
properties: FieldType;
|
|
294
305
|
measurements: FieldType;
|
|
295
306
|
};
|
|
296
|
-
/**
|
|
297
|
-
* Constructs a new instance of the EventTelemetry object
|
|
298
|
-
*/
|
|
299
|
-
constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
|
|
300
|
-
}
|
|
301
|
-
export { Event_2 as Event }
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* 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.
|
|
305
|
-
*/
|
|
306
|
-
declare class EventData implements Domain {
|
|
307
307
|
/**
|
|
308
308
|
* Schema version
|
|
309
309
|
*/
|
|
@@ -320,10 +320,14 @@ declare class EventData implements Domain {
|
|
|
320
320
|
* Collection of custom measurements.
|
|
321
321
|
*/
|
|
322
322
|
measurements: any;
|
|
323
|
-
|
|
323
|
+
/**
|
|
324
|
+
* Constructs a new instance of the EventTelemetry object
|
|
325
|
+
*/
|
|
326
|
+
constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
|
|
324
327
|
}
|
|
328
|
+
export { Event_2 as Event }
|
|
325
329
|
|
|
326
|
-
export declare class Exception
|
|
330
|
+
export declare class Exception implements IExceptionData, ISerializable {
|
|
327
331
|
static envelopeType: string;
|
|
328
332
|
static dataType: string;
|
|
329
333
|
id?: string;
|
|
@@ -336,30 +340,6 @@ export declare class Exception extends ExceptionData implements ISerializable {
|
|
|
336
340
|
properties: FieldType;
|
|
337
341
|
measurements: FieldType;
|
|
338
342
|
};
|
|
339
|
-
/**
|
|
340
|
-
* Constructs a new instance of the ExceptionTelemetry object
|
|
341
|
-
*/
|
|
342
|
-
constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
|
|
343
|
-
[key: string]: any;
|
|
344
|
-
}, measurements?: {
|
|
345
|
-
[key: string]: number;
|
|
346
|
-
}, severityLevel?: SeverityLevel, id?: string);
|
|
347
|
-
static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
|
|
348
|
-
static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
|
|
349
|
-
[key: string]: number;
|
|
350
|
-
}): Exception;
|
|
351
|
-
toInterface(): IExceptionInternal;
|
|
352
|
-
/**
|
|
353
|
-
* Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
|
|
354
|
-
*/
|
|
355
|
-
static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
|
|
356
|
-
static formatError: typeof _formatErrorCode;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
361
|
-
*/
|
|
362
|
-
declare class ExceptionData implements Domain {
|
|
363
343
|
/**
|
|
364
344
|
* Schema version
|
|
365
345
|
*/
|
|
@@ -367,7 +347,7 @@ declare class ExceptionData implements Domain {
|
|
|
367
347
|
/**
|
|
368
348
|
* Exception chain - list of inner exceptions.
|
|
369
349
|
*/
|
|
370
|
-
exceptions:
|
|
350
|
+
exceptions: IExceptionDetails[];
|
|
371
351
|
/**
|
|
372
352
|
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
373
353
|
*/
|
|
@@ -380,41 +360,24 @@ declare class ExceptionData implements Domain {
|
|
|
380
360
|
* Collection of custom measurements.
|
|
381
361
|
*/
|
|
382
362
|
measurements: any;
|
|
383
|
-
constructor();
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Exception details of the exception in a chain.
|
|
388
|
-
*/
|
|
389
|
-
declare class ExceptionDetails {
|
|
390
|
-
/**
|
|
391
|
-
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
392
|
-
*/
|
|
393
|
-
id: number;
|
|
394
|
-
/**
|
|
395
|
-
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
|
|
396
|
-
*/
|
|
397
|
-
outerId: number;
|
|
398
|
-
/**
|
|
399
|
-
* Exception type name.
|
|
400
|
-
*/
|
|
401
|
-
typeName: string;
|
|
402
|
-
/**
|
|
403
|
-
* Exception message.
|
|
404
|
-
*/
|
|
405
|
-
message: string;
|
|
406
|
-
/**
|
|
407
|
-
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
|
|
408
|
-
*/
|
|
409
|
-
hasFullStack: boolean;
|
|
410
363
|
/**
|
|
411
|
-
*
|
|
364
|
+
* Constructs a new instance of the ExceptionTelemetry object
|
|
412
365
|
*/
|
|
413
|
-
|
|
366
|
+
constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
|
|
367
|
+
[key: string]: any;
|
|
368
|
+
}, measurements?: {
|
|
369
|
+
[key: string]: number;
|
|
370
|
+
}, severityLevel?: SeverityLevel, id?: string);
|
|
371
|
+
static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
|
|
372
|
+
static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
|
|
373
|
+
[key: string]: number;
|
|
374
|
+
}): Exception;
|
|
375
|
+
toInterface(): IExceptionInternal;
|
|
414
376
|
/**
|
|
415
|
-
*
|
|
377
|
+
* Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
|
|
416
378
|
*/
|
|
417
|
-
|
|
379
|
+
static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
|
|
380
|
+
static formatError: typeof _formatErrorCode;
|
|
418
381
|
}
|
|
419
382
|
|
|
420
383
|
export declare const Extensions: {
|
|
@@ -1109,6 +1072,40 @@ export declare interface ICorrelationIdHelper {
|
|
|
1109
1072
|
getCorrelationContextValue(responseHeader: string, key: string): string | undefined;
|
|
1110
1073
|
}
|
|
1111
1074
|
|
|
1075
|
+
/**
|
|
1076
|
+
* Metric data single measurement.
|
|
1077
|
+
*/
|
|
1078
|
+
declare interface IDataPoint {
|
|
1079
|
+
/**
|
|
1080
|
+
* Name of the metric.
|
|
1081
|
+
*/
|
|
1082
|
+
name: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Metric type. Single measurement or the aggregated value.
|
|
1085
|
+
*/
|
|
1086
|
+
kind: DataPointType;
|
|
1087
|
+
/**
|
|
1088
|
+
* Single value for measurement. Sum of individual measurements for the aggregation.
|
|
1089
|
+
*/
|
|
1090
|
+
value: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* Metric weight of the aggregated metric. Should not be set for a measurement.
|
|
1093
|
+
*/
|
|
1094
|
+
count: number;
|
|
1095
|
+
/**
|
|
1096
|
+
* Minimum value of the aggregated metric. Should not be set for a measurement.
|
|
1097
|
+
*/
|
|
1098
|
+
min: number;
|
|
1099
|
+
/**
|
|
1100
|
+
* Maximum value of the aggregated metric. Should not be set for a measurement.
|
|
1101
|
+
*/
|
|
1102
|
+
max: number;
|
|
1103
|
+
/**
|
|
1104
|
+
* Standard deviation of the aggregated metric. Should not be set for a measurement.
|
|
1105
|
+
*/
|
|
1106
|
+
stdDev: number;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1112
1109
|
export declare interface IDataSanitizer {
|
|
1113
1110
|
/**
|
|
1114
1111
|
* Max length allowed for custom names.
|
|
@@ -1206,19 +1203,71 @@ export declare interface IDevice {
|
|
|
1206
1203
|
ip: string;
|
|
1207
1204
|
}
|
|
1208
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* The abstract common base of all domains.
|
|
1208
|
+
*/
|
|
1209
|
+
declare interface IDomain {
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1209
1212
|
export declare interface IEnvelope extends ISerializable {
|
|
1213
|
+
/**
|
|
1214
|
+
* 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.
|
|
1215
|
+
*/
|
|
1210
1216
|
ver: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* Type name of telemetry data item.
|
|
1219
|
+
*/
|
|
1211
1220
|
name: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* 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.
|
|
1223
|
+
*/
|
|
1212
1224
|
time: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
|
|
1227
|
+
*/
|
|
1213
1228
|
sampleRate: number;
|
|
1229
|
+
/**
|
|
1230
|
+
* Sequence field used to track absolute order of uploaded events.
|
|
1231
|
+
*/
|
|
1214
1232
|
seq: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* 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.
|
|
1235
|
+
*/
|
|
1215
1236
|
iKey: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
|
|
1239
|
+
*/
|
|
1216
1240
|
tags: {
|
|
1217
1241
|
[name: string]: any;
|
|
1218
1242
|
};
|
|
1243
|
+
/**
|
|
1244
|
+
* Telemetry data item.
|
|
1245
|
+
*/
|
|
1219
1246
|
data: any;
|
|
1220
1247
|
}
|
|
1221
1248
|
|
|
1249
|
+
/**
|
|
1250
|
+
* 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.
|
|
1251
|
+
*/
|
|
1252
|
+
declare interface IEventData extends IDomain {
|
|
1253
|
+
/**
|
|
1254
|
+
* Schema version
|
|
1255
|
+
*/
|
|
1256
|
+
ver: number;
|
|
1257
|
+
/**
|
|
1258
|
+
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
1259
|
+
*/
|
|
1260
|
+
name: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* Collection of custom properties.
|
|
1263
|
+
*/
|
|
1264
|
+
properties: any;
|
|
1265
|
+
/**
|
|
1266
|
+
* Collection of custom measurements.
|
|
1267
|
+
*/
|
|
1268
|
+
measurements: any;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1222
1271
|
export declare interface IEventTelemetry extends IPartC {
|
|
1223
1272
|
/**
|
|
1224
1273
|
* @description An event name string
|
|
@@ -1234,49 +1283,109 @@ export declare interface IEventTelemetry extends IPartC {
|
|
|
1234
1283
|
iKey?: string;
|
|
1235
1284
|
}
|
|
1236
1285
|
|
|
1237
|
-
declare interface IExceptionDetailsInternal {
|
|
1238
|
-
id: number;
|
|
1239
|
-
outerId: number;
|
|
1240
|
-
typeName: string;
|
|
1241
|
-
message: string;
|
|
1242
|
-
hasFullStack: boolean;
|
|
1243
|
-
stack: string;
|
|
1244
|
-
parsedStack: IExceptionStackFrameInternal[];
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
export declare interface IExceptionInternal extends IPartC {
|
|
1248
|
-
ver: string;
|
|
1249
|
-
id: string;
|
|
1250
|
-
exceptions: IExceptionDetailsInternal[];
|
|
1251
|
-
severityLevel?: SeverityLevel | number;
|
|
1252
|
-
problemGroup: string;
|
|
1253
|
-
isManual: boolean;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
declare interface IExceptionStackFrameInternal {
|
|
1257
|
-
level: number;
|
|
1258
|
-
method: string;
|
|
1259
|
-
assembly: string;
|
|
1260
|
-
fileName: string;
|
|
1261
|
-
line: number;
|
|
1262
|
-
pos?: number;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
1286
|
/**
|
|
1266
|
-
*
|
|
1267
|
-
* @interface IExceptionTelemetry
|
|
1268
|
-
* @description Exception interface used as primary parameter to trackException
|
|
1287
|
+
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
|
|
1269
1288
|
*/
|
|
1270
|
-
|
|
1289
|
+
declare interface IExceptionData extends IDomain {
|
|
1271
1290
|
/**
|
|
1272
|
-
*
|
|
1291
|
+
* Schema version
|
|
1273
1292
|
*/
|
|
1274
|
-
|
|
1293
|
+
ver: number;
|
|
1275
1294
|
/**
|
|
1276
|
-
*
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1295
|
+
* Exception chain - list of inner exceptions.
|
|
1296
|
+
*/
|
|
1297
|
+
exceptions: IExceptionDetails[];
|
|
1298
|
+
/**
|
|
1299
|
+
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
|
|
1300
|
+
*/
|
|
1301
|
+
severityLevel: SeverityLevel;
|
|
1302
|
+
/**
|
|
1303
|
+
* Collection of custom properties.
|
|
1304
|
+
*/
|
|
1305
|
+
properties: any;
|
|
1306
|
+
/**
|
|
1307
|
+
* Collection of custom measurements.
|
|
1308
|
+
*/
|
|
1309
|
+
measurements: any;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Exception details of the exception in a chain.
|
|
1314
|
+
*/
|
|
1315
|
+
declare interface IExceptionDetails {
|
|
1316
|
+
/**
|
|
1317
|
+
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
|
|
1318
|
+
*/
|
|
1319
|
+
id: number;
|
|
1320
|
+
/**
|
|
1321
|
+
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
|
|
1322
|
+
*/
|
|
1323
|
+
outerId: number;
|
|
1324
|
+
/**
|
|
1325
|
+
* Exception type name.
|
|
1326
|
+
*/
|
|
1327
|
+
typeName: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* Exception message.
|
|
1330
|
+
*/
|
|
1331
|
+
message: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
|
|
1334
|
+
*/
|
|
1335
|
+
hasFullStack: boolean;
|
|
1336
|
+
/**
|
|
1337
|
+
* Text describing the stack. Either stack or parsedStack should have a value.
|
|
1338
|
+
*/
|
|
1339
|
+
stack: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* List of stack frames. Either stack or parsedStack should have a value.
|
|
1342
|
+
*/
|
|
1343
|
+
parsedStack: IStackFrame[];
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
declare interface IExceptionDetailsInternal {
|
|
1347
|
+
id: number;
|
|
1348
|
+
outerId: number;
|
|
1349
|
+
typeName: string;
|
|
1350
|
+
message: string;
|
|
1351
|
+
hasFullStack: boolean;
|
|
1352
|
+
stack: string;
|
|
1353
|
+
parsedStack: IExceptionStackFrameInternal[];
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
export declare interface IExceptionInternal extends IPartC {
|
|
1357
|
+
ver: string;
|
|
1358
|
+
id: string;
|
|
1359
|
+
exceptions: IExceptionDetailsInternal[];
|
|
1360
|
+
severityLevel?: SeverityLevel | number;
|
|
1361
|
+
problemGroup: string;
|
|
1362
|
+
isManual: boolean;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
declare interface IExceptionStackFrameInternal {
|
|
1366
|
+
level: number;
|
|
1367
|
+
method: string;
|
|
1368
|
+
assembly: string;
|
|
1369
|
+
fileName: string;
|
|
1370
|
+
line: number;
|
|
1371
|
+
pos?: number;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* @export
|
|
1376
|
+
* @interface IExceptionTelemetry
|
|
1377
|
+
* @description Exception interface used as primary parameter to trackException
|
|
1378
|
+
*/
|
|
1379
|
+
export declare interface IExceptionTelemetry extends IPartC {
|
|
1380
|
+
/**
|
|
1381
|
+
* Unique guid identifying this error
|
|
1382
|
+
*/
|
|
1383
|
+
id?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* @deprecated
|
|
1386
|
+
* @type {Error}
|
|
1387
|
+
* @memberof IExceptionTelemetry
|
|
1388
|
+
* @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
|
|
1280
1389
|
*/
|
|
1281
1390
|
error?: Error;
|
|
1282
1391
|
/**
|
|
@@ -1325,6 +1434,54 @@ export declare interface ILocation {
|
|
|
1325
1434
|
ip: string;
|
|
1326
1435
|
}
|
|
1327
1436
|
|
|
1437
|
+
/**
|
|
1438
|
+
* 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.
|
|
1439
|
+
*/
|
|
1440
|
+
declare interface IMessageData extends IDomain {
|
|
1441
|
+
/**
|
|
1442
|
+
* Schema version
|
|
1443
|
+
*/
|
|
1444
|
+
ver: number;
|
|
1445
|
+
/**
|
|
1446
|
+
* Trace message
|
|
1447
|
+
*/
|
|
1448
|
+
message: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* Trace severity level.
|
|
1451
|
+
*/
|
|
1452
|
+
severityLevel: SeverityLevel;
|
|
1453
|
+
/**
|
|
1454
|
+
* Collection of custom properties.
|
|
1455
|
+
*/
|
|
1456
|
+
properties: any;
|
|
1457
|
+
/**
|
|
1458
|
+
* Collection of custom measurements.
|
|
1459
|
+
*/
|
|
1460
|
+
measurements: any;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
1465
|
+
*/
|
|
1466
|
+
declare interface IMetricData extends IDomain {
|
|
1467
|
+
/**
|
|
1468
|
+
* Schema version
|
|
1469
|
+
*/
|
|
1470
|
+
ver: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* 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.
|
|
1473
|
+
*/
|
|
1474
|
+
metrics: IDataPoint[];
|
|
1475
|
+
/**
|
|
1476
|
+
* Collection of custom properties.
|
|
1477
|
+
*/
|
|
1478
|
+
properties: any;
|
|
1479
|
+
/**
|
|
1480
|
+
* Collection of custom measurements.
|
|
1481
|
+
*/
|
|
1482
|
+
measurements: any;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1328
1485
|
export declare interface IMetricTelemetry extends IPartC {
|
|
1329
1486
|
/**
|
|
1330
1487
|
* @description (required) - name of this metric
|
|
@@ -1375,6 +1532,50 @@ export declare interface IOperatingSystem {
|
|
|
1375
1532
|
name: string;
|
|
1376
1533
|
}
|
|
1377
1534
|
|
|
1535
|
+
/**
|
|
1536
|
+
* An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
|
|
1537
|
+
*/
|
|
1538
|
+
export declare interface IPageViewData extends IEventData {
|
|
1539
|
+
/**
|
|
1540
|
+
* Request URL with all query string parameters
|
|
1541
|
+
*/
|
|
1542
|
+
url: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* 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.
|
|
1545
|
+
*/
|
|
1546
|
+
duration: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
1549
|
+
*/
|
|
1550
|
+
id: string;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* 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.
|
|
1555
|
+
*/
|
|
1556
|
+
declare interface IPageViewPerfData extends IPageViewData {
|
|
1557
|
+
/**
|
|
1558
|
+
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1559
|
+
*/
|
|
1560
|
+
perfTotal: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1563
|
+
*/
|
|
1564
|
+
networkConnect: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1567
|
+
*/
|
|
1568
|
+
sentRequest: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1571
|
+
*/
|
|
1572
|
+
receivedResponse: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
1575
|
+
*/
|
|
1576
|
+
domProcessing: string;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1378
1579
|
export declare interface IPageViewPerformanceTelemetry extends IPartC {
|
|
1379
1580
|
/**
|
|
1380
1581
|
* name String - The name of the page. Defaults to the document title.
|
|
@@ -1507,6 +1708,56 @@ export declare interface IPropertiesPlugin {
|
|
|
1507
1708
|
readonly context: ITelemetryContext;
|
|
1508
1709
|
}
|
|
1509
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
|
|
1713
|
+
*/
|
|
1714
|
+
declare interface IRemoteDependencyData extends IDomain {
|
|
1715
|
+
/**
|
|
1716
|
+
* Schema version
|
|
1717
|
+
*/
|
|
1718
|
+
ver: number;
|
|
1719
|
+
/**
|
|
1720
|
+
* Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
|
|
1721
|
+
*/
|
|
1722
|
+
name: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
|
|
1725
|
+
*/
|
|
1726
|
+
id: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Result code of a dependency call. Examples are SQL error code and HTTP status code.
|
|
1729
|
+
*/
|
|
1730
|
+
resultCode: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
|
|
1733
|
+
*/
|
|
1734
|
+
duration: string;
|
|
1735
|
+
/**
|
|
1736
|
+
* Indication of successful or unsuccessful call.
|
|
1737
|
+
*/
|
|
1738
|
+
success: boolean;
|
|
1739
|
+
/**
|
|
1740
|
+
* Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
|
|
1741
|
+
*/
|
|
1742
|
+
data: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* Target site of a dependency call. Examples are server name, host address.
|
|
1745
|
+
*/
|
|
1746
|
+
target: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* 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.
|
|
1749
|
+
*/
|
|
1750
|
+
type: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Collection of custom properties.
|
|
1753
|
+
*/
|
|
1754
|
+
properties: any;
|
|
1755
|
+
/**
|
|
1756
|
+
* Collection of custom measurements.
|
|
1757
|
+
*/
|
|
1758
|
+
measurements: any;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1510
1761
|
export declare interface IRequestContext {
|
|
1511
1762
|
status?: number;
|
|
1512
1763
|
xhr?: XMLHttpRequest;
|
|
@@ -1598,6 +1849,32 @@ declare interface IStackDetails {
|
|
|
1598
1849
|
obj: string[];
|
|
1599
1850
|
}
|
|
1600
1851
|
|
|
1852
|
+
/**
|
|
1853
|
+
* Stack frame information.
|
|
1854
|
+
*/
|
|
1855
|
+
declare interface IStackFrame {
|
|
1856
|
+
/**
|
|
1857
|
+
* Level in the call stack. For the long stacks SDK may not report every function in a call stack.
|
|
1858
|
+
*/
|
|
1859
|
+
level: number;
|
|
1860
|
+
/**
|
|
1861
|
+
* Method name.
|
|
1862
|
+
*/
|
|
1863
|
+
method: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* Name of the assembly (dll, jar, etc.) containing this function.
|
|
1866
|
+
*/
|
|
1867
|
+
assembly: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* File name or URL of the method implementation.
|
|
1870
|
+
*/
|
|
1871
|
+
fileName: string;
|
|
1872
|
+
/**
|
|
1873
|
+
* Line number of the code implementation.
|
|
1874
|
+
*/
|
|
1875
|
+
line: number;
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1601
1878
|
export declare interface ITelemetryContext {
|
|
1602
1879
|
/**
|
|
1603
1880
|
* The object describing a component tracked by this object.
|
|
@@ -1937,34 +2214,7 @@ export declare interface IWeb {
|
|
|
1937
2214
|
domain: string;
|
|
1938
2215
|
}
|
|
1939
2216
|
|
|
1940
|
-
|
|
1941
|
-
* 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.
|
|
1942
|
-
*/
|
|
1943
|
-
declare class MessageData implements Domain {
|
|
1944
|
-
/**
|
|
1945
|
-
* Schema version
|
|
1946
|
-
*/
|
|
1947
|
-
ver: number;
|
|
1948
|
-
/**
|
|
1949
|
-
* Trace message
|
|
1950
|
-
*/
|
|
1951
|
-
message: string;
|
|
1952
|
-
/**
|
|
1953
|
-
* Trace severity level.
|
|
1954
|
-
*/
|
|
1955
|
-
severityLevel: SeverityLevel;
|
|
1956
|
-
/**
|
|
1957
|
-
* Collection of custom properties.
|
|
1958
|
-
*/
|
|
1959
|
-
properties: any;
|
|
1960
|
-
/**
|
|
1961
|
-
* Collection of custom measurements.
|
|
1962
|
-
*/
|
|
1963
|
-
measurements: any;
|
|
1964
|
-
constructor();
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
export declare class Metric extends MetricData implements ISerializable {
|
|
2217
|
+
export declare class Metric implements IMetricData, ISerializable {
|
|
1968
2218
|
static envelopeType: string;
|
|
1969
2219
|
static dataType: string;
|
|
1970
2220
|
aiDataContract: {
|
|
@@ -1972,18 +2222,6 @@ export declare class Metric extends MetricData implements ISerializable {
|
|
|
1972
2222
|
metrics: FieldType;
|
|
1973
2223
|
properties: FieldType;
|
|
1974
2224
|
};
|
|
1975
|
-
/**
|
|
1976
|
-
* Constructs a new instance of the MetricTelemetry object
|
|
1977
|
-
*/
|
|
1978
|
-
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
|
|
1979
|
-
[key: string]: number;
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
/**
|
|
1984
|
-
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
|
|
1985
|
-
*/
|
|
1986
|
-
declare class MetricData implements Domain {
|
|
1987
2225
|
/**
|
|
1988
2226
|
* Schema version
|
|
1989
2227
|
*/
|
|
@@ -2000,7 +2238,12 @@ declare class MetricData implements Domain {
|
|
|
2000
2238
|
* Collection of custom measurements.
|
|
2001
2239
|
*/
|
|
2002
2240
|
measurements: any;
|
|
2003
|
-
|
|
2241
|
+
/**
|
|
2242
|
+
* Constructs a new instance of the MetricTelemetry object
|
|
2243
|
+
*/
|
|
2244
|
+
constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
|
|
2245
|
+
[key: string]: number;
|
|
2246
|
+
});
|
|
2004
2247
|
}
|
|
2005
2248
|
|
|
2006
2249
|
/**
|
|
@@ -2008,7 +2251,7 @@ declare class MetricData implements Domain {
|
|
|
2008
2251
|
*/
|
|
2009
2252
|
export declare function msToTimeSpan(totalms: number): string;
|
|
2010
2253
|
|
|
2011
|
-
export declare class PageView
|
|
2254
|
+
export declare class PageView implements IPageViewData, ISerializable {
|
|
2012
2255
|
static envelopeType: string;
|
|
2013
2256
|
static dataType: string;
|
|
2014
2257
|
aiDataContract: {
|
|
@@ -2020,6 +2263,34 @@ export declare class PageView extends PageViewData implements ISerializable {
|
|
|
2020
2263
|
measurements: FieldType;
|
|
2021
2264
|
id: FieldType;
|
|
2022
2265
|
};
|
|
2266
|
+
/**
|
|
2267
|
+
* Schema version
|
|
2268
|
+
*/
|
|
2269
|
+
ver: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
2272
|
+
*/
|
|
2273
|
+
name: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Collection of custom properties.
|
|
2276
|
+
*/
|
|
2277
|
+
properties: any;
|
|
2278
|
+
/**
|
|
2279
|
+
* Collection of custom measurements.
|
|
2280
|
+
*/
|
|
2281
|
+
measurements: any;
|
|
2282
|
+
/**
|
|
2283
|
+
* Request URL with all query string parameters
|
|
2284
|
+
*/
|
|
2285
|
+
url: string;
|
|
2286
|
+
/**
|
|
2287
|
+
* 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.
|
|
2288
|
+
*/
|
|
2289
|
+
duration: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2292
|
+
*/
|
|
2293
|
+
id: string;
|
|
2023
2294
|
/**
|
|
2024
2295
|
* Constructs a new instance of the PageEventTelemetry object
|
|
2025
2296
|
*/
|
|
@@ -2030,30 +2301,30 @@ export declare class PageView extends PageViewData implements ISerializable {
|
|
|
2030
2301
|
}, id?: string);
|
|
2031
2302
|
}
|
|
2032
2303
|
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2304
|
+
export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
|
|
2305
|
+
static envelopeType: string;
|
|
2306
|
+
static dataType: string;
|
|
2307
|
+
aiDataContract: {
|
|
2308
|
+
ver: FieldType;
|
|
2309
|
+
name: FieldType;
|
|
2310
|
+
url: FieldType;
|
|
2311
|
+
duration: FieldType;
|
|
2312
|
+
perfTotal: FieldType;
|
|
2313
|
+
networkConnect: FieldType;
|
|
2314
|
+
sentRequest: FieldType;
|
|
2315
|
+
receivedResponse: FieldType;
|
|
2316
|
+
domProcessing: FieldType;
|
|
2317
|
+
properties: FieldType;
|
|
2318
|
+
measurements: FieldType;
|
|
2319
|
+
};
|
|
2037
2320
|
/**
|
|
2038
2321
|
* Schema version
|
|
2039
2322
|
*/
|
|
2040
2323
|
ver: number;
|
|
2041
|
-
/**
|
|
2042
|
-
* Request URL with all query string parameters
|
|
2043
|
-
*/
|
|
2044
|
-
url: string;
|
|
2045
2324
|
/**
|
|
2046
2325
|
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
|
|
2047
2326
|
*/
|
|
2048
2327
|
name: string;
|
|
2049
|
-
/**
|
|
2050
|
-
* 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.
|
|
2051
|
-
*/
|
|
2052
|
-
duration: string;
|
|
2053
|
-
/**
|
|
2054
|
-
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2055
|
-
*/
|
|
2056
|
-
id: string;
|
|
2057
2328
|
/**
|
|
2058
2329
|
* Collection of custom properties.
|
|
2059
2330
|
*/
|
|
@@ -2062,33 +2333,22 @@ export declare class PageViewData extends EventData {
|
|
|
2062
2333
|
* Collection of custom measurements.
|
|
2063
2334
|
*/
|
|
2064
2335
|
measurements: any;
|
|
2065
|
-
constructor();
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
/**
|
|
2069
|
-
* 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.
|
|
2070
|
-
*/
|
|
2071
|
-
declare class PageViewPerfData extends PageViewData {
|
|
2072
|
-
/**
|
|
2073
|
-
* Schema version
|
|
2074
|
-
*/
|
|
2075
|
-
ver: number;
|
|
2076
2336
|
/**
|
|
2077
2337
|
* Request URL with all query string parameters
|
|
2078
2338
|
*/
|
|
2079
2339
|
url: string;
|
|
2080
2340
|
/**
|
|
2081
|
-
*
|
|
2341
|
+
* 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.
|
|
2082
2342
|
*/
|
|
2083
|
-
|
|
2343
|
+
duration: string;
|
|
2084
2344
|
/**
|
|
2085
|
-
*
|
|
2345
|
+
* Identifier of a page view instance. Used for correlation between page view and other telemetry items.
|
|
2086
2346
|
*/
|
|
2087
|
-
|
|
2347
|
+
id: string;
|
|
2088
2348
|
/**
|
|
2089
|
-
*
|
|
2349
|
+
* Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2090
2350
|
*/
|
|
2091
|
-
|
|
2351
|
+
perfTotal: string;
|
|
2092
2352
|
/**
|
|
2093
2353
|
* Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2094
2354
|
*/
|
|
@@ -2105,33 +2365,6 @@ declare class PageViewPerfData extends PageViewData {
|
|
|
2105
2365
|
* DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
|
|
2106
2366
|
*/
|
|
2107
2367
|
domProcessing: string;
|
|
2108
|
-
/**
|
|
2109
|
-
* Collection of custom properties.
|
|
2110
|
-
*/
|
|
2111
|
-
properties: any;
|
|
2112
|
-
/**
|
|
2113
|
-
* Collection of custom measurements.
|
|
2114
|
-
*/
|
|
2115
|
-
measurements: any;
|
|
2116
|
-
constructor();
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
export declare class PageViewPerformance extends PageViewPerfData implements ISerializable {
|
|
2120
|
-
static envelopeType: string;
|
|
2121
|
-
static dataType: string;
|
|
2122
|
-
aiDataContract: {
|
|
2123
|
-
ver: FieldType;
|
|
2124
|
-
name: FieldType;
|
|
2125
|
-
url: FieldType;
|
|
2126
|
-
duration: FieldType;
|
|
2127
|
-
perfTotal: FieldType;
|
|
2128
|
-
networkConnect: FieldType;
|
|
2129
|
-
sentRequest: FieldType;
|
|
2130
|
-
receivedResponse: FieldType;
|
|
2131
|
-
domProcessing: FieldType;
|
|
2132
|
-
properties: FieldType;
|
|
2133
|
-
measurements: FieldType;
|
|
2134
|
-
};
|
|
2135
2368
|
/**
|
|
2136
2369
|
* Constructs a new instance of the PageEventTelemetry object
|
|
2137
2370
|
*/
|
|
@@ -2148,7 +2381,7 @@ export declare const ProcessLegacy = "ProcessLegacy";
|
|
|
2148
2381
|
|
|
2149
2382
|
export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
2150
2383
|
|
|
2151
|
-
export declare class RemoteDependencyData
|
|
2384
|
+
export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
|
|
2152
2385
|
static envelopeType: string;
|
|
2153
2386
|
static dataType: string;
|
|
2154
2387
|
aiDataContract: {
|
|
@@ -2174,16 +2407,6 @@ export declare class RemoteDependencyData extends RemoteDependencyData_2 impleme
|
|
|
2174
2407
|
commandName: FieldType;
|
|
2175
2408
|
dependencyTypeName: FieldType;
|
|
2176
2409
|
};
|
|
2177
|
-
/**
|
|
2178
|
-
* Constructs a new instance of the RemoteDependencyData object
|
|
2179
|
-
*/
|
|
2180
|
-
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);
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
/**
|
|
2184
|
-
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
|
|
2185
|
-
*/
|
|
2186
|
-
declare class RemoteDependencyData_2 implements Domain {
|
|
2187
2410
|
/**
|
|
2188
2411
|
* Schema version
|
|
2189
2412
|
*/
|
|
@@ -2228,7 +2451,10 @@ declare class RemoteDependencyData_2 implements Domain {
|
|
|
2228
2451
|
* Collection of custom measurements.
|
|
2229
2452
|
*/
|
|
2230
2453
|
measurements: any;
|
|
2231
|
-
|
|
2454
|
+
/**
|
|
2455
|
+
* Constructs a new instance of the RemoteDependencyData object
|
|
2456
|
+
*/
|
|
2457
|
+
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);
|
|
2232
2458
|
}
|
|
2233
2459
|
|
|
2234
2460
|
export declare const RequestHeaders: IRequestHeaders;
|
|
@@ -2246,32 +2472,6 @@ export declare enum SeverityLevel {
|
|
|
2246
2472
|
Critical = 4
|
|
2247
2473
|
}
|
|
2248
2474
|
|
|
2249
|
-
/**
|
|
2250
|
-
* Stack frame information.
|
|
2251
|
-
*/
|
|
2252
|
-
declare class StackFrame {
|
|
2253
|
-
/**
|
|
2254
|
-
* Level in the call stack. For the long stacks SDK may not report every function in a call stack.
|
|
2255
|
-
*/
|
|
2256
|
-
level: number;
|
|
2257
|
-
/**
|
|
2258
|
-
* Method name.
|
|
2259
|
-
*/
|
|
2260
|
-
method: string;
|
|
2261
|
-
/**
|
|
2262
|
-
* Name of the assembly (dll, jar, etc.) containing this function.
|
|
2263
|
-
*/
|
|
2264
|
-
assembly: string;
|
|
2265
|
-
/**
|
|
2266
|
-
* File name or URL of the method implementation.
|
|
2267
|
-
*/
|
|
2268
|
-
fileName: string;
|
|
2269
|
-
/**
|
|
2270
|
-
* Line number of the code implementation.
|
|
2271
|
-
*/
|
|
2272
|
-
line: number;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
2475
|
export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
|
|
2276
2476
|
|
|
2277
2477
|
export declare const strNotSpecified = "not_specified";
|
|
@@ -2293,7 +2493,7 @@ export declare class TelemetryItemCreator {
|
|
|
2293
2493
|
}): ITelemetryItem;
|
|
2294
2494
|
}
|
|
2295
2495
|
|
|
2296
|
-
export declare class Trace
|
|
2496
|
+
export declare class Trace implements IMessageData, ISerializable {
|
|
2297
2497
|
static envelopeType: string;
|
|
2298
2498
|
static dataType: string;
|
|
2299
2499
|
aiDataContract: {
|
|
@@ -2302,6 +2502,26 @@ export declare class Trace extends MessageData implements ISerializable {
|
|
|
2302
2502
|
severityLevel: FieldType;
|
|
2303
2503
|
properties: FieldType;
|
|
2304
2504
|
};
|
|
2505
|
+
/**
|
|
2506
|
+
* Schema version
|
|
2507
|
+
*/
|
|
2508
|
+
ver: number;
|
|
2509
|
+
/**
|
|
2510
|
+
* Trace message
|
|
2511
|
+
*/
|
|
2512
|
+
message: string;
|
|
2513
|
+
/**
|
|
2514
|
+
* Trace severity level.
|
|
2515
|
+
*/
|
|
2516
|
+
severityLevel: SeverityLevel;
|
|
2517
|
+
/**
|
|
2518
|
+
* Collection of custom properties.
|
|
2519
|
+
*/
|
|
2520
|
+
properties: any;
|
|
2521
|
+
/**
|
|
2522
|
+
* Collection of custom measurements.
|
|
2523
|
+
*/
|
|
2524
|
+
measurements: any;
|
|
2305
2525
|
/**
|
|
2306
2526
|
* Constructs a new instance of the TraceTelemetry object
|
|
2307
2527
|
*/
|
|
@@ -2326,12 +2546,25 @@ export declare function urlParseUrl(url: string): HTMLAnchorElement;
|
|
|
2326
2546
|
|
|
2327
2547
|
export declare const Util: IUtil;
|
|
2328
2548
|
|
|
2329
|
-
|
|
2549
|
+
/**
|
|
2550
|
+
* Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
|
|
2551
|
+
* any previous disable calls.
|
|
2552
|
+
* @param reset - Should the usage be reset and determined only based on whether LocalStorage is available
|
|
2553
|
+
*/
|
|
2554
|
+
export declare function utlCanUseLocalStorage(reset?: boolean): boolean;
|
|
2330
2555
|
|
|
2331
|
-
export declare function utlCanUseSessionStorage(): boolean;
|
|
2556
|
+
export declare function utlCanUseSessionStorage(reset?: boolean): boolean;
|
|
2332
2557
|
|
|
2558
|
+
/**
|
|
2559
|
+
* Disables the global SDK usage of local or session storage if available
|
|
2560
|
+
*/
|
|
2333
2561
|
export declare function utlDisableStorage(): void;
|
|
2334
2562
|
|
|
2563
|
+
/**
|
|
2564
|
+
* Re-enables the global SDK usage of local or session storage if available
|
|
2565
|
+
*/
|
|
2566
|
+
export declare function utlEnableStorage(): void;
|
|
2567
|
+
|
|
2335
2568
|
export declare function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): string;
|
|
2336
2569
|
|
|
2337
2570
|
export declare function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): string;
|