@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
@@ -27,18 +27,17 @@ import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
27
27
  /**
28
28
  * Data struct to contain only C section with custom fields.
29
29
  */
30
- export declare class AIBase {
30
+ export declare interface AIBase {
31
31
  /**
32
32
  * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
33
33
  */
34
34
  baseType: string;
35
- constructor();
36
35
  }
37
36
 
38
37
  /**
39
38
  * Data struct to contain both B and C sections.
40
39
  */
41
- export declare class AIData<TDomain> extends AIBase {
40
+ export declare interface AIData<TDomain> extends AIBase {
42
41
  /**
43
42
  * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
44
43
  */
@@ -47,7 +46,6 @@ export declare class AIData<TDomain> extends AIBase {
47
46
  * Container for data item (B section).
48
47
  */
49
48
  baseData: TDomain;
50
- constructor();
51
49
  }
52
50
 
53
51
  export declare const AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
@@ -80,7 +78,7 @@ export declare function createDomEvent(eventName: string): Event;
80
78
 
81
79
  export declare let CtxTagKeys: ContextTagKeys;
82
80
 
83
- export declare class Data<TDomain> extends AIData<TDomain> implements ISerializable {
81
+ export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
84
82
  /**
85
83
  * The data contract for serializing this object.
86
84
  */
@@ -88,16 +86,33 @@ export declare class Data<TDomain> extends AIData<TDomain> implements ISerializa
88
86
  baseType: FieldType;
89
87
  baseData: FieldType;
90
88
  };
89
+ /**
90
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
91
+ */
92
+ baseType: string;
93
+ /**
94
+ * Container for data item (B section).
95
+ */
96
+ baseData: TDomain;
91
97
  /**
92
98
  * Constructs a new instance of telemetry data.
93
99
  */
94
100
  constructor(baseType: string, data: TDomain);
95
101
  }
96
102
 
97
- /**
98
- * Metric data single measurement.
99
- */
100
- declare class DataPoint {
103
+ declare class DataPoint implements IDataPoint, ISerializable {
104
+ /**
105
+ * The data contract for serializing this object.
106
+ */
107
+ aiDataContract: {
108
+ name: FieldType;
109
+ kind: FieldType;
110
+ value: FieldType;
111
+ count: FieldType;
112
+ min: FieldType;
113
+ max: FieldType;
114
+ stdDev: FieldType;
115
+ };
101
116
  /**
102
117
  * Name of the metric.
103
118
  */
@@ -131,7 +146,7 @@ declare class DataPoint {
131
146
  /**
132
147
  * Type of the metric data measurement.
133
148
  */
134
- declare enum DataPointType {
149
+ declare const enum DataPointType {
135
150
  Measurement = 0,
136
151
  Aggregation = 1
137
152
  }
@@ -220,12 +235,6 @@ export declare const DistributedTracingModes: {
220
235
 
221
236
  export declare type DistributedTracingModes = number | eDistributedTracingModes;
222
237
 
223
- /**
224
- * The abstract common base of all domains.
225
- */
226
- declare interface Domain {
227
- }
228
-
229
238
  export declare function dsPadNumber(num: number): string;
230
239
 
231
240
  export declare const enum eDistributedTracingModes {
@@ -243,21 +252,11 @@ export declare const enum eDistributedTracingModes {
243
252
  W3C = 2
244
253
  }
245
254
 
246
- export declare class Envelope extends Envelope_2 implements IEnvelope {
255
+ export declare class Envelope implements IEnvelope {
247
256
  /**
248
257
  * The data contract for serializing this object.
249
258
  */
250
259
  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
260
  /**
262
261
  * Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
263
262
  */
@@ -290,9 +289,13 @@ declare class Envelope_2 {
290
289
  * Telemetry data item.
291
290
  */
292
291
  data: AIBase;
292
+ /**
293
+ * Constructs a new instance of telemetry data.
294
+ */
295
+ constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
293
296
  }
294
297
 
295
- declare class Event_2 extends EventData implements ISerializable {
298
+ declare class Event_2 implements IEventData, ISerializable {
296
299
  static envelopeType: string;
297
300
  static dataType: string;
298
301
  aiDataContract: {
@@ -301,17 +304,6 @@ declare class Event_2 extends EventData implements ISerializable {
301
304
  properties: FieldType;
302
305
  measurements: FieldType;
303
306
  };
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
307
  /**
316
308
  * Schema version
317
309
  */
@@ -328,10 +320,14 @@ declare class EventData implements Domain {
328
320
  * Collection of custom measurements.
329
321
  */
330
322
  measurements: any;
331
- constructor();
323
+ /**
324
+ * Constructs a new instance of the EventTelemetry object
325
+ */
326
+ constructor(logger: IDiagnosticLogger, name: string, properties?: any, measurements?: any);
332
327
  }
328
+ export { Event_2 as Event }
333
329
 
334
- export declare class Exception extends ExceptionData implements ISerializable {
330
+ export declare class Exception implements IExceptionData, ISerializable {
335
331
  static envelopeType: string;
336
332
  static dataType: string;
337
333
  id?: string;
@@ -344,30 +340,6 @@ export declare class Exception extends ExceptionData implements ISerializable {
344
340
  properties: FieldType;
345
341
  measurements: FieldType;
346
342
  };
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
343
  /**
372
344
  * Schema version
373
345
  */
@@ -375,7 +347,7 @@ declare class ExceptionData implements Domain {
375
347
  /**
376
348
  * Exception chain - list of inner exceptions.
377
349
  */
378
- exceptions: ExceptionDetails[];
350
+ exceptions: IExceptionDetails[];
379
351
  /**
380
352
  * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
381
353
  */
@@ -388,41 +360,24 @@ declare class ExceptionData implements Domain {
388
360
  * Collection of custom measurements.
389
361
  */
390
362
  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
- /**
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
363
  /**
419
- * Text describing the stack. Either stack or parsedStack should have a value.
364
+ * Constructs a new instance of the ExceptionTelemetry object
420
365
  */
421
- stack: string;
366
+ constructor(logger: IDiagnosticLogger, exception: Error | IExceptionInternal | IAutoExceptionTelemetry, properties?: {
367
+ [key: string]: any;
368
+ }, measurements?: {
369
+ [key: string]: number;
370
+ }, severityLevel?: SeverityLevel, id?: string);
371
+ static CreateAutoException(message: string | Event, url: string, lineNumber: number, columnNumber: number, error: any, evt?: Event | string, stack?: string, errorSrc?: string): IAutoExceptionTelemetry;
372
+ static CreateFromInterface(logger: IDiagnosticLogger, exception: IExceptionInternal, properties?: any, measurements?: {
373
+ [key: string]: number;
374
+ }): Exception;
375
+ toInterface(): IExceptionInternal;
422
376
  /**
423
- * List of stack frames. Either stack or parsedStack should have a value.
377
+ * Creates a simple exception with 1 stack frame. Useful for manual constracting of exception.
424
378
  */
425
- parsedStack: StackFrame[];
379
+ static CreateSimpleException(message: string, typeName: string, assembly: string, fileName: string, details: string, line: number): Exception;
380
+ static formatError: typeof _formatErrorCode;
426
381
  }
427
382
 
428
383
  export declare const Extensions: {
@@ -1117,6 +1072,40 @@ export declare interface ICorrelationIdHelper {
1117
1072
  getCorrelationContextValue(responseHeader: string, key: string): string | undefined;
1118
1073
  }
1119
1074
 
1075
+ /**
1076
+ * Metric data single measurement.
1077
+ */
1078
+ declare interface IDataPoint {
1079
+ /**
1080
+ * Name of the metric.
1081
+ */
1082
+ name: string;
1083
+ /**
1084
+ * Metric type. Single measurement or the aggregated value.
1085
+ */
1086
+ kind: DataPointType;
1087
+ /**
1088
+ * Single value for measurement. Sum of individual measurements for the aggregation.
1089
+ */
1090
+ value: number;
1091
+ /**
1092
+ * Metric weight of the aggregated metric. Should not be set for a measurement.
1093
+ */
1094
+ count: number;
1095
+ /**
1096
+ * Minimum value of the aggregated metric. Should not be set for a measurement.
1097
+ */
1098
+ min: number;
1099
+ /**
1100
+ * Maximum value of the aggregated metric. Should not be set for a measurement.
1101
+ */
1102
+ max: number;
1103
+ /**
1104
+ * Standard deviation of the aggregated metric. Should not be set for a measurement.
1105
+ */
1106
+ stdDev: number;
1107
+ }
1108
+
1120
1109
  export declare interface IDataSanitizer {
1121
1110
  /**
1122
1111
  * Max length allowed for custom names.
@@ -1214,19 +1203,71 @@ export declare interface IDevice {
1214
1203
  ip: string;
1215
1204
  }
1216
1205
 
1206
+ /**
1207
+ * The abstract common base of all domains.
1208
+ */
1209
+ declare interface IDomain {
1210
+ }
1211
+
1217
1212
  export declare interface IEnvelope extends ISerializable {
1213
+ /**
1214
+ * Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
1215
+ */
1218
1216
  ver: number;
1217
+ /**
1218
+ * Type name of telemetry data item.
1219
+ */
1219
1220
  name: string;
1221
+ /**
1222
+ * Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
1223
+ */
1220
1224
  time: string;
1225
+ /**
1226
+ * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
1227
+ */
1221
1228
  sampleRate: number;
1229
+ /**
1230
+ * Sequence field used to track absolute order of uploaded events.
1231
+ */
1222
1232
  seq: string;
1233
+ /**
1234
+ * The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
1235
+ */
1223
1236
  iKey: string;
1237
+ /**
1238
+ * Key/value collection of context properties. See ContextTagKeys for information on available properties.
1239
+ */
1224
1240
  tags: {
1225
1241
  [name: string]: any;
1226
1242
  };
1243
+ /**
1244
+ * Telemetry data item.
1245
+ */
1227
1246
  data: any;
1228
1247
  }
1229
1248
 
1249
+ /**
1250
+ * Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name.
1251
+ */
1252
+ declare interface IEventData extends IDomain {
1253
+ /**
1254
+ * Schema version
1255
+ */
1256
+ ver: number;
1257
+ /**
1258
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
1259
+ */
1260
+ name: string;
1261
+ /**
1262
+ * Collection of custom properties.
1263
+ */
1264
+ properties: any;
1265
+ /**
1266
+ * Collection of custom measurements.
1267
+ */
1268
+ measurements: any;
1269
+ }
1270
+
1230
1271
  export declare interface IEventTelemetry extends IPartC {
1231
1272
  /**
1232
1273
  * @description An event name string
@@ -1242,57 +1283,117 @@ export declare interface IEventTelemetry extends IPartC {
1242
1283
  iKey?: string;
1243
1284
  }
1244
1285
 
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
1286
  /**
1274
- * @export
1275
- * @interface IExceptionTelemetry
1276
- * @description Exception interface used as primary parameter to trackException
1287
+ * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
1277
1288
  */
1278
- export declare interface IExceptionTelemetry extends IPartC {
1289
+ declare interface IExceptionData extends IDomain {
1279
1290
  /**
1280
- * Unique guid identifying this error
1291
+ * Schema version
1281
1292
  */
1282
- id?: string;
1293
+ ver: number;
1283
1294
  /**
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.
1295
+ * Exception chain - list of inner exceptions.
1288
1296
  */
1289
- error?: Error;
1297
+ exceptions: IExceptionDetails[];
1290
1298
  /**
1291
- * @type {Error}
1292
- * @memberof IExceptionTelemetry
1293
- * @description Error Object(s)
1299
+ * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
1294
1300
  */
1295
- exception?: Error | IAutoExceptionTelemetry;
1301
+ severityLevel: SeverityLevel;
1302
+ /**
1303
+ * Collection of custom properties.
1304
+ */
1305
+ properties: any;
1306
+ /**
1307
+ * Collection of custom measurements.
1308
+ */
1309
+ measurements: any;
1310
+ }
1311
+
1312
+ /**
1313
+ * Exception details of the exception in a chain.
1314
+ */
1315
+ declare interface IExceptionDetails {
1316
+ /**
1317
+ * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
1318
+ */
1319
+ id: number;
1320
+ /**
1321
+ * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
1322
+ */
1323
+ outerId: number;
1324
+ /**
1325
+ * Exception type name.
1326
+ */
1327
+ typeName: string;
1328
+ /**
1329
+ * Exception message.
1330
+ */
1331
+ message: string;
1332
+ /**
1333
+ * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
1334
+ */
1335
+ hasFullStack: boolean;
1336
+ /**
1337
+ * Text describing the stack. Either stack or parsedStack should have a value.
1338
+ */
1339
+ stack: string;
1340
+ /**
1341
+ * List of stack frames. Either stack or parsedStack should have a value.
1342
+ */
1343
+ parsedStack: IStackFrame[];
1344
+ }
1345
+
1346
+ declare interface IExceptionDetailsInternal {
1347
+ id: number;
1348
+ outerId: number;
1349
+ typeName: string;
1350
+ message: string;
1351
+ hasFullStack: boolean;
1352
+ stack: string;
1353
+ parsedStack: IExceptionStackFrameInternal[];
1354
+ }
1355
+
1356
+ export declare interface IExceptionInternal extends IPartC {
1357
+ ver: string;
1358
+ id: string;
1359
+ exceptions: IExceptionDetailsInternal[];
1360
+ severityLevel?: SeverityLevel | number;
1361
+ problemGroup: string;
1362
+ isManual: boolean;
1363
+ }
1364
+
1365
+ declare interface IExceptionStackFrameInternal {
1366
+ level: number;
1367
+ method: string;
1368
+ assembly: string;
1369
+ fileName: string;
1370
+ line: number;
1371
+ pos?: number;
1372
+ }
1373
+
1374
+ /**
1375
+ * @export
1376
+ * @interface IExceptionTelemetry
1377
+ * @description Exception interface used as primary parameter to trackException
1378
+ */
1379
+ export declare interface IExceptionTelemetry extends IPartC {
1380
+ /**
1381
+ * Unique guid identifying this error
1382
+ */
1383
+ id?: string;
1384
+ /**
1385
+ * @deprecated
1386
+ * @type {Error}
1387
+ * @memberof IExceptionTelemetry
1388
+ * @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
1389
+ */
1390
+ error?: Error;
1391
+ /**
1392
+ * @type {Error}
1393
+ * @memberof IExceptionTelemetry
1394
+ * @description Error Object(s)
1395
+ */
1396
+ exception?: Error | IAutoExceptionTelemetry;
1296
1397
  /**
1297
1398
  * @description Specified severity of exception for use with
1298
1399
  * telemetry filtering in dashboard
@@ -1333,6 +1434,54 @@ export declare interface ILocation {
1333
1434
  ip: string;
1334
1435
  }
1335
1436
 
1437
+ /**
1438
+ * Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into intances of this type. The message does not have measurements.
1439
+ */
1440
+ declare interface IMessageData extends IDomain {
1441
+ /**
1442
+ * Schema version
1443
+ */
1444
+ ver: number;
1445
+ /**
1446
+ * Trace message
1447
+ */
1448
+ message: string;
1449
+ /**
1450
+ * Trace severity level.
1451
+ */
1452
+ severityLevel: SeverityLevel;
1453
+ /**
1454
+ * Collection of custom properties.
1455
+ */
1456
+ properties: any;
1457
+ /**
1458
+ * Collection of custom measurements.
1459
+ */
1460
+ measurements: any;
1461
+ }
1462
+
1463
+ /**
1464
+ * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
1465
+ */
1466
+ declare interface IMetricData extends IDomain {
1467
+ /**
1468
+ * Schema version
1469
+ */
1470
+ ver: number;
1471
+ /**
1472
+ * List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used.
1473
+ */
1474
+ metrics: IDataPoint[];
1475
+ /**
1476
+ * Collection of custom properties.
1477
+ */
1478
+ properties: any;
1479
+ /**
1480
+ * Collection of custom measurements.
1481
+ */
1482
+ measurements: any;
1483
+ }
1484
+
1336
1485
  export declare interface IMetricTelemetry extends IPartC {
1337
1486
  /**
1338
1487
  * @description (required) - name of this metric
@@ -1383,6 +1532,50 @@ export declare interface IOperatingSystem {
1383
1532
  name: string;
1384
1533
  }
1385
1534
 
1535
+ /**
1536
+ * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
1537
+ */
1538
+ export declare interface IPageViewData extends IEventData {
1539
+ /**
1540
+ * Request URL with all query string parameters
1541
+ */
1542
+ url: string;
1543
+ /**
1544
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
1545
+ */
1546
+ duration: string;
1547
+ /**
1548
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
1549
+ */
1550
+ id: string;
1551
+ }
1552
+
1553
+ /**
1554
+ * An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request.
1555
+ */
1556
+ declare interface IPageViewPerfData extends IPageViewData {
1557
+ /**
1558
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1559
+ */
1560
+ perfTotal: string;
1561
+ /**
1562
+ * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1563
+ */
1564
+ networkConnect: string;
1565
+ /**
1566
+ * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1567
+ */
1568
+ sentRequest: string;
1569
+ /**
1570
+ * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1571
+ */
1572
+ receivedResponse: string;
1573
+ /**
1574
+ * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
1575
+ */
1576
+ domProcessing: string;
1577
+ }
1578
+
1386
1579
  export declare interface IPageViewPerformanceTelemetry extends IPartC {
1387
1580
  /**
1388
1581
  * name String - The name of the page. Defaults to the document title.
@@ -1515,6 +1708,56 @@ export declare interface IPropertiesPlugin {
1515
1708
  readonly context: ITelemetryContext;
1516
1709
  }
1517
1710
 
1711
+ /**
1712
+ * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
1713
+ */
1714
+ declare interface IRemoteDependencyData extends IDomain {
1715
+ /**
1716
+ * Schema version
1717
+ */
1718
+ ver: number;
1719
+ /**
1720
+ * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
1721
+ */
1722
+ name: string;
1723
+ /**
1724
+ * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
1725
+ */
1726
+ id: string;
1727
+ /**
1728
+ * Result code of a dependency call. Examples are SQL error code and HTTP status code.
1729
+ */
1730
+ resultCode: string;
1731
+ /**
1732
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
1733
+ */
1734
+ duration: string;
1735
+ /**
1736
+ * Indication of successful or unsuccessful call.
1737
+ */
1738
+ success: boolean;
1739
+ /**
1740
+ * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
1741
+ */
1742
+ data: string;
1743
+ /**
1744
+ * Target site of a dependency call. Examples are server name, host address.
1745
+ */
1746
+ target: string;
1747
+ /**
1748
+ * Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP.
1749
+ */
1750
+ type: string;
1751
+ /**
1752
+ * Collection of custom properties.
1753
+ */
1754
+ properties: any;
1755
+ /**
1756
+ * Collection of custom measurements.
1757
+ */
1758
+ measurements: any;
1759
+ }
1760
+
1518
1761
  export declare interface IRequestContext {
1519
1762
  status?: number;
1520
1763
  xhr?: XMLHttpRequest;
@@ -1606,6 +1849,32 @@ declare interface IStackDetails {
1606
1849
  obj: string[];
1607
1850
  }
1608
1851
 
1852
+ /**
1853
+ * Stack frame information.
1854
+ */
1855
+ declare interface IStackFrame {
1856
+ /**
1857
+ * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
1858
+ */
1859
+ level: number;
1860
+ /**
1861
+ * Method name.
1862
+ */
1863
+ method: string;
1864
+ /**
1865
+ * Name of the assembly (dll, jar, etc.) containing this function.
1866
+ */
1867
+ assembly: string;
1868
+ /**
1869
+ * File name or URL of the method implementation.
1870
+ */
1871
+ fileName: string;
1872
+ /**
1873
+ * Line number of the code implementation.
1874
+ */
1875
+ line: number;
1876
+ }
1877
+
1609
1878
  export declare interface ITelemetryContext {
1610
1879
  /**
1611
1880
  * The object describing a component tracked by this object.
@@ -1945,34 +2214,7 @@ export declare interface IWeb {
1945
2214
  domain: string;
1946
2215
  }
1947
2216
 
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 {
2217
+ export declare class Metric implements IMetricData, ISerializable {
1976
2218
  static envelopeType: string;
1977
2219
  static dataType: string;
1978
2220
  aiDataContract: {
@@ -1980,18 +2222,6 @@ export declare class Metric extends MetricData implements ISerializable {
1980
2222
  metrics: FieldType;
1981
2223
  properties: FieldType;
1982
2224
  };
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
2225
  /**
1996
2226
  * Schema version
1997
2227
  */
@@ -2008,7 +2238,12 @@ declare class MetricData implements Domain {
2008
2238
  * Collection of custom measurements.
2009
2239
  */
2010
2240
  measurements: any;
2011
- constructor();
2241
+ /**
2242
+ * Constructs a new instance of the MetricTelemetry object
2243
+ */
2244
+ constructor(logger: IDiagnosticLogger, name: string, value: number, count?: number, min?: number, max?: number, stdDev?: number, properties?: any, measurements?: {
2245
+ [key: string]: number;
2246
+ });
2012
2247
  }
2013
2248
 
2014
2249
  /**
@@ -2016,7 +2251,7 @@ declare class MetricData implements Domain {
2016
2251
  */
2017
2252
  export declare function msToTimeSpan(totalms: number): string;
2018
2253
 
2019
- export declare class PageView extends PageViewData implements ISerializable {
2254
+ export declare class PageView implements IPageViewData, ISerializable {
2020
2255
  static envelopeType: string;
2021
2256
  static dataType: string;
2022
2257
  aiDataContract: {
@@ -2028,6 +2263,34 @@ export declare class PageView extends PageViewData implements ISerializable {
2028
2263
  measurements: FieldType;
2029
2264
  id: FieldType;
2030
2265
  };
2266
+ /**
2267
+ * Schema version
2268
+ */
2269
+ ver: number;
2270
+ /**
2271
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2272
+ */
2273
+ name: string;
2274
+ /**
2275
+ * Collection of custom properties.
2276
+ */
2277
+ properties: any;
2278
+ /**
2279
+ * Collection of custom measurements.
2280
+ */
2281
+ measurements: any;
2282
+ /**
2283
+ * Request URL with all query string parameters
2284
+ */
2285
+ url: string;
2286
+ /**
2287
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
2288
+ */
2289
+ duration: string;
2290
+ /**
2291
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2292
+ */
2293
+ id: string;
2031
2294
  /**
2032
2295
  * Constructs a new instance of the PageEventTelemetry object
2033
2296
  */
@@ -2038,30 +2301,30 @@ export declare class PageView extends PageViewData implements ISerializable {
2038
2301
  }, id?: string);
2039
2302
  }
2040
2303
 
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 {
2304
+ export declare class PageViewPerformance implements IPageViewPerfData, ISerializable {
2305
+ static envelopeType: string;
2306
+ static dataType: string;
2307
+ aiDataContract: {
2308
+ ver: FieldType;
2309
+ name: FieldType;
2310
+ url: FieldType;
2311
+ duration: FieldType;
2312
+ perfTotal: FieldType;
2313
+ networkConnect: FieldType;
2314
+ sentRequest: FieldType;
2315
+ receivedResponse: FieldType;
2316
+ domProcessing: FieldType;
2317
+ properties: FieldType;
2318
+ measurements: FieldType;
2319
+ };
2045
2320
  /**
2046
2321
  * Schema version
2047
2322
  */
2048
2323
  ver: number;
2049
- /**
2050
- * Request URL with all query string parameters
2051
- */
2052
- url: string;
2053
2324
  /**
2054
2325
  * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2055
2326
  */
2056
2327
  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
2328
  /**
2066
2329
  * Collection of custom properties.
2067
2330
  */
@@ -2070,33 +2333,22 @@ export declare class PageViewData extends EventData {
2070
2333
  * Collection of custom measurements.
2071
2334
  */
2072
2335
  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
2336
  /**
2085
2337
  * Request URL with all query string parameters
2086
2338
  */
2087
2339
  url: string;
2088
2340
  /**
2089
- * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2341
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days.
2090
2342
  */
2091
- perfTotal: string;
2343
+ duration: string;
2092
2344
  /**
2093
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
2345
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
2094
2346
  */
2095
- name: string;
2347
+ id: string;
2096
2348
  /**
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.
2349
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2098
2350
  */
2099
- duration: string;
2351
+ perfTotal: string;
2100
2352
  /**
2101
2353
  * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2102
2354
  */
@@ -2113,33 +2365,6 @@ declare class PageViewPerfData extends PageViewData {
2113
2365
  * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
2114
2366
  */
2115
2367
  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
2368
  /**
2144
2369
  * Constructs a new instance of the PageEventTelemetry object
2145
2370
  */
@@ -2156,7 +2381,7 @@ export declare const ProcessLegacy = "ProcessLegacy";
2156
2381
 
2157
2382
  export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
2158
2383
 
2159
- export declare class RemoteDependencyData extends RemoteDependencyData_2 implements ISerializable {
2384
+ export declare class RemoteDependencyData implements IRemoteDependencyData, ISerializable {
2160
2385
  static envelopeType: string;
2161
2386
  static dataType: string;
2162
2387
  aiDataContract: {
@@ -2182,16 +2407,6 @@ export declare class RemoteDependencyData extends RemoteDependencyData_2 impleme
2182
2407
  commandName: FieldType;
2183
2408
  dependencyTypeName: FieldType;
2184
2409
  };
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
2410
  /**
2196
2411
  * Schema version
2197
2412
  */
@@ -2236,7 +2451,10 @@ declare class RemoteDependencyData_2 implements Domain {
2236
2451
  * Collection of custom measurements.
2237
2452
  */
2238
2453
  measurements: any;
2239
- constructor();
2454
+ /**
2455
+ * Constructs a new instance of the RemoteDependencyData object
2456
+ */
2457
+ constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
2240
2458
  }
2241
2459
 
2242
2460
  export declare const RequestHeaders: IRequestHeaders;
@@ -2254,32 +2472,6 @@ export declare enum SeverityLevel {
2254
2472
  Critical = 4
2255
2473
  }
2256
2474
 
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
2475
  export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
2284
2476
 
2285
2477
  export declare const strNotSpecified = "not_specified";
@@ -2301,7 +2493,7 @@ export declare class TelemetryItemCreator {
2301
2493
  }): ITelemetryItem;
2302
2494
  }
2303
2495
 
2304
- export declare class Trace extends MessageData implements ISerializable {
2496
+ export declare class Trace implements IMessageData, ISerializable {
2305
2497
  static envelopeType: string;
2306
2498
  static dataType: string;
2307
2499
  aiDataContract: {
@@ -2310,6 +2502,26 @@ export declare class Trace extends MessageData implements ISerializable {
2310
2502
  severityLevel: FieldType;
2311
2503
  properties: FieldType;
2312
2504
  };
2505
+ /**
2506
+ * Schema version
2507
+ */
2508
+ ver: number;
2509
+ /**
2510
+ * Trace message
2511
+ */
2512
+ message: string;
2513
+ /**
2514
+ * Trace severity level.
2515
+ */
2516
+ severityLevel: SeverityLevel;
2517
+ /**
2518
+ * Collection of custom properties.
2519
+ */
2520
+ properties: any;
2521
+ /**
2522
+ * Collection of custom measurements.
2523
+ */
2524
+ measurements: any;
2313
2525
  /**
2314
2526
  * Constructs a new instance of the TraceTelemetry object
2315
2527
  */