@microsoft/applicationinsights-common 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-04

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