@microsoft/applicationinsights-common 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-06

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