@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.
Files changed (223) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +521 -743
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +2816 -1246
  7. package/dist/applicationinsights-common.api.md +87 -43
  8. package/dist/applicationinsights-common.d.ts +503 -290
  9. package/dist/applicationinsights-common.js +521 -743
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +503 -290
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +1 -1
  18. package/dist-esm/HelperFuncs.js +1 -1
  19. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  20. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  21. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  22. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  23. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  24. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  25. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  26. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  27. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  28. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  29. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  30. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
  31. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
  33. package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
  34. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
  35. package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
  36. package/dist-esm/Interfaces/Contracts/IData.js +1 -1
  37. package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
  38. package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
  39. package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
  40. package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
  41. package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
  42. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +1 -1
  51. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  52. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  53. package/dist-esm/Interfaces/IConfig.js +1 -1
  54. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  55. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  56. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  57. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  58. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  59. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  60. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  61. package/dist-esm/Interfaces/IPartC.js +1 -1
  62. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  63. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  64. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  65. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  66. package/dist-esm/Interfaces/PartAExtensions.js +2 -2
  67. package/dist-esm/Interfaces/PartAExtensions.js.map +1 -1
  68. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  69. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  70. package/dist-esm/RequestResponseHeaders.js +1 -1
  71. package/dist-esm/StorageHelperFuncs.js +8 -8
  72. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  73. package/dist-esm/Telemetry/Common/Data.js +6 -11
  74. package/dist-esm/Telemetry/Common/Data.js.map +1 -1
  75. package/dist-esm/Telemetry/Common/DataPoint.js +8 -9
  76. package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
  77. package/dist-esm/Telemetry/Common/DataSanitizer.js +9 -9
  78. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  79. package/dist-esm/Telemetry/Common/Envelope.js +12 -12
  80. package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
  81. package/dist-esm/Telemetry/Event.js +9 -12
  82. package/dist-esm/Telemetry/Event.js.map +1 -1
  83. package/dist-esm/Telemetry/Exception.js +74 -81
  84. package/dist-esm/Telemetry/Exception.js.map +1 -1
  85. package/dist-esm/Telemetry/Metric.js +9 -12
  86. package/dist-esm/Telemetry/Metric.js.map +1 -1
  87. package/dist-esm/Telemetry/PageView.js +12 -15
  88. package/dist-esm/Telemetry/PageView.js.map +1 -1
  89. package/dist-esm/Telemetry/PageViewPerformance.js +16 -19
  90. package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
  91. package/dist-esm/Telemetry/RemoteDependencyData.js +17 -20
  92. package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
  93. package/dist-esm/Telemetry/Trace.js +10 -13
  94. package/dist-esm/Telemetry/Trace.js.map +1 -1
  95. package/dist-esm/TelemetryItemCreator.js +1 -1
  96. package/dist-esm/UrlHelperFuncs.js +1 -1
  97. package/dist-esm/Util.js +1 -1
  98. package/dist-esm/applicationinsights-common.js +3 -6
  99. package/dist-esm/applicationinsights-common.js.map +1 -1
  100. package/package.json +3 -3
  101. package/src/Interfaces/IExceptionTelemetry.ts +1 -1
  102. package/src/Interfaces/ITraceTelemetry.ts +1 -1
  103. package/src/Interfaces/PartAExtensions.ts +1 -1
  104. package/src/Interfaces/Telemetry/IEnvelope.ts +35 -3
  105. package/src/StorageHelperFuncs.ts +7 -7
  106. package/src/Telemetry/Common/Data.ts +12 -4
  107. package/src/Telemetry/Common/DataPoint.ts +38 -2
  108. package/src/Telemetry/Common/DataSanitizer.ts +10 -10
  109. package/src/Telemetry/Common/Envelope.ts +51 -10
  110. package/src/Telemetry/Event.ts +30 -12
  111. package/src/Telemetry/Exception.ts +158 -71
  112. package/src/Telemetry/Metric.ts +27 -7
  113. package/src/Telemetry/PageView.ts +45 -10
  114. package/src/Telemetry/PageViewPerformance.ts +76 -14
  115. package/src/Telemetry/RemoteDependencyData.ts +70 -15
  116. package/src/Telemetry/Trace.ts +34 -8
  117. package/src/applicationinsights-common.ts +5 -5
  118. package/types/Enums.d.ts +4 -4
  119. package/types/Interfaces/IExceptionTelemetry.d.ts +1 -1
  120. package/types/Interfaces/ITraceTelemetry.d.ts +1 -1
  121. package/types/Interfaces/PartAExtensions.d.ts +1 -1
  122. package/types/Interfaces/Telemetry/IEnvelope.d.ts +24 -0
  123. package/types/Telemetry/Common/Data.d.ts +10 -2
  124. package/types/Telemetry/Common/DataPoint.d.ts +31 -2
  125. package/types/Telemetry/Common/DataSanitizer.d.ts +3 -3
  126. package/types/Telemetry/Common/Envelope.d.ts +35 -4
  127. package/types/Telemetry/Event.d.ts +19 -3
  128. package/types/Telemetry/Exception.d.ts +75 -7
  129. package/types/Telemetry/Metric.d.ts +19 -2
  130. package/types/Telemetry/PageView.d.ts +30 -2
  131. package/types/Telemetry/PageViewPerformance.d.ts +50 -2
  132. package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
  133. package/types/Telemetry/Trace.d.ts +23 -3
  134. package/types/applicationinsights-common.d.ts +5 -5
  135. package/types/tsdoc-metadata.json +1 -1
  136. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
  137. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
  138. package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
  139. package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
  140. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +0 -89
  141. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js.map +0 -1
  142. package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
  143. package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
  144. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
  145. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
  146. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
  147. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
  148. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
  149. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
  150. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
  151. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
  152. package/dist-esm/Interfaces/Contracts/Generated/Domain.js +0 -8
  153. package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
  154. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
  155. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
  156. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
  157. package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
  158. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
  159. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
  160. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
  161. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
  162. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
  163. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
  164. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
  165. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
  166. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
  167. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
  168. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
  169. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
  170. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
  171. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
  172. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
  173. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
  174. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +0 -19
  175. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js.map +0 -1
  176. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
  177. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
  178. package/dist-esm/Telemetry/Common/Base.js +0 -22
  179. package/dist-esm/Telemetry/Common/Base.js.map +0 -1
  180. package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
  181. package/src/Interfaces/Contracts/Generated/Base.ts +0 -18
  182. package/src/Interfaces/Contracts/Generated/ContextTagKeys.ts +0 -299
  183. package/src/Interfaces/Contracts/Generated/Data.ts +0 -26
  184. package/src/Interfaces/Contracts/Generated/DataPoint.ts +0 -44
  185. package/src/Interfaces/Contracts/Generated/DataPointType.ts +0 -11
  186. package/src/Interfaces/Contracts/Generated/DependencyKind.ts +0 -12
  187. package/src/Interfaces/Contracts/Generated/DependencySourceType.ts +0 -12
  188. package/src/Interfaces/Contracts/Generated/Domain.ts +0 -10
  189. package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
  190. package/src/Interfaces/Contracts/Generated/EventData.ts +0 -33
  191. package/src/Interfaces/Contracts/Generated/ExceptionData.ts +0 -40
  192. package/src/Interfaces/Contracts/Generated/ExceptionDetails.ts +0 -46
  193. package/src/Interfaces/Contracts/Generated/MessageData.ts +0 -39
  194. package/src/Interfaces/Contracts/Generated/MetricData.ts +0 -34
  195. package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
  196. package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
  197. package/src/Interfaces/Contracts/Generated/RemoteDependencyData.ts +0 -68
  198. package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
  199. package/src/Interfaces/Contracts/Generated/SeverityLevel.ts +0 -15
  200. package/src/Interfaces/Contracts/Generated/StackFrame.ts +0 -34
  201. package/src/Telemetry/Common/Base.ts +0 -14
  202. package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
  203. package/types/Interfaces/Contracts/Generated/Base.d.ts +0 -10
  204. package/types/Interfaces/Contracts/Generated/ContextTagKeys.d.ts +0 -175
  205. package/types/Interfaces/Contracts/Generated/Data.d.ts +0 -15
  206. package/types/Interfaces/Contracts/Generated/DataPoint.d.ts +0 -34
  207. package/types/Interfaces/Contracts/Generated/DataPointType.d.ts +0 -7
  208. package/types/Interfaces/Contracts/Generated/DependencyKind.d.ts +0 -8
  209. package/types/Interfaces/Contracts/Generated/DependencySourceType.d.ts +0 -8
  210. package/types/Interfaces/Contracts/Generated/Domain.d.ts +0 -5
  211. package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
  212. package/types/Interfaces/Contracts/Generated/EventData.d.ts +0 -23
  213. package/types/Interfaces/Contracts/Generated/ExceptionData.d.ts +0 -29
  214. package/types/Interfaces/Contracts/Generated/ExceptionDetails.d.ts +0 -34
  215. package/types/Interfaces/Contracts/Generated/MessageData.d.ts +0 -28
  216. package/types/Interfaces/Contracts/Generated/MetricData.d.ts +0 -24
  217. package/types/Interfaces/Contracts/Generated/PageViewData.d.ts +0 -35
  218. package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
  219. package/types/Interfaces/Contracts/Generated/RemoteDependencyData.d.ts +0 -51
  220. package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
  221. package/types/Interfaces/Contracts/Generated/SeverityLevel.d.ts +0 -10
  222. package/types/Interfaces/Contracts/Generated/StackFrame.d.ts +0 -25
  223. 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-beta.2203-16
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
@@ -13,13 +13,14 @@
13
13
  * ---------------------------------------------------------------------------
14
14
  */
15
15
 
16
+ import { _eInternalMessageId } from '@microsoft/applicationinsights-core-js';
17
+ import { EnumValue } from '@microsoft/applicationinsights-core-js';
16
18
  import { IChannelControls } from '@microsoft/applicationinsights-core-js';
17
19
  import { IConfiguration } from '@microsoft/applicationinsights-core-js';
18
20
  import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
19
21
  import { ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';
20
22
  import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
21
23
  import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
22
- import { _InternalMessageId } from '@microsoft/applicationinsights-core-js';
23
24
  import { IPlugin } from '@microsoft/applicationinsights-core-js';
24
25
  import { isBeaconsSupported as isBeaconApiSupported } from '@microsoft/applicationinsights-core-js';
25
26
  import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
@@ -27,18 +28,17 @@ import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
27
28
  /**
28
29
  * Data struct to contain only C section with custom fields.
29
30
  */
30
- export declare class AIBase {
31
+ export declare interface AIBase {
31
32
  /**
32
33
  * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
33
34
  */
34
35
  baseType: string;
35
- constructor();
36
36
  }
37
37
 
38
38
  /**
39
39
  * Data struct to contain both B and C sections.
40
40
  */
41
- export declare class AIData<TDomain> extends AIBase {
41
+ export declare interface AIData<TDomain> extends AIBase {
42
42
  /**
43
43
  * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
44
44
  */
@@ -47,7 +47,6 @@ export declare class AIData<TDomain> extends AIBase {
47
47
  * Container for data item (B section).
48
48
  */
49
49
  baseData: TDomain;
50
- constructor();
51
50
  }
52
51
 
53
52
  export declare const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
@@ -80,7 +79,7 @@ export declare function createDomEvent(eventName: string): Event;
80
79
 
81
80
  export declare let CtxTagKeys: ContextTagKeys;
82
81
 
83
- export declare class Data<TDomain> extends AIData<TDomain> implements ISerializable {
82
+ export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
84
83
  /**
85
84
  * The data contract for serializing this object.
86
85
  */
@@ -88,16 +87,33 @@ export declare class Data<TDomain> extends AIData<TDomain> implements ISerializa
88
87
  baseType: FieldType;
89
88
  baseData: FieldType;
90
89
  };
90
+ /**
91
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
92
+ */
93
+ baseType: string;
94
+ /**
95
+ * Container for data item (B section).
96
+ */
97
+ baseData: TDomain;
91
98
  /**
92
99
  * Constructs a new instance of telemetry data.
93
100
  */
94
101
  constructor(baseType: string, data: TDomain);
95
102
  }
96
103
 
97
- /**
98
- * Metric data single measurement.
99
- */
100
- declare class DataPoint {
104
+ declare class DataPoint implements IDataPoint, ISerializable {
105
+ /**
106
+ * The data contract for serializing this object.
107
+ */
108
+ aiDataContract: {
109
+ name: FieldType;
110
+ kind: FieldType;
111
+ value: FieldType;
112
+ count: FieldType;
113
+ min: FieldType;
114
+ max: FieldType;
115
+ stdDev: FieldType;
116
+ };
101
117
  /**
102
118
  * Name of the metric.
103
119
  */
@@ -131,7 +147,7 @@ declare class DataPoint {
131
147
  /**
132
148
  * Type of the metric data measurement.
133
149
  */
134
- declare enum DataPointType {
150
+ declare const enum DataPointType {
135
151
  Measurement = 0,
136
152
  Aggregation = 1
137
153
  }
@@ -140,7 +156,7 @@ export declare function dataSanitizeException(logger: IDiagnosticLogger, excepti
140
156
 
141
157
  export declare function dataSanitizeId(logger: IDiagnosticLogger, id: string): string;
142
158
 
143
- export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _InternalMessageId): any;
159
+ export declare function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId): any;
144
160
 
145
161
  export declare function dataSanitizeKey(logger: IDiagnosticLogger, name: any): any;
146
162
 
@@ -212,20 +228,14 @@ export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio
212
228
  */
213
229
  export declare const DisabledPropertyName: string;
214
230
 
215
- export declare const DistributedTracingModes: {
216
- AI: number;
217
- AI_AND_W3C: number;
218
- W3C: number;
219
- };
231
+ export declare const DistributedTracingModes: EnumValue< {
232
+ AI: number;
233
+ AI_AND_W3C: number;
234
+ W3C: number;
235
+ }>;
220
236
 
221
237
  export declare type DistributedTracingModes = number | eDistributedTracingModes;
222
238
 
223
- /**
224
- * The abstract common base of all domains.
225
- */
226
- declare interface Domain {
227
- }
228
-
229
239
  export declare function dsPadNumber(num: number): string;
230
240
 
231
241
  export declare const enum eDistributedTracingModes {
@@ -243,21 +253,11 @@ export declare const enum eDistributedTracingModes {
243
253
  W3C = 2
244
254
  }
245
255
 
246
- export declare class Envelope extends Envelope_2 implements IEnvelope {
256
+ export declare class Envelope implements IEnvelope {
247
257
  /**
248
258
  * The data contract for serializing this object.
249
259
  */
250
260
  aiDataContract: any;
251
- /**
252
- * Constructs a new instance of telemetry data.
253
- */
254
- constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
255
- }
256
-
257
- /**
258
- * System variables for a telemetry item.
259
- */
260
- declare class Envelope_2 {
261
261
  /**
262
262
  * 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.
263
263
  */
@@ -290,9 +290,13 @@ declare class Envelope_2 {
290
290
  * Telemetry data item.
291
291
  */
292
292
  data: AIBase;
293
+ /**
294
+ * Constructs a new instance of telemetry data.
295
+ */
296
+ constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
293
297
  }
294
298
 
295
- declare class Event_2 extends EventData implements ISerializable {
299
+ declare class Event_2 implements IEventData, ISerializable {
296
300
  static envelopeType: string;
297
301
  static dataType: string;
298
302
  aiDataContract: {
@@ -301,17 +305,6 @@ declare class Event_2 extends EventData implements ISerializable {
301
305
  properties: FieldType;
302
306
  measurements: FieldType;
303
307
  };
304
- /**
305
- * Constructs a new instance of the EventTelemetry object
306
- */
307
- constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
308
- }
309
- export { Event_2 as Event }
310
-
311
- /**
312
- * 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.
313
- */
314
- declare class EventData implements Domain {
315
308
  /**
316
309
  * Schema version
317
310
  */
@@ -328,10 +321,14 @@ declare class EventData implements Domain {
328
321
  * Collection of custom measurements.
329
322
  */
330
323
  measurements: any;
331
- constructor();
324
+ /**
325
+ * Constructs a new instance of the EventTelemetry object
326
+ */
327
+ constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
332
328
  }
329
+ export { Event_2 as Event }
333
330
 
334
- export declare class Exception extends ExceptionData implements ISerializable {
331
+ export declare class Exception implements IExceptionData, ISerializable {
335
332
  static envelopeType: string;
336
333
  static dataType: string;
337
334
  id?: string;
@@ -344,30 +341,6 @@ export declare class Exception extends ExceptionData implements ISerializable {
344
341
  properties: FieldType;
345
342
  measurements: FieldType;
346
343
  };
347
- /**
348
- * Constructs a new instance of the ExceptionTelemetry object
349
- */
350
- constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
351
- [key: string]: any;
352
- }, measurements?: {
353
- [key: string]: number;
354
- }, severityLevel?: SeverityLevel, id?: string);
355
- static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
356
- static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
357
- [key: string]: number;
358
- }): Exception;
359
- toInterface(): IExceptionInternal;
360
- /**
361
- * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
362
- */
363
- static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
364
- static formatError: typeof _formatErrorCode;
365
- }
366
-
367
- /**
368
- * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
369
- */
370
- declare class ExceptionData implements Domain {
371
344
  /**
372
345
  * Schema version
373
346
  */
@@ -375,7 +348,7 @@ declare class ExceptionData implements Domain {
375
348
  /**
376
349
  * Exception chain - list of inner exceptions.
377
350
  */
378
- exceptions: ExceptionDetails[];
351
+ exceptions: IExceptionDetails[];
379
352
  /**
380
353
  * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
381
354
  */
@@ -388,41 +361,24 @@ declare class ExceptionData implements Domain {
388
361
  * Collection of custom measurements.
389
362
  */
390
363
  measurements: any;
391
- constructor();
392
- }
393
-
394
- /**
395
- * Exception details of the exception in a chain.
396
- */
397
- declare class ExceptionDetails {
398
- /**
399
- * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
400
- */
401
- id: number;
402
- /**
403
- * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
404
- */
405
- outerId: number;
406
364
  /**
407
- * Exception type name.
408
- */
409
- typeName: string;
410
- /**
411
- * Exception message.
412
- */
413
- message: string;
414
- /**
415
- * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
416
- */
417
- hasFullStack: boolean;
418
- /**
419
- * Text describing the stack. Either stack or parsedStack should have a value.
365
+ * Constructs a new instance of the ExceptionTelemetry object
420
366
  */
421
- stack: string;
367
+ constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
368
+ [key: string]: any;
369
+ }, measurements?: {
370
+ [key: string]: number;
371
+ }, severityLevel?: SeverityLevel, id?: string);
372
+ static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
373
+ static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
374
+ [key: string]: number;
375
+ }): Exception;
376
+ toInterface(): IExceptionInternal;
422
377
  /**
423
- * List of stack frames. Either stack or parsedStack should have a value.
378
+ * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
424
379
  */
425
- parsedStack: StackFrame[];
380
+ static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
381
+ static formatError: typeof _formatErrorCode;
426
382
  }
427
383
 
428
384
  export declare const Extensions: {
@@ -1117,6 +1073,40 @@ export declare interface ICorrelationIdHelper {
1117
1073
  getCorrelationContextValue(responseHeader: string, key: string): string | undefined;
1118
1074
  }
1119
1075
 
1076
+ /**
1077
+ * Metric data single measurement.
1078
+ */
1079
+ declare interface IDataPoint {
1080
+ /**
1081
+ * Name of the metric.
1082
+ */
1083
+ name: string;
1084
+ /**
1085
+ * Metric type. Single measurement or the aggregated value.
1086
+ */
1087
+ kind: DataPointType;
1088
+ /**
1089
+ * Single value for measurement. Sum of individual measurements for the aggregation.
1090
+ */
1091
+ value: number;
1092
+ /**
1093
+ * Metric weight of the aggregated metric. Should not be set for a measurement.
1094
+ */
1095
+ count: number;
1096
+ /**
1097
+ * Minimum value of the aggregated metric. Should not be set for a measurement.
1098
+ */
1099
+ min: number;
1100
+ /**
1101
+ * Maximum value of the aggregated metric. Should not be set for a measurement.
1102
+ */
1103
+ max: number;
1104
+ /**
1105
+ * Standard deviation of the aggregated metric. Should not be set for a measurement.
1106
+ */
1107
+ stdDev: number;
1108
+ }
1109
+
1120
1110
  export declare interface IDataSanitizer {
1121
1111
  /**
1122
1112
  * Max length allowed for custom names.
@@ -1155,7 +1145,7 @@ export declare interface IDataSanitizer {
1155
1145
  sanitizeProperties: (logger: IDiagnosticLogger, properties: any) => any;
1156
1146
  sanitizeMeasurements: (logger: IDiagnosticLogger, measurements: any) => any;
1157
1147
  sanitizeId: (logger: IDiagnosticLogger, id: string) => string;
1158
- sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _InternalMessageId) => any;
1148
+ sanitizeInput: (logger: IDiagnosticLogger, input: any, maxLength: number, _msgId: _eInternalMessageId) => any;
1159
1149
  padNumber: (num: number) => string;
1160
1150
  /**
1161
1151
  * helper method to trim strings (IE8 does not implement String.prototype.trim)
@@ -1214,19 +1204,71 @@ export declare interface IDevice {
1214
1204
  ip: string;
1215
1205
  }
1216
1206
 
1207
+ /**
1208
+ * The abstract common base of all domains.
1209
+ */
1210
+ declare interface IDomain {
1211
+ }
1212
+
1217
1213
  export declare interface IEnvelope extends ISerializable {
1214
+ /**
1215
+ * 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.
1216
+ */
1218
1217
  ver: number;
1218
+ /**
1219
+ * Type name of telemetry data item.
1220
+ */
1219
1221
  name: string;
1222
+ /**
1223
+ * 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.
1224
+ */
1220
1225
  time: string;
1226
+ /**
1227
+ * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
1228
+ */
1221
1229
  sampleRate: number;
1230
+ /**
1231
+ * Sequence field used to track absolute order of uploaded events.
1232
+ */
1222
1233
  seq: string;
1234
+ /**
1235
+ * 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.
1236
+ */
1223
1237
  iKey: string;
1238
+ /**
1239
+ * Key/value collection of context properties. See ContextTagKeys for information on available properties.
1240
+ */
1224
1241
  tags: {
1225
1242
  [name: string]: any;
1226
1243
  };
1244
+ /**
1245
+ * Telemetry data item.
1246
+ */
1227
1247
  data: any;
1228
1248
  }
1229
1249
 
1250
+ /**
1251
+ * 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.
1252
+ */
1253
+ declare interface IEventData extends IDomain {
1254
+ /**
1255
+ * Schema version
1256
+ */
1257
+ ver: number;
1258
+ /**
1259
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
1260
+ */
1261
+ name: string;
1262
+ /**
1263
+ * Collection of custom properties.
1264
+ */
1265
+ properties: any;
1266
+ /**
1267
+ * Collection of custom measurements.
1268
+ */
1269
+ measurements: any;
1270
+ }
1271
+
1230
1272
  export declare interface IEventTelemetry extends IPartC {
1231
1273
  /**
1232
1274
  * @description An event name string
@@ -1242,57 +1284,117 @@ export declare interface IEventTelemetry extends IPartC {
1242
1284
  iKey?: string;
1243
1285
  }
1244
1286
 
1245
- declare interface IExceptionDetailsInternal {
1246
- id: number;
1247
- outerId: number;
1248
- typeName: string;
1249
- message: string;
1250
- hasFullStack: boolean;
1251
- stack: string;
1252
- parsedStack: IExceptionStackFrameInternal[];
1253
- }
1254
-
1255
- export declare interface IExceptionInternal extends IPartC {
1256
- ver: string;
1257
- id: string;
1258
- exceptions: IExceptionDetailsInternal[];
1259
- severityLevel?: SeverityLevel | number;
1260
- problemGroup: string;
1261
- isManual: boolean;
1262
- }
1263
-
1264
- declare interface IExceptionStackFrameInternal {
1265
- level: number;
1266
- method: string;
1267
- assembly: string;
1268
- fileName: string;
1269
- line: number;
1270
- pos?: number;
1271
- }
1272
-
1273
1287
  /**
1274
- * @export
1275
- * @interface IExceptionTelemetry
1276
- * @description Exception interface used as primary parameter to trackException
1288
+ * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
1277
1289
  */
1278
- export declare interface IExceptionTelemetry extends IPartC {
1290
+ declare interface IExceptionData extends IDomain {
1279
1291
  /**
1280
- * Unique guid identifying this error
1292
+ * Schema version
1281
1293
  */
1282
- id?: string;
1294
+ ver: number;
1283
1295
  /**
1284
- * @deprecated
1285
- * @type {Error}
1286
- * @memberof IExceptionTelemetry
1287
- * @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
1296
+ * Exception chain - list of inner exceptions.
1288
1297
  */
1289
- error?: Error;
1298
+ exceptions: IExceptionDetails[];
1290
1299
  /**
1291
- * @type {Error}
1292
- * @memberof IExceptionTelemetry
1293
- * @description Error Object(s)
1300
+ * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
1294
1301
  */
1295
- exception?: Error | IAutoExceptionTelemetry;
1302
+ severityLevel: SeverityLevel;
1303
+ /**
1304
+ * Collection of custom properties.
1305
+ */
1306
+ properties: any;
1307
+ /**
1308
+ * Collection of custom measurements.
1309
+ */
1310
+ measurements: any;
1311
+ }
1312
+
1313
+ /**
1314
+ * Exception details of the exception in a chain.
1315
+ */
1316
+ declare interface IExceptionDetails {
1317
+ /**
1318
+ * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
1319
+ */
1320
+ id: number;
1321
+ /**
1322
+ * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
1323
+ */
1324
+ outerId: number;
1325
+ /**
1326
+ * Exception type name.
1327
+ */
1328
+ typeName: string;
1329
+ /**
1330
+ * Exception message.
1331
+ */
1332
+ message: string;
1333
+ /**
1334
+ * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
1335
+ */
1336
+ hasFullStack: boolean;
1337
+ /**
1338
+ * Text describing the stack. Either stack or parsedStack should have a value.
1339
+ */
1340
+ stack: string;
1341
+ /**
1342
+ * List of stack frames. Either stack or parsedStack should have a value.
1343
+ */
1344
+ parsedStack: IStackFrame[];
1345
+ }
1346
+
1347
+ declare interface IExceptionDetailsInternal {
1348
+ id: number;
1349
+ outerId: number;
1350
+ typeName: string;
1351
+ message: string;
1352
+ hasFullStack: boolean;
1353
+ stack: string;
1354
+ parsedStack: IExceptionStackFrameInternal[];
1355
+ }
1356
+
1357
+ export declare interface IExceptionInternal extends IPartC {
1358
+ ver: string;
1359
+ id: string;
1360
+ exceptions: IExceptionDetailsInternal[];
1361
+ severityLevel?: SeverityLevel | number;
1362
+ problemGroup: string;
1363
+ isManual: boolean;
1364
+ }
1365
+
1366
+ declare interface IExceptionStackFrameInternal {
1367
+ level: number;
1368
+ method: string;
1369
+ assembly: string;
1370
+ fileName: string;
1371
+ line: number;
1372
+ pos?: number;
1373
+ }
1374
+
1375
+ /**
1376
+ * @export
1377
+ * @interface IExceptionTelemetry
1378
+ * @description Exception interface used as primary parameter to trackException
1379
+ */
1380
+ export declare interface IExceptionTelemetry extends IPartC {
1381
+ /**
1382
+ * Unique guid identifying this error
1383
+ */
1384
+ id?: string;
1385
+ /**
1386
+ * @deprecated
1387
+ * @type {Error}
1388
+ * @memberof IExceptionTelemetry
1389
+ * @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
1390
+ */
1391
+ error?: Error;
1392
+ /**
1393
+ * @type {Error}
1394
+ * @memberof IExceptionTelemetry
1395
+ * @description Error Object(s)
1396
+ */
1397
+ exception?: Error | IAutoExceptionTelemetry;
1296
1398
  /**
1297
1399
  * @description Specified severity of exception for use with
1298
1400
  * telemetry filtering in dashboard
@@ -1333,6 +1435,54 @@ export declare interface ILocation {
1333
1435
  ip: string;
1334
1436
  }
1335
1437
 
1438
+ /**
1439
+ * 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.
1440
+ */
1441
+ declare interface IMessageData extends IDomain {
1442
+ /**
1443
+ * Schema version
1444
+ */
1445
+ ver: number;
1446
+ /**
1447
+ * Trace message
1448
+ */
1449
+ message: string;
1450
+ /**
1451
+ * Trace severity level.
1452
+ */
1453
+ severityLevel: SeverityLevel;
1454
+ /**
1455
+ * Collection of custom properties.
1456
+ */
1457
+ properties: any;
1458
+ /**
1459
+ * Collection of custom measurements.
1460
+ */
1461
+ measurements: any;
1462
+ }
1463
+
1464
+ /**
1465
+ * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
1466
+ */
1467
+ declare interface IMetricData extends IDomain {
1468
+ /**
1469
+ * Schema version
1470
+ */
1471
+ ver: number;
1472
+ /**
1473
+ * 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.
1474
+ */
1475
+ metrics: IDataPoint[];
1476
+ /**
1477
+ * Collection of custom properties.
1478
+ */
1479
+ properties: any;
1480
+ /**
1481
+ * Collection of custom measurements.
1482
+ */
1483
+ measurements: any;
1484
+ }
1485
+
1336
1486
  export declare interface IMetricTelemetry extends IPartC {
1337
1487
  /**
1338
1488
  * @description (required) - name of this metric
@@ -1383,6 +1533,50 @@ export declare interface IOperatingSystem {
1383
1533
  name: string;
1384
1534
  }
1385
1535
 
1536
+ /**
1537
+ * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
1538
+ */
1539
+ export declare interface IPageViewData extends IEventData {
1540
+ /**
1541
+ * Request URL with all query string parameters
1542
+ */
1543
+ url: string;
1544
+ /**
1545
+ * 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.
1546
+ */
1547
+ duration: string;
1548
+ /**
1549
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
1550
+ */
1551
+ id: string;
1552
+ }
1553
+
1554
+ /**
1555
+ * 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.
1556
+ */
1557
+ declare interface IPageViewPerfData extends IPageViewData {
1558
+ /**
1559
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1560
+ */
1561
+ perfTotal: string;
1562
+ /**
1563
+ * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1564
+ */
1565
+ networkConnect: string;
1566
+ /**
1567
+ * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1568
+ */
1569
+ sentRequest: string;
1570
+ /**
1571
+ * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1572
+ */
1573
+ receivedResponse: string;
1574
+ /**
1575
+ * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1576
+ */
1577
+ domProcessing: string;
1578
+ }
1579
+
1386
1580
  export declare interface IPageViewPerformanceTelemetry extends IPartC {
1387
1581
  /**
1388
1582
  * name String - The name of the page. Defaults to the document title.
@@ -1515,6 +1709,56 @@ export declare interface IPropertiesPlugin {
1515
1709
  readonly context: ITelemetryContext;
1516
1710
  }
1517
1711
 
1712
+ /**
1713
+ * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
1714
+ */
1715
+ declare interface IRemoteDependencyData extends IDomain {
1716
+ /**
1717
+ * Schema version
1718
+ */
1719
+ ver: number;
1720
+ /**
1721
+ * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
1722
+ */
1723
+ name: string;
1724
+ /**
1725
+ * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
1726
+ */
1727
+ id: string;
1728
+ /**
1729
+ * Result code of a dependency call. Examples are SQL error code and HTTP status code.
1730
+ */
1731
+ resultCode: string;
1732
+ /**
1733
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
1734
+ */
1735
+ duration: string;
1736
+ /**
1737
+ * Indication of successful or unsuccessful call.
1738
+ */
1739
+ success: boolean;
1740
+ /**
1741
+ * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
1742
+ */
1743
+ data: string;
1744
+ /**
1745
+ * Target site of a dependency call. Examples are server name, host address.
1746
+ */
1747
+ target: string;
1748
+ /**
1749
+ * 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.
1750
+ */
1751
+ type: string;
1752
+ /**
1753
+ * Collection of custom properties.
1754
+ */
1755
+ properties: any;
1756
+ /**
1757
+ * Collection of custom measurements.
1758
+ */
1759
+ measurements: any;
1760
+ }
1761
+
1518
1762
  export declare interface IRequestContext {
1519
1763
  status?: number;
1520
1764
  xhr?: XMLHttpRequest;
@@ -1606,6 +1850,32 @@ declare interface IStackDetails {
1606
1850
  obj: string[];
1607
1851
  }
1608
1852
 
1853
+ /**
1854
+ * Stack frame information.
1855
+ */
1856
+ declare interface IStackFrame {
1857
+ /**
1858
+ * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
1859
+ */
1860
+ level: number;
1861
+ /**
1862
+ * Method name.
1863
+ */
1864
+ method: string;
1865
+ /**
1866
+ * Name of the assembly (dll, jar, etc.) containing this function.
1867
+ */
1868
+ assembly: string;
1869
+ /**
1870
+ * File name or URL of the method implementation.
1871
+ */
1872
+ fileName: string;
1873
+ /**
1874
+ * Line number of the code implementation.
1875
+ */
1876
+ line: number;
1877
+ }
1878
+
1609
1879
  export declare interface ITelemetryContext {
1610
1880
  /**
1611
1881
  * The object describing a component tracked by this object.
@@ -1945,34 +2215,7 @@ export declare interface IWeb {
1945
2215
  domain: string;
1946
2216
  }
1947
2217
 
1948
- /**
1949
- * 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.
1950
- */
1951
- declare class MessageData implements Domain {
1952
- /**
1953
- * Schema version
1954
- */
1955
- ver: number;
1956
- /**
1957
- * Trace message
1958
- */
1959
- message: string;
1960
- /**
1961
- * Trace severity level.
1962
- */
1963
- severityLevel: SeverityLevel;
1964
- /**
1965
- * Collection of custom properties.
1966
- */
1967
- properties: any;
1968
- /**
1969
- * Collection of custom measurements.
1970
- */
1971
- measurements: any;
1972
- constructor();
1973
- }
1974
-
1975
- export declare class Metric extends MetricData implements ISerializable {
2218
+ export declare class Metric implements IMetricData, ISerializable {
1976
2219
  static envelopeType: string;
1977
2220
  static dataType: string;
1978
2221
  aiDataContract: {
@@ -1980,18 +2223,6 @@ export declare class Metric extends MetricData implements ISerializable {
1980
2223
  metrics: FieldType;
1981
2224
  properties: FieldType;
1982
2225
  };
1983
- /**
1984
- * Constructs a new instance of the MetricTelemetry object
1985
- */
1986
- constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
1987
- [key: string]: number;
1988
- });
1989
- }
1990
-
1991
- /**
1992
- * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
1993
- */
1994
- declare class MetricData implements Domain {
1995
2226
  /**
1996
2227
  * Schema version
1997
2228
  */
@@ -2008,7 +2239,12 @@ declare class MetricData implements Domain {
2008
2239
  * Collection of custom measurements.
2009
2240
  */
2010
2241
  measurements: any;
2011
- constructor();
2242
+ /**
2243
+ * Constructs a new instance of the MetricTelemetry object
2244
+ */
2245
+ constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
2246
+ [key: string]: number;
2247
+ });
2012
2248
  }
2013
2249
 
2014
2250
  /**
@@ -2016,7 +2252,7 @@ declare class MetricData implements Domain {
2016
2252
  */
2017
2253
  export declare function msToTimeSpan(totalms: number): string;
2018
2254
 
2019
- export declare class PageView extends PageViewData implements ISerializable {
2255
+ export declare class PageView implements IPageViewData, ISerializable {
2020
2256
  static envelopeType: string;
2021
2257
  static dataType: string;
2022
2258
  aiDataContract: {
@@ -2028,6 +2264,34 @@ export declare class PageView extends PageViewData implements ISerializable {
2028
2264
  measurements: FieldType;
2029
2265
  id: FieldType;
2030
2266
  };
2267
+ /**
2268
+ * Schema version
2269
+ */
2270
+ ver: number;
2271
+ /**
2272
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2273
+ */
2274
+ name: string;
2275
+ /**
2276
+ * Collection of custom properties.
2277
+ */
2278
+ properties: any;
2279
+ /**
2280
+ * Collection of custom measurements.
2281
+ */
2282
+ measurements: any;
2283
+ /**
2284
+ * Request URL with all query string parameters
2285
+ */
2286
+ url: string;
2287
+ /**
2288
+ * 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.
2289
+ */
2290
+ duration: string;
2291
+ /**
2292
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2293
+ */
2294
+ id: string;
2031
2295
  /**
2032
2296
  * Constructs a new instance of the PageEventTelemetry object
2033
2297
  */
@@ -2038,30 +2302,30 @@ export declare class PageView extends PageViewData implements ISerializable {
2038
2302
  }, id?: string);
2039
2303
  }
2040
2304
 
2041
- /**
2042
- * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
2043
- */
2044
- export declare class PageViewData extends EventData {
2305
+ export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
2306
+ static envelopeType: string;
2307
+ static dataType: string;
2308
+ aiDataContract: {
2309
+ ver: FieldType;
2310
+ name: FieldType;
2311
+ url: FieldType;
2312
+ duration: FieldType;
2313
+ perfTotal: FieldType;
2314
+ networkConnect: FieldType;
2315
+ sentRequest: FieldType;
2316
+ receivedResponse: FieldType;
2317
+ domProcessing: FieldType;
2318
+ properties: FieldType;
2319
+ measurements: FieldType;
2320
+ };
2045
2321
  /**
2046
2322
  * Schema version
2047
2323
  */
2048
2324
  ver: number;
2049
- /**
2050
- * Request URL with all query string parameters
2051
- */
2052
- url: string;
2053
2325
  /**
2054
2326
  * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2055
2327
  */
2056
2328
  name: string;
2057
- /**
2058
- * 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.
2059
- */
2060
- duration: string;
2061
- /**
2062
- * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2063
- */
2064
- id: string;
2065
2329
  /**
2066
2330
  * Collection of custom properties.
2067
2331
  */
@@ -2070,33 +2334,22 @@ export declare class PageViewData extends EventData {
2070
2334
  * Collection of custom measurements.
2071
2335
  */
2072
2336
  measurements: any;
2073
- constructor();
2074
- }
2075
-
2076
- /**
2077
- * 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.
2078
- */
2079
- declare class PageViewPerfData extends PageViewData {
2080
- /**
2081
- * Schema version
2082
- */
2083
- ver: number;
2084
2337
  /**
2085
2338
  * Request URL with all query string parameters
2086
2339
  */
2087
2340
  url: string;
2088
2341
  /**
2089
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2342
+ * 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.
2090
2343
  */
2091
- perfTotal: string;
2344
+ duration: string;
2092
2345
  /**
2093
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2346
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2094
2347
  */
2095
- name: string;
2348
+ id: string;
2096
2349
  /**
2097
- * 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.
2350
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2098
2351
  */
2099
- duration: string;
2352
+ perfTotal: string;
2100
2353
  /**
2101
2354
  * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2102
2355
  */
@@ -2113,33 +2366,6 @@ declare class PageViewPerfData extends PageViewData {
2113
2366
  * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2114
2367
  */
2115
2368
  domProcessing: string;
2116
- /**
2117
- * Collection of custom properties.
2118
- */
2119
- properties: any;
2120
- /**
2121
- * Collection of custom measurements.
2122
- */
2123
- measurements: any;
2124
- constructor();
2125
- }
2126
-
2127
- export declare class PageViewPerformance extends PageViewPerfData implements ISerializable {
2128
- static envelopeType: string;
2129
- static dataType: string;
2130
- aiDataContract: {
2131
- ver: FieldType;
2132
- name: FieldType;
2133
- url: FieldType;
2134
- duration: FieldType;
2135
- perfTotal: FieldType;
2136
- networkConnect: FieldType;
2137
- sentRequest: FieldType;
2138
- receivedResponse: FieldType;
2139
- domProcessing: FieldType;
2140
- properties: FieldType;
2141
- measurements: FieldType;
2142
- };
2143
2369
  /**
2144
2370
  * Constructs a new instance of the PageEventTelemetry object
2145
2371
  */
@@ -2156,7 +2382,7 @@ export declare const ProcessLegacy = "ProcessLegacy";
2156
2382
 
2157
2383
  export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
2158
2384
 
2159
- export declare class RemoteDependencyData extends RemoteDependencyData_2 implements ISerializable {
2385
+ export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
2160
2386
  static envelopeType: string;
2161
2387
  static dataType: string;
2162
2388
  aiDataContract: {
@@ -2182,16 +2408,6 @@ export declare class RemoteDependencyData extends RemoteDependencyData_2 impleme
2182
2408
  commandName: FieldType;
2183
2409
  dependencyTypeName: FieldType;
2184
2410
  };
2185
- /**
2186
- * Constructs a new instance of the RemoteDependencyData object
2187
- */
2188
- 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);
2189
- }
2190
-
2191
- /**
2192
- * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
2193
- */
2194
- declare class RemoteDependencyData_2 implements Domain {
2195
2411
  /**
2196
2412
  * Schema version
2197
2413
  */
@@ -2236,7 +2452,10 @@ declare class RemoteDependencyData_2 implements Domain {
2236
2452
  * Collection of custom measurements.
2237
2453
  */
2238
2454
  measurements: any;
2239
- constructor();
2455
+ /**
2456
+ * Constructs a new instance of the RemoteDependencyData object
2457
+ */
2458
+ 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);
2240
2459
  }
2241
2460
 
2242
2461
  export declare const RequestHeaders: IRequestHeaders;
@@ -2254,32 +2473,6 @@ export declare enum SeverityLevel {
2254
2473
  Critical = 4
2255
2474
  }
2256
2475
 
2257
- /**
2258
- * Stack frame information.
2259
- */
2260
- declare class StackFrame {
2261
- /**
2262
- * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
2263
- */
2264
- level: number;
2265
- /**
2266
- * Method name.
2267
- */
2268
- method: string;
2269
- /**
2270
- * Name of the assembly (dll, jar, etc.) containing this function.
2271
- */
2272
- assembly: string;
2273
- /**
2274
- * File name or URL of the method implementation.
2275
- */
2276
- fileName: string;
2277
- /**
2278
- * Line number of the code implementation.
2279
- */
2280
- line: number;
2281
- }
2282
-
2283
2476
  export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
2284
2477
 
2285
2478
  export declare const strNotSpecified = "not_specified";
@@ -2301,7 +2494,7 @@ export declare class TelemetryItemCreator {
2301
2494
  }): ITelemetryItem;
2302
2495
  }
2303
2496
 
2304
- export declare class Trace extends MessageData implements ISerializable {
2497
+ export declare class Trace implements IMessageData, ISerializable {
2305
2498
  static envelopeType: string;
2306
2499
  static dataType: string;
2307
2500
  aiDataContract: {
@@ -2310,6 +2503,26 @@ export declare class Trace extends MessageData implements ISerializable {
2310
2503
  severityLevel: FieldType;
2311
2504
  properties: FieldType;
2312
2505
  };
2506
+ /**
2507
+ * Schema version
2508
+ */
2509
+ ver: number;
2510
+ /**
2511
+ * Trace message
2512
+ */
2513
+ message: string;
2514
+ /**
2515
+ * Trace severity level.
2516
+ */
2517
+ severityLevel: SeverityLevel;
2518
+ /**
2519
+ * Collection of custom properties.
2520
+ */
2521
+ properties: any;
2522
+ /**
2523
+ * Collection of custom measurements.
2524
+ */
2525
+ measurements: any;
2313
2526
  /**
2314
2527
  * Constructs a new instance of the TraceTelemetry object
2315
2528
  */