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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +1007 -536
  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 +2599 -928
  7. package/dist/applicationinsights-common.api.md +99 -43
  8. package/dist/applicationinsights-common.d.ts +515 -282
  9. package/dist/applicationinsights-common.js +1007 -536
  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 +515 -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 +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 +8 -8
  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 +34 -17
  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 +13 -13
  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 +75 -13
  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/Envelope.d.ts +35 -4
  195. package/types/Telemetry/Event.d.ts +19 -3
  196. package/types/Telemetry/Exception.d.ts +75 -7
  197. package/types/Telemetry/Metric.d.ts +19 -2
  198. package/types/Telemetry/PageView.d.ts +30 -2
  199. package/types/Telemetry/PageViewPerformance.d.ts +50 -2
  200. package/types/Telemetry/RemoteDependencyData.d.ts +46 -2
  201. package/types/Telemetry/Trace.d.ts +23 -3
  202. package/types/applicationinsights-common.d.ts +7 -7
  203. package/types/tsdoc-metadata.json +1 -1
  204. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +0 -27
  205. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js.map +0 -1
  206. package/dist-esm/Interfaces/Contracts/Generated/Base.js +0 -17
  207. package/dist-esm/Interfaces/Contracts/Generated/Base.js.map +0 -1
  208. package/dist-esm/Interfaces/Contracts/Generated/Data.js +0 -21
  209. package/dist-esm/Interfaces/Contracts/Generated/Data.js.map +0 -1
  210. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +0 -21
  211. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js.map +0 -1
  212. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +0 -16
  213. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js.map +0 -1
  214. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +0 -17
  215. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js.map +0 -1
  216. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +0 -17
  217. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js.map +0 -1
  218. package/dist-esm/Interfaces/Contracts/Generated/Domain.js.map +0 -1
  219. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +0 -28
  220. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js.map +0 -1
  221. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +0 -28
  222. package/dist-esm/Interfaces/Contracts/Generated/EventData.js.map +0 -1
  223. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +0 -32
  224. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js.map +0 -1
  225. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +0 -24
  226. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js.map +0 -1
  227. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +0 -28
  228. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js.map +0 -1
  229. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +0 -32
  230. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js.map +0 -1
  231. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +0 -34
  232. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js.map +0 -1
  233. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +0 -34
  234. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js.map +0 -1
  235. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +0 -32
  236. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js.map +0 -1
  237. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +0 -28
  238. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js.map +0 -1
  239. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +0 -17
  240. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js.map +0 -1
  241. package/dist-esm/Telemetry/Common/Base.js +0 -22
  242. package/dist-esm/Telemetry/Common/Base.js.map +0 -1
  243. package/src/Interfaces/Contracts/Generated/AvailabilityData.ts +0 -57
  244. package/src/Interfaces/Contracts/Generated/Envelope.ts +0 -50
  245. package/src/Interfaces/Contracts/Generated/PageViewData.ts +0 -50
  246. package/src/Interfaces/Contracts/Generated/PageViewPerfData.ts +0 -70
  247. package/src/Interfaces/Contracts/Generated/RequestData.ts +0 -50
  248. package/src/Telemetry/Common/Base.ts +0 -14
  249. package/types/Interfaces/Contracts/Generated/AvailabilityData.d.ts +0 -42
  250. package/types/Interfaces/Contracts/Generated/Envelope.d.ts +0 -38
  251. package/types/Interfaces/Contracts/Generated/PageViewPerfData.d.ts +0 -51
  252. package/types/Interfaces/Contracts/Generated/RequestData.d.ts +0 -38
  253. package/types/Telemetry/Common/Base.d.ts +0 -8
@@ -1,10 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- // THIS FILE WAS AUTOGENERATED
5
-
6
4
  /**
7
5
  * The abstract common base of all domains.
8
6
  */
9
- export interface Domain {
7
+ export interface IDomain {
10
8
  }
@@ -0,0 +1,50 @@
1
+ // // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // // Licensed under the MIT License.
3
+
4
+ // import { IBase } from "./IBase";
5
+
6
+ // /**
7
+ // * System variables for a telemetry item.
8
+ // */
9
+ // export interface IEnvelope {
10
+
11
+ // /**
12
+ // * 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.
13
+ // */
14
+ // ver: number; /* 1 */
15
+
16
+ // /**
17
+ // * Type name of telemetry data item.
18
+ // */
19
+ // name: string;
20
+
21
+ // /**
22
+ // * 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.
23
+ // */
24
+ // time: string;
25
+
26
+ // /**
27
+ // * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
28
+ // */
29
+ // sampleRate: number; /* 100.0 */
30
+
31
+ // /**
32
+ // * Sequence field used to track absolute order of uploaded events.
33
+ // */
34
+ // seq: string;
35
+
36
+ // /**
37
+ // * 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.
38
+ // */
39
+ // iKey: string;
40
+
41
+ // /**
42
+ // * Key/value collection of context properties. See ContextTagKeys for information on available properties.
43
+ // */
44
+ // tags: any; /* {} */
45
+
46
+ // /**
47
+ // * Telemetry data item.
48
+ // */
49
+ // data: IBase;
50
+ // }
@@ -1,33 +1,30 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { Domain } from "./Domain";
4
+ import { IDomain } from "./IDomain";
5
5
 
6
6
  /**
7
7
  * 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.
8
8
  */
9
- export class EventData implements Domain {
9
+ export interface IEventData extends IDomain {
10
10
 
11
11
  /**
12
12
  * Schema version
13
13
  */
14
- public ver: number = 2;
14
+ ver: number; /* 2 */
15
15
 
16
16
  /**
17
17
  * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
18
18
  */
19
- public name: string;
19
+ name: string;
20
20
 
21
21
  /**
22
22
  * Collection of custom properties.
23
23
  */
24
- public properties: any = {};
24
+ properties: any; /* {} */
25
25
 
26
26
  /**
27
27
  * Collection of custom measurements.
28
28
  */
29
- public measurements: any = {};
30
-
31
- constructor() {
32
- }
33
- }
29
+ measurements: any; /* {} */
30
+ }
@@ -1,40 +1,37 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { ExceptionDetails } from "./ExceptionDetails";
5
- import { Domain } from "./Domain";
4
+ import { IExceptionDetails } from "./IExceptionDetails";
5
+ import { IDomain } from "./IDomain";
6
6
  import { SeverityLevel } from "./SeverityLevel";
7
7
 
8
8
  /**
9
9
  * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
10
10
  */
11
- export class ExceptionData implements Domain {
11
+ export interface IExceptionData extends IDomain {
12
12
 
13
13
  /**
14
14
  * Schema version
15
15
  */
16
- public ver: number = 2;
16
+ ver: number; /* 2 */
17
17
 
18
18
  /**
19
19
  * Exception chain - list of inner exceptions.
20
20
  */
21
- public exceptions: ExceptionDetails[] = [];
21
+ exceptions: IExceptionDetails[]; /* [] */
22
22
 
23
23
  /**
24
24
  * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
25
25
  */
26
- public severityLevel: SeverityLevel;
26
+ severityLevel: SeverityLevel;
27
27
 
28
28
  /**
29
29
  * Collection of custom properties.
30
30
  */
31
- public properties: any = {};
31
+ properties: any; /* {} */
32
32
 
33
33
  /**
34
34
  * Collection of custom measurements.
35
35
  */
36
- public measurements: any = {};
37
-
38
- constructor() {
39
- }
36
+ measurements: any; /* {} */
40
37
  }
@@ -1,46 +1,45 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- // THIS FILE WAS AUTOGENERATED
5
- import { StackFrame } from "./StackFrame";
4
+ import { IStackFrame } from "./IStackFrame";
6
5
 
7
6
  /**
8
7
  * Exception details of the exception in a chain.
9
8
  */
10
- export class ExceptionDetails {
9
+ export interface IExceptionDetails {
11
10
 
12
11
  /**
13
12
  * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
14
13
  */
15
- public id: number;
14
+ id: number;
16
15
 
17
16
  /**
18
17
  * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
19
18
  */
20
- public outerId: number;
19
+ outerId: number;
21
20
 
22
21
  /**
23
22
  * Exception type name.
24
23
  */
25
- public typeName: string;
24
+ typeName: string;
26
25
 
27
26
  /**
28
27
  * Exception message.
29
28
  */
30
- public message: string;
29
+ message: string;
31
30
 
32
31
  /**
33
32
  * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
34
33
  */
35
- public hasFullStack: boolean = true;
34
+ hasFullStack: boolean;
36
35
 
37
36
  /**
38
37
  * Text describing the stack. Either stack or parsedStack should have a value.
39
38
  */
40
- public stack: string;
39
+ stack: string;
41
40
 
42
41
  /**
43
42
  * List of stack frames. Either stack or parsedStack should have a value.
44
43
  */
45
- public parsedStack: StackFrame[] = [];
44
+ parsedStack: IStackFrame[]; /* [] */
46
45
  }
@@ -1,39 +1,36 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { Domain } from "./Domain";
4
+ import { IDomain } from "./IDomain";
5
5
  import { SeverityLevel } from "./SeverityLevel";
6
6
 
7
7
  /**
8
8
  * 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.
9
9
  */
10
- export class MessageData implements Domain {
10
+ export interface IMessageData extends IDomain {
11
11
 
12
12
  /**
13
13
  * Schema version
14
14
  */
15
- public ver: number = 2;
15
+ ver: number; /* 2 */
16
16
 
17
17
  /**
18
18
  * Trace message
19
19
  */
20
- public message: string;
20
+ message: string;
21
21
 
22
22
  /**
23
23
  * Trace severity level.
24
24
  */
25
- public severityLevel: SeverityLevel;
25
+ severityLevel: SeverityLevel;
26
26
 
27
27
  /**
28
28
  * Collection of custom properties.
29
29
  */
30
- public properties: any = {};
30
+ properties: any; /* {} */
31
31
 
32
32
  /**
33
33
  * Collection of custom measurements.
34
34
  */
35
- public measurements: any = {};
36
-
37
- constructor() {
38
- }
35
+ measurements: any; /* {} */
39
36
  }
@@ -1,34 +1,31 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { Domain } from "./Domain";
5
- import { DataPoint } from "./DataPoint";
4
+ import { IDomain } from "./IDomain";
5
+ import { IDataPoint } from "./IDataPoint";
6
6
 
7
7
  /**
8
8
  * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
9
9
  */
10
- export class MetricData implements Domain {
10
+ export interface IMetricData extends IDomain {
11
11
 
12
12
  /**
13
13
  * Schema version
14
14
  */
15
- public ver: number = 2;
15
+ ver: number; /* 2 */
16
16
 
17
17
  /**
18
18
  * 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.
19
19
  */
20
- public metrics: DataPoint[] = [];
20
+ metrics: IDataPoint[]; /* [] */
21
21
 
22
22
  /**
23
23
  * Collection of custom properties.
24
24
  */
25
- public properties: any = {};
25
+ properties: any; /* {} */
26
26
 
27
27
  /**
28
28
  * Collection of custom measurements.
29
29
  */
30
- public measurements: any = {};
31
-
32
- constructor() {
33
- }
30
+ measurements: any; /* {} */
34
31
  }
@@ -1,35 +1,26 @@
1
- import { EventData } from "./EventData";
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ // THIS FILE WAS AUTOGENERATED
5
+ import { IEventData } from "./IEventData";
6
+
2
7
  /**
3
8
  * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
4
9
  */
5
- export declare class PageViewData extends EventData {
6
- /**
7
- * Schema version
8
- */
9
- ver: number;
10
+ export interface IPageViewData extends IEventData {
11
+
10
12
  /**
11
13
  * Request URL with all query string parameters
12
14
  */
13
15
  url: string;
14
- /**
15
- * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
16
- */
17
- name: string;
16
+
18
17
  /**
19
18
  * 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.
20
19
  */
21
20
  duration: string;
21
+
22
22
  /**
23
23
  * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
24
24
  */
25
25
  id: string;
26
- /**
27
- * Collection of custom properties.
28
- */
29
- properties: any;
30
- /**
31
- * Collection of custom measurements.
32
- */
33
- measurements: any;
34
- constructor();
35
26
  }
@@ -0,0 +1,35 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IPageViewData } from "./IPageViewData";
5
+
6
+ /**
7
+ * 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.
8
+ */
9
+ export interface IPageViewPerfData extends IPageViewData {
10
+
11
+ /**
12
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
13
+ */
14
+ perfTotal: string;
15
+
16
+ /**
17
+ * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
18
+ */
19
+ networkConnect: string;
20
+
21
+ /**
22
+ * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
23
+ */
24
+ sentRequest: string;
25
+
26
+ /**
27
+ * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
28
+ */
29
+ receivedResponse: string;
30
+
31
+ /**
32
+ * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
33
+ */
34
+ domProcessing: string;
35
+ }
@@ -1,68 +1,65 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { Domain } from "./Domain";
4
+ import { IDomain } from "./IDomain";
5
5
 
6
6
  /**
7
7
  * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
8
8
  */
9
- export class RemoteDependencyData implements Domain {
9
+ export interface IRemoteDependencyData extends IDomain {
10
10
 
11
11
  /**
12
12
  * Schema version
13
13
  */
14
- public ver: number = 2;
14
+ ver: number; /* 2 */
15
15
 
16
16
  /**
17
17
  * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
18
18
  */
19
- public name: string;
19
+ name: string;
20
20
 
21
21
  /**
22
22
  * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
23
23
  */
24
- public id: string;
24
+ id: string;
25
25
 
26
26
  /**
27
27
  * Result code of a dependency call. Examples are SQL error code and HTTP status code.
28
28
  */
29
- public resultCode: string;
29
+ resultCode: string;
30
30
 
31
31
  /**
32
32
  * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
33
33
  */
34
- public duration: string;
34
+ duration: string;
35
35
 
36
36
  /**
37
37
  * Indication of successful or unsuccessful call.
38
38
  */
39
- public success: boolean = true;
39
+ success: boolean; /* true */
40
40
 
41
41
  /**
42
42
  * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
43
43
  */
44
- public data: string;
44
+ data: string;
45
45
 
46
46
  /**
47
47
  * Target site of a dependency call. Examples are server name, host address.
48
48
  */
49
- public target: string;
49
+ target: string;
50
50
 
51
51
  /**
52
52
  * 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.
53
53
  */
54
- public type: string;
54
+ type: string;
55
55
 
56
56
  /**
57
57
  * Collection of custom properties.
58
58
  */
59
- public properties: any = {};
59
+ properties: any; /* {} */
60
60
 
61
61
  /**
62
62
  * Collection of custom measurements.
63
63
  */
64
- public measurements: any = {};
65
-
66
- constructor() {
67
- }
64
+ measurements: any; /* {} */
68
65
  }
@@ -1,34 +1,33 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- // THIS FILE WAS AUTOGENERATED
5
4
  /**
6
5
  * Stack frame information.
7
6
  */
8
- export class StackFrame {
7
+ export interface IStackFrame {
9
8
 
10
9
  /**
11
10
  * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
12
11
  */
13
- public level: number;
12
+ level: number;
14
13
 
15
14
  /**
16
15
  * Method name.
17
16
  */
18
- public method: string;
17
+ method: string;
19
18
 
20
19
  /**
21
20
  * Name of the assembly (dll, jar, etc.) containing this function.
22
21
  */
23
- public assembly: string;
22
+ assembly: string;
24
23
 
25
24
  /**
26
25
  * File name or URL of the method implementation.
27
26
  */
28
- public fileName: string;
27
+ fileName: string;
29
28
 
30
29
  /**
31
30
  * Line number of the code implementation.
32
31
  */
33
- public line: number;
32
+ line: number;
34
33
  }
@@ -0,0 +1,50 @@
1
+ // // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // // Licensed under the MIT License.
3
+
4
+ // import { IDomain } from "./IDomain";
5
+
6
+ // /**
7
+ // * An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results.
8
+ // */
9
+ // export class RequestData implements IDomain {
10
+
11
+ // /**
12
+ // * Schema version
13
+ // */
14
+ // public ver: number = 2;
15
+
16
+ // /**
17
+ // * Identifier of a request call instance. Used for correlation between request and other telemetry items.
18
+ // */
19
+ // public id: string;
20
+
21
+ // /**
22
+ // * Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.
23
+ // */
24
+ // public source: string;
25
+
26
+ // /**
27
+ // * Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'.
28
+ // */
29
+ // public name: string;
30
+
31
+ // /**
32
+ // * Indication of successful or unsuccessful call.
33
+ // */
34
+ // public success: boolean;
35
+
36
+ // /**
37
+ // * Request URL with all query string parameters.
38
+ // */
39
+ // public url: string;
40
+
41
+ // /**
42
+ // * Collection of custom properties.
43
+ // */
44
+ // public properties: any = {};
45
+
46
+ // /**
47
+ // * Collection of custom measurements.
48
+ // */
49
+ // public measurements: any = {};
50
+ // }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { SeverityLevel } from "./Contracts/Generated/SeverityLevel"
4
+ import { SeverityLevel } from "./Contracts/SeverityLevel"
5
5
  import { IPartC } from "./IPartC";
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { SeverityLevel } from "./Contracts/Generated/SeverityLevel"
4
+ import { SeverityLevel } from "./Contracts/SeverityLevel"
5
5
  import { IPartC } from "./IPartC";
6
6
 
7
7
  export interface ITraceTelemetry extends IPartC {
@@ -1,4 +1,4 @@
1
- import { ContextTagKeys } from "./Contracts/Generated/ContextTagKeys";
1
+ import { ContextTagKeys } from "./Contracts/ContextTagKeys";
2
2
 
3
3
  export const Extensions = {
4
4
  UserExt: "user",
@@ -4,12 +4,44 @@
4
4
  import { ISerializable } from "./ISerializable";
5
5
 
6
6
  export interface IEnvelope extends ISerializable {
7
- ver: number;
7
+
8
+ /**
9
+ * 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.
10
+ */
11
+ ver: number; /* 1 */
12
+
13
+ /**
14
+ * Type name of telemetry data item.
15
+ */
8
16
  name: string;
17
+
18
+ /**
19
+ * 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.
20
+ */
9
21
  time: string;
10
- sampleRate: number;
22
+
23
+ /**
24
+ * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
25
+ */
26
+ sampleRate: number; /* 100.0 */
27
+
28
+ /**
29
+ * Sequence field used to track absolute order of uploaded events.
30
+ */
11
31
  seq: string;
32
+
33
+ /**
34
+ * 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.
35
+ */
12
36
  iKey: string;
13
- tags: { [name: string]: any };
37
+
38
+ /**
39
+ * Key/value collection of context properties. See ContextTagKeys for information on available properties.
40
+ */
41
+ tags: { [name: string]: any }; /* {} */
42
+
43
+ /**
44
+ * Telemetry data item.
45
+ */
14
46
  data: any;
15
47
  }