@microsoft/applicationinsights-common 2.8.0-beta.2203-01 → 2.8.0-beta.2203-02

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 (182) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +418 -237
  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 +102 -51
  7. package/dist/applicationinsights-common.api.md +14 -4
  8. package/dist/applicationinsights-common.d.ts +18 -10
  9. package/dist/applicationinsights-common.js +418 -237
  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 +18 -10
  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/ContextTagKeys.js +89 -0
  35. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js.map +1 -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/AvailabilityData.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/Generated/Base.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/Generated/Data.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/Generated/Domain.js +1 -1
  51. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +1 -1
  52. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +1 -1
  53. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +1 -1
  54. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +1 -1
  55. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +1 -1
  56. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +1 -1
  57. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +1 -1
  58. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +1 -1
  59. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +1 -1
  60. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +1 -1
  61. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +1 -1
  62. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +1 -1
  63. package/dist-esm/Interfaces/Contracts/IBase.js +8 -0
  64. package/dist-esm/Interfaces/Contracts/IBase.js.map +1 -0
  65. package/dist-esm/Interfaces/Contracts/IData.js +8 -0
  66. package/dist-esm/Interfaces/Contracts/IData.js.map +1 -0
  67. package/dist-esm/Interfaces/Contracts/IDataPoint.js +6 -0
  68. package/dist-esm/Interfaces/Contracts/IDataPoint.js.map +1 -0
  69. package/dist-esm/Interfaces/Contracts/IDomain.js +8 -0
  70. package/dist-esm/Interfaces/Contracts/IDomain.js.map +1 -0
  71. package/dist-esm/Interfaces/Contracts/IEnvelope.js +46 -0
  72. package/dist-esm/Interfaces/Contracts/IEnvelope.js.map +1 -0
  73. package/dist-esm/Interfaces/Contracts/IEventData.js +8 -0
  74. package/dist-esm/Interfaces/Contracts/IEventData.js.map +1 -0
  75. package/dist-esm/Interfaces/Contracts/IExceptionData.js +8 -0
  76. package/dist-esm/Interfaces/Contracts/IExceptionData.js.map +1 -0
  77. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +8 -0
  78. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js.map +1 -0
  79. package/dist-esm/Interfaces/Contracts/IMessageData.js +8 -0
  80. package/dist-esm/Interfaces/Contracts/IMessageData.js.map +1 -0
  81. package/dist-esm/Interfaces/Contracts/IMetricData.js +8 -0
  82. package/dist-esm/Interfaces/Contracts/IMetricData.js.map +1 -0
  83. package/dist-esm/Interfaces/Contracts/IPageViewData.js +8 -0
  84. package/dist-esm/Interfaces/Contracts/IPageViewData.js.map +1 -0
  85. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +8 -0
  86. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js.map +1 -0
  87. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +8 -0
  88. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js.map +1 -0
  89. package/dist-esm/Interfaces/Contracts/IStackFrame.js +8 -0
  90. package/dist-esm/Interfaces/Contracts/IStackFrame.js.map +1 -0
  91. package/dist-esm/Interfaces/Contracts/RequestData.js +46 -0
  92. package/dist-esm/Interfaces/Contracts/RequestData.js.map +1 -0
  93. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +19 -0
  94. package/dist-esm/Interfaces/Contracts/SeverityLevel.js.map +1 -0
  95. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  96. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  97. package/dist-esm/Interfaces/IConfig.js +1 -1
  98. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  99. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  100. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  101. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  102. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  103. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  104. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  105. package/dist-esm/Interfaces/IPartC.js +1 -1
  106. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  107. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  108. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  109. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  110. package/dist-esm/Interfaces/PartAExtensions.js +1 -1
  111. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  112. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  113. package/dist-esm/RequestResponseHeaders.js +1 -1
  114. package/dist-esm/StorageHelperFuncs.js +8 -8
  115. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  116. package/dist-esm/Telemetry/Common/Base.js +1 -1
  117. package/dist-esm/Telemetry/Common/Data.js +1 -1
  118. package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
  119. package/dist-esm/Telemetry/Common/DataSanitizer.js +8 -8
  120. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  121. package/dist-esm/Telemetry/Common/Envelope.js +1 -1
  122. package/dist-esm/Telemetry/Event.js +1 -1
  123. package/dist-esm/Telemetry/Exception.js +1 -1
  124. package/dist-esm/Telemetry/Metric.js +1 -1
  125. package/dist-esm/Telemetry/PageView.js +1 -1
  126. package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
  127. package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
  128. package/dist-esm/Telemetry/Trace.js +1 -1
  129. package/dist-esm/TelemetryItemCreator.js +1 -1
  130. package/dist-esm/UrlHelperFuncs.js +1 -1
  131. package/dist-esm/Util.js +1 -1
  132. package/dist-esm/applicationinsights-common.js +1 -1
  133. package/package.json +2 -2
  134. package/src/Enums.ts +19 -3
  135. package/src/HelperFuncs.ts +7 -5
  136. package/src/Interfaces/Contracts/AvailabilityData.ts +57 -0
  137. package/src/Interfaces/Contracts/ContextTagKeys.ts +299 -0
  138. package/src/Interfaces/Contracts/DataPointType.ts +10 -0
  139. package/src/Interfaces/Contracts/DependencyKind.ts +11 -0
  140. package/src/Interfaces/Contracts/DependencySourceType.ts +11 -0
  141. package/src/Interfaces/Contracts/IBase.ts +13 -0
  142. package/src/Interfaces/Contracts/IData.ts +19 -0
  143. package/src/Interfaces/Contracts/IDataPoint.ts +44 -0
  144. package/src/Interfaces/Contracts/IDomain.ts +8 -0
  145. package/src/Interfaces/Contracts/IEnvelope.ts +50 -0
  146. package/src/Interfaces/Contracts/IEventData.ts +30 -0
  147. package/src/Interfaces/Contracts/IExceptionData.ts +37 -0
  148. package/src/Interfaces/Contracts/IExceptionDetails.ts +45 -0
  149. package/src/Interfaces/Contracts/IMessageData.ts +36 -0
  150. package/src/Interfaces/Contracts/IMetricData.ts +31 -0
  151. package/src/Interfaces/Contracts/IPageViewData.ts +26 -0
  152. package/src/Interfaces/Contracts/IPageViewPerfData.ts +35 -0
  153. package/src/Interfaces/Contracts/IRemoteDependencyData.ts +65 -0
  154. package/src/Interfaces/Contracts/IStackFrame.ts +33 -0
  155. package/src/Interfaces/Contracts/RequestData.ts +50 -0
  156. package/src/Interfaces/Contracts/SeverityLevel.ts +15 -0
  157. package/src/StorageHelperFuncs.ts +7 -7
  158. package/src/Telemetry/Common/DataSanitizer.ts +7 -7
  159. package/src/applicationinsights-common.ts +1 -1
  160. package/types/Enums.d.ts +13 -2
  161. package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
  162. package/types/Interfaces/Contracts/ContextTagKeys.d.ts +175 -0
  163. package/types/Interfaces/Contracts/DataPointType.d.ts +7 -0
  164. package/types/Interfaces/Contracts/DependencyKind.d.ts +8 -0
  165. package/types/Interfaces/Contracts/DependencySourceType.d.ts +8 -0
  166. package/types/Interfaces/Contracts/IBase.d.ts +9 -0
  167. package/types/Interfaces/Contracts/IData.d.ts +14 -0
  168. package/types/Interfaces/Contracts/IDataPoint.d.ts +34 -0
  169. package/types/Interfaces/Contracts/IDomain.d.ts +5 -0
  170. package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
  171. package/types/Interfaces/Contracts/IEventData.d.ts +22 -0
  172. package/types/Interfaces/Contracts/IExceptionData.d.ts +28 -0
  173. package/types/Interfaces/Contracts/IExceptionDetails.d.ts +34 -0
  174. package/types/Interfaces/Contracts/IMessageData.d.ts +27 -0
  175. package/types/Interfaces/Contracts/IMetricData.d.ts +23 -0
  176. package/types/Interfaces/Contracts/IPageViewData.d.ts +18 -0
  177. package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +26 -0
  178. package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +50 -0
  179. package/types/Interfaces/Contracts/IStackFrame.d.ts +25 -0
  180. package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
  181. package/types/Interfaces/Contracts/SeverityLevel.d.ts +10 -0
  182. package/types/applicationinsights-common.d.ts +1 -1
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * Type of the metric data measurement.
6
+ */
7
+ export const enum DataPointType {
8
+ Measurement = 0,
9
+ Aggregation = 1
10
+ }
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * Identifies the type of dependency.
6
+ */
7
+ export const enum DependencyKind {
8
+ SQL = 0,
9
+ Http = 1,
10
+ Other = 2
11
+ }
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * Identifies the source of the dependency.
6
+ */
7
+ export const enum DependencySourceType {
8
+ Undefined = 0,
9
+ Aic = 1,
10
+ Apmc = 2
11
+ }
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * Data struct to contain only C section with custom fields.
6
+ */
7
+ export interface IBase {
8
+
9
+ /**
10
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
11
+ */
12
+ baseType: string;
13
+ }
@@ -0,0 +1,19 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IBase } from "./IBase";
5
+
6
+ /**
7
+ * Data struct to contain both B and C sections.
8
+ */
9
+ export interface IData<TDomain> extends IBase {
10
+ /**
11
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
12
+ */
13
+ baseType: string;
14
+
15
+ /**
16
+ * Container for data item (B section).
17
+ */
18
+ baseData: TDomain;
19
+ }
@@ -0,0 +1,44 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+ import { DataPointType } from "./DataPointType";
4
+
5
+ /**
6
+ * Metric data single measurement.
7
+ */
8
+ export interface IDataPoint {
9
+
10
+ /**
11
+ * Name of the metric.
12
+ */
13
+ name: string;
14
+
15
+ /**
16
+ * Metric type. Single measurement or the aggregated value.
17
+ */
18
+ kind: DataPointType;
19
+
20
+ /**
21
+ * Single value for measurement. Sum of individual measurements for the aggregation.
22
+ */
23
+ value: number;
24
+
25
+ /**
26
+ * Metric weight of the aggregated metric. Should not be set for a measurement.
27
+ */
28
+ count: number;
29
+
30
+ /**
31
+ * Minimum value of the aggregated metric. Should not be set for a measurement.
32
+ */
33
+ min: number;
34
+
35
+ /**
36
+ * Maximum value of the aggregated metric. Should not be set for a measurement.
37
+ */
38
+ max: number;
39
+
40
+ /**
41
+ * Standard deviation of the aggregated metric. Should not be set for a measurement.
42
+ */
43
+ stdDev: number;
44
+ }
@@ -0,0 +1,8 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * The abstract common base of all domains.
6
+ */
7
+ export interface IDomain {
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
+ // }
@@ -0,0 +1,30 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IDomain } from "./IDomain";
5
+
6
+ /**
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
+ */
9
+ export interface IEventData extends IDomain {
10
+
11
+ /**
12
+ * Schema version
13
+ */
14
+ ver: number; /* 2 */
15
+
16
+ /**
17
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
18
+ */
19
+ name: string;
20
+
21
+ /**
22
+ * Collection of custom properties.
23
+ */
24
+ properties: any; /* {} */
25
+
26
+ /**
27
+ * Collection of custom measurements.
28
+ */
29
+ measurements: any; /* {} */
30
+ }
@@ -0,0 +1,37 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IExceptionDetails } from "./IExceptionDetails";
5
+ import { IDomain } from "./IDomain";
6
+ import { SeverityLevel } from "./SeverityLevel";
7
+
8
+ /**
9
+ * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
10
+ */
11
+ export interface IExceptionData extends IDomain {
12
+
13
+ /**
14
+ * Schema version
15
+ */
16
+ ver: number; /* 2 */
17
+
18
+ /**
19
+ * Exception chain - list of inner exceptions.
20
+ */
21
+ exceptions: IExceptionDetails[]; /* [] */
22
+
23
+ /**
24
+ * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
25
+ */
26
+ severityLevel: SeverityLevel;
27
+
28
+ /**
29
+ * Collection of custom properties.
30
+ */
31
+ properties: any; /* {} */
32
+
33
+ /**
34
+ * Collection of custom measurements.
35
+ */
36
+ measurements: any; /* {} */
37
+ }
@@ -0,0 +1,45 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IStackFrame } from "./IStackFrame";
5
+
6
+ /**
7
+ * Exception details of the exception in a chain.
8
+ */
9
+ export interface IExceptionDetails {
10
+
11
+ /**
12
+ * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
13
+ */
14
+ id: number;
15
+
16
+ /**
17
+ * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
18
+ */
19
+ outerId: number;
20
+
21
+ /**
22
+ * Exception type name.
23
+ */
24
+ typeName: string;
25
+
26
+ /**
27
+ * Exception message.
28
+ */
29
+ message: string;
30
+
31
+ /**
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.
33
+ */
34
+ hasFullStack: boolean;
35
+
36
+ /**
37
+ * Text describing the stack. Either stack or parsedStack should have a value.
38
+ */
39
+ stack: string;
40
+
41
+ /**
42
+ * List of stack frames. Either stack or parsedStack should have a value.
43
+ */
44
+ parsedStack: IStackFrame[]; /* [] */
45
+ }
@@ -0,0 +1,36 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IDomain } from "./IDomain";
5
+ import { SeverityLevel } from "./SeverityLevel";
6
+
7
+ /**
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
+ */
10
+ export interface IMessageData extends IDomain {
11
+
12
+ /**
13
+ * Schema version
14
+ */
15
+ ver: number; /* 2 */
16
+
17
+ /**
18
+ * Trace message
19
+ */
20
+ message: string;
21
+
22
+ /**
23
+ * Trace severity level.
24
+ */
25
+ severityLevel: SeverityLevel;
26
+
27
+ /**
28
+ * Collection of custom properties.
29
+ */
30
+ properties: any; /* {} */
31
+
32
+ /**
33
+ * Collection of custom measurements.
34
+ */
35
+ measurements: any; /* {} */
36
+ }
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ import { IDomain } from "./IDomain";
5
+ import { IDataPoint } from "./IDataPoint";
6
+
7
+ /**
8
+ * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
9
+ */
10
+ export interface IMetricData extends IDomain {
11
+
12
+ /**
13
+ * Schema version
14
+ */
15
+ ver: number; /* 2 */
16
+
17
+ /**
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
+ */
20
+ metrics: IDataPoint[]; /* [] */
21
+
22
+ /**
23
+ * Collection of custom properties.
24
+ */
25
+ properties: any; /* {} */
26
+
27
+ /**
28
+ * Collection of custom measurements.
29
+ */
30
+ measurements: any; /* {} */
31
+ }
@@ -0,0 +1,26 @@
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
+
7
+ /**
8
+ * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
9
+ */
10
+ export interface IPageViewData extends IEventData {
11
+
12
+ /**
13
+ * Request URL with all query string parameters
14
+ */
15
+ url: string;
16
+
17
+ /**
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.
19
+ */
20
+ duration: string;
21
+
22
+ /**
23
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
24
+ */
25
+ id: string;
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
+ }
@@ -0,0 +1,65 @@
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 Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
8
+ */
9
+ export interface IRemoteDependencyData extends IDomain {
10
+
11
+ /**
12
+ * Schema version
13
+ */
14
+ ver: number; /* 2 */
15
+
16
+ /**
17
+ * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
18
+ */
19
+ name: string;
20
+
21
+ /**
22
+ * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
23
+ */
24
+ id: string;
25
+
26
+ /**
27
+ * Result code of a dependency call. Examples are SQL error code and HTTP status code.
28
+ */
29
+ resultCode: string;
30
+
31
+ /**
32
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
33
+ */
34
+ duration: string;
35
+
36
+ /**
37
+ * Indication of successful or unsuccessful call.
38
+ */
39
+ success: boolean; /* true */
40
+
41
+ /**
42
+ * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
43
+ */
44
+ data: string;
45
+
46
+ /**
47
+ * Target site of a dependency call. Examples are server name, host address.
48
+ */
49
+ target: string;
50
+
51
+ /**
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
+ */
54
+ type: string;
55
+
56
+ /**
57
+ * Collection of custom properties.
58
+ */
59
+ properties: any; /* {} */
60
+
61
+ /**
62
+ * Collection of custom measurements.
63
+ */
64
+ measurements: any; /* {} */
65
+ }
@@ -0,0 +1,33 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * Stack frame information.
6
+ */
7
+ export interface IStackFrame {
8
+
9
+ /**
10
+ * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
11
+ */
12
+ level: number;
13
+
14
+ /**
15
+ * Method name.
16
+ */
17
+ method: string;
18
+
19
+ /**
20
+ * Name of the assembly (dll, jar, etc.) containing this function.
21
+ */
22
+ assembly: string;
23
+
24
+ /**
25
+ * File name or URL of the method implementation.
26
+ */
27
+ fileName: string;
28
+
29
+ /**
30
+ * Line number of the code implementation.
31
+ */
32
+ line: number;
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
+ // }
@@ -0,0 +1,15 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ // THIS FILE WAS AUTOGENERATED
5
+
6
+ /**
7
+ * Defines the level of severity for the event.
8
+ */
9
+ export enum SeverityLevel {
10
+ Verbose = 0,
11
+ Information = 1,
12
+ Warning = 2,
13
+ Error = 3,
14
+ Critical = 4,
15
+ }
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { dumpObj, getExceptionName, getGlobal, getGlobalInst, IDiagnosticLogger, isNullOrUndefined, LoggingSeverity, objForEachKey, _InternalMessageId } from "@microsoft/applicationinsights-core-js";
4
+ import { dumpObj, getExceptionName, getGlobal, getGlobalInst, IDiagnosticLogger, isNullOrUndefined, eLoggingSeverity, objForEachKey, _InternalMessageId } from "@microsoft/applicationinsights-core-js";
5
5
  import { StorageType } from "./Enums";
6
6
 
7
7
  let _canUseLocalStorage: boolean = undefined;
@@ -79,7 +79,7 @@ export function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): str
79
79
  _canUseLocalStorage = false;
80
80
 
81
81
  logger.throwInternal(
82
- LoggingSeverity.WARNING,
82
+ eLoggingSeverity.WARNING,
83
83
  _InternalMessageId.BrowserCannotReadLocalStorage,
84
84
  "Browser failed read of local storage. " + getExceptionName(e),
85
85
  { exception: dumpObj(e) });
@@ -98,7 +98,7 @@ export function utlSetLocalStorage(logger: IDiagnosticLogger, name: string, data
98
98
  _canUseLocalStorage = false;
99
99
 
100
100
  logger.throwInternal(
101
- LoggingSeverity.WARNING,
101
+ eLoggingSeverity.WARNING,
102
102
  _InternalMessageId.BrowserCannotWriteLocalStorage,
103
103
  "Browser failed write to local storage. " + getExceptionName(e),
104
104
  { exception: dumpObj(e) });
@@ -117,7 +117,7 @@ export function utlRemoveStorage(logger: IDiagnosticLogger, name: string): boole
117
117
  _canUseLocalStorage = false;
118
118
 
119
119
  logger.throwInternal(
120
- LoggingSeverity.WARNING,
120
+ eLoggingSeverity.WARNING,
121
121
  _InternalMessageId.BrowserFailedRemovalFromLocalStorage,
122
122
  "Browser failed removal of local storage item. " + getExceptionName(e),
123
123
  { exception: dumpObj(e) });
@@ -155,7 +155,7 @@ export function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): s
155
155
  _canUseSessionStorage = false;
156
156
 
157
157
  logger.throwInternal(
158
- LoggingSeverity.WARNING,
158
+ eLoggingSeverity.WARNING,
159
159
  _InternalMessageId.BrowserCannotReadSessionStorage,
160
160
  "Browser failed read of session storage. " + getExceptionName(e),
161
161
  { exception: dumpObj(e) });
@@ -174,7 +174,7 @@ export function utlSetSessionStorage(logger: IDiagnosticLogger, name: string, da
174
174
  _canUseSessionStorage = false;
175
175
 
176
176
  logger.throwInternal(
177
- LoggingSeverity.WARNING,
177
+ eLoggingSeverity.WARNING,
178
178
  _InternalMessageId.BrowserCannotWriteSessionStorage,
179
179
  "Browser failed write to session storage. " + getExceptionName(e),
180
180
  { exception: dumpObj(e) });
@@ -193,7 +193,7 @@ export function utlRemoveSessionStorage(logger: IDiagnosticLogger, name: string)
193
193
  _canUseSessionStorage = false;
194
194
 
195
195
  logger.throwInternal(
196
- LoggingSeverity.WARNING,
196
+ eLoggingSeverity.WARNING,
197
197
  _InternalMessageId.BrowserFailedRemovalFromSessionStorage,
198
198
  "Browser failed removal of session storage item. " + getExceptionName(e),
199
199
  { exception: dumpObj(e) });