@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
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Microsoft Corporation. All rights reserved.
2
2
  // Licensed under the MIT License.
3
3
 
4
- import { IDiagnosticLogger, LoggingSeverity, _InternalMessageId, hasJSON, getJSON, objForEachKey, isObject, strTrim } from "@microsoft/applicationinsights-core-js";
4
+ import { IDiagnosticLogger, eLoggingSeverity, _InternalMessageId, hasJSON, getJSON, objForEachKey, isObject, strTrim } from "@microsoft/applicationinsights-core-js";
5
5
 
6
6
  export const enum DataSanitizerValues {
7
7
  /**
@@ -67,7 +67,7 @@ export function dataSanitizeKey(logger: IDiagnosticLogger, name: any) {
67
67
  if (name.length > DataSanitizerValues.MAX_NAME_LENGTH) {
68
68
  nameTrunc = name.substring(0, DataSanitizerValues.MAX_NAME_LENGTH);
69
69
  logger && logger.throwInternal(
70
- LoggingSeverity.WARNING,
70
+ eLoggingSeverity.WARNING,
71
71
  _InternalMessageId.NameTooLong,
72
72
  "name is too long. It has been truncated to " + DataSanitizerValues.MAX_NAME_LENGTH + " characters.",
73
73
  { name }, true);
@@ -85,7 +85,7 @@ export function dataSanitizeString(logger: IDiagnosticLogger, value: any, maxLen
85
85
  if (value.toString().length > maxLength) {
86
86
  valueTrunc = value.toString().substring(0, maxLength);
87
87
  logger && logger.throwInternal(
88
- LoggingSeverity.WARNING,
88
+ eLoggingSeverity.WARNING,
89
89
  _InternalMessageId.StringValueTooLong,
90
90
  "string value is too long. It has been truncated to " + maxLength + " characters.",
91
91
  { value }, true);
@@ -105,7 +105,7 @@ export function dataSanitizeMessage(logger: IDiagnosticLogger, message: any) {
105
105
  if (message.length > DataSanitizerValues.MAX_MESSAGE_LENGTH) {
106
106
  messageTrunc = message.substring(0, DataSanitizerValues.MAX_MESSAGE_LENGTH);
107
107
  logger && logger.throwInternal(
108
- LoggingSeverity.WARNING, _InternalMessageId.MessageTruncated,
108
+ eLoggingSeverity.WARNING, _InternalMessageId.MessageTruncated,
109
109
  "message is too long, it has been truncated to " + DataSanitizerValues.MAX_MESSAGE_LENGTH + " characters.",
110
110
  { message },
111
111
  true);
@@ -123,7 +123,7 @@ export function dataSanitizeException(logger: IDiagnosticLogger, exception: any)
123
123
  if (value.length > DataSanitizerValues.MAX_EXCEPTION_LENGTH) {
124
124
  exceptionTrunc = value.substring(0, DataSanitizerValues.MAX_EXCEPTION_LENGTH);
125
125
  logger && logger.throwInternal(
126
- LoggingSeverity.WARNING, _InternalMessageId.ExceptionTruncated, "exception is too long, it has been truncated to " + DataSanitizerValues.MAX_EXCEPTION_LENGTH + " characters.",
126
+ eLoggingSeverity.WARNING, _InternalMessageId.ExceptionTruncated, "exception is too long, it has been truncated to " + DataSanitizerValues.MAX_EXCEPTION_LENGTH + " characters.",
127
127
  { exception }, true);
128
128
  }
129
129
  }
@@ -140,7 +140,7 @@ export function dataSanitizeProperties(logger: IDiagnosticLogger, properties: an
140
140
  try {
141
141
  value = getJSON().stringify(value);
142
142
  } catch (e) {
143
- logger && logger.throwInternal(LoggingSeverity.WARNING, _InternalMessageId.CannotSerializeObjectNonSerializable, "custom property is not valid", { exception: e}, true);
143
+ logger && logger.throwInternal(eLoggingSeverity.WARNING, _InternalMessageId.CannotSerializeObjectNonSerializable, "custom property is not valid", { exception: e}, true);
144
144
  }
145
145
  }
146
146
  value = dataSanitizeString(logger, value, DataSanitizerValues.MAX_PROPERTY_LENGTH);
@@ -178,7 +178,7 @@ export function dataSanitizeInput(logger: IDiagnosticLogger, input: any, maxLeng
178
178
  if (input.length > maxLength) {
179
179
  inputTrunc = input.substring(0, maxLength);
180
180
  logger && logger.throwInternal(
181
- LoggingSeverity.WARNING,
181
+ eLoggingSeverity.WARNING,
182
182
  _msgId,
183
183
  "input is too long, it has been truncated to " + maxLength + " characters.",
184
184
  { data: input },
@@ -57,7 +57,7 @@ export { IPropertiesPlugin } from "./Interfaces/IPropertiesPlugin";
57
57
  export { IUser, IUserContext } from "./Interfaces/Context/IUser";
58
58
  export { ITelemetryTrace, ITraceState } from "./Interfaces/Context/ITelemetryTrace";
59
59
  export { IRequestContext } from "./Interfaces/IRequestContext";
60
- export { DistributedTracingModes } from "./Enums";
60
+ export { eDistributedTracingModes, DistributedTracingModes } from "./Enums";
61
61
  export { stringToBoolOrDefault, msToTimeSpan, getExtensionByName, isCrossOriginError } from "./HelperFuncs";
62
62
  export { isBeaconsSupported as isBeaconApiSupported } from "@microsoft/applicationinsights-core-js"
63
63
  export { createDomEvent } from "./DomHelperFuncs";
package/types/Enums.d.ts CHANGED
@@ -1,10 +1,15 @@
1
1
  /**
2
2
  * Type of storage to differentiate between local storage and session storage
3
3
  */
4
- export declare enum StorageType {
4
+ export declare const enum eStorageType {
5
5
  LocalStorage = 0,
6
6
  SessionStorage = 1
7
7
  }
8
+ export declare const StorageType: {
9
+ LocalStorage: number;
10
+ SessionStorage: number;
11
+ };
12
+ export declare type StorageType = eStorageType | typeof StorageType;
8
13
  /**
9
14
  * Enum is used in aiDataContract to describe how fields are serialized.
10
15
  * For instance: (Fieldtype.Required | FieldType.Array) will mark the field as required and indicate it's an array
@@ -15,7 +20,7 @@ export declare const enum FieldType {
15
20
  Array = 2,
16
21
  Hidden = 4
17
22
  }
18
- export declare enum DistributedTracingModes {
23
+ export declare const enum eDistributedTracingModes {
19
24
  /**
20
25
  * (Default) Send Application Insights correlation headers
21
26
  */
@@ -29,3 +34,9 @@ export declare enum DistributedTracingModes {
29
34
  */
30
35
  W3C = 2
31
36
  }
37
+ export declare const DistributedTracingModes: {
38
+ AI: number;
39
+ AI_AND_W3C: number;
40
+ W3C: number;
41
+ };
42
+ export declare type DistributedTracingModes = number | eDistributedTracingModes;
@@ -0,0 +1,175 @@
1
+ export interface IContextTagKeys {
2
+ /**
3
+ * Application version. Information in the application context fields is always about the application that is sending the telemetry.
4
+ */
5
+ readonly applicationVersion: string;
6
+ /**
7
+ * Application build.
8
+ */
9
+ readonly applicationBuild: string;
10
+ /**
11
+ * Application type id.
12
+ */
13
+ readonly applicationTypeId: string;
14
+ /**
15
+ * Application id.
16
+ */
17
+ readonly applicationId: string;
18
+ /**
19
+ * Application layer.
20
+ */
21
+ readonly applicationLayer: string;
22
+ /**
23
+ * Unique client device id. Computer name in most cases.
24
+ */
25
+ readonly deviceId: string;
26
+ readonly deviceIp: string;
27
+ readonly deviceLanguage: string;
28
+ /**
29
+ * Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
30
+ */
31
+ readonly deviceLocale: string;
32
+ /**
33
+ * Model of the device the end user of the application is using. Used for client scenarios. If this field is empty then it is derived from the user agent.
34
+ */
35
+ readonly deviceModel: string;
36
+ readonly deviceFriendlyName: string;
37
+ readonly deviceNetwork: string;
38
+ readonly deviceNetworkName: string;
39
+ /**
40
+ * Client device OEM name taken from the browser.
41
+ */
42
+ readonly deviceOEMName: string;
43
+ readonly deviceOS: string;
44
+ /**
45
+ * Operating system name and version of the device the end user of the application is using. If this field is empty then it is derived from the user agent. Example 'Windows 10 Pro 10.0.10586.0'
46
+ */
47
+ readonly deviceOSVersion: string;
48
+ /**
49
+ * Name of the instance where application is running. Computer name for on-premisis, instance name for Azure.
50
+ */
51
+ readonly deviceRoleInstance: string;
52
+ /**
53
+ * Name of the role application is part of. Maps directly to the role name in azure.
54
+ */
55
+ readonly deviceRoleName: string;
56
+ readonly deviceScreenResolution: string;
57
+ /**
58
+ * The type of the device the end user of the application is using. Used primarily to distinguish JavaScript telemetry from server side telemetry. Examples: 'PC', 'Phone', 'Browser'. 'PC' is the default value.
59
+ */
60
+ readonly deviceType: string;
61
+ readonly deviceMachineName: string;
62
+ readonly deviceVMName: string;
63
+ readonly deviceBrowser: string;
64
+ /**
65
+ * The browser name and version as reported by the browser.
66
+ */
67
+ readonly deviceBrowserVersion: string;
68
+ /**
69
+ * The IP address of the client device. IPv4 and IPv6 are supported. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
70
+ */
71
+ readonly locationIp: string;
72
+ /**
73
+ * The country of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
74
+ */
75
+ readonly locationCountry: string;
76
+ /**
77
+ * The province/state of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
78
+ */
79
+ readonly locationProvince: string;
80
+ /**
81
+ * The city of the client device. If any of Country, Province, or City is specified, those values will be preferred over geolocation of the IP address field. Information in the location context fields is always about the end user. When telemetry is sent from a service, the location context is about the user that initiated the operation in the service.
82
+ */
83
+ readonly locationCity: string;
84
+ /**
85
+ * A unique identifier for the operation instance. The operation.id is created by either a request or a page view. All other telemetry sets this to the value for the containing request or page view. Operation.id is used for finding all the telemetry items for a specific operation instance.
86
+ */
87
+ readonly operationId: string;
88
+ /**
89
+ * The name (group) of the operation. The operation.name is created by either a request or a page view. All other telemetry items set this to the value for the containing request or page view. Operation.name is used for finding all the telemetry items for a group of operations (i.e. 'GET Home/Index').
90
+ */
91
+ readonly operationName: string;
92
+ /**
93
+ * The unique identifier of the telemetry item's immediate parent.
94
+ */
95
+ readonly operationParentId: string;
96
+ readonly operationRootId: string;
97
+ /**
98
+ * Name of synthetic source. Some telemetry from the application may represent a synthetic traffic. It may be web crawler indexing the web site, site availability tests or traces from diagnostic libraries like Application Insights SDK itself.
99
+ */
100
+ readonly operationSyntheticSource: string;
101
+ /**
102
+ * The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
103
+ */
104
+ readonly operationCorrelationVector: string;
105
+ /**
106
+ * Session ID - the instance of the user's interaction with the app. Information in the session context fields is always about the end user. When telemetry is sent from a service, the session context is about the user that initiated the operation in the service.
107
+ */
108
+ readonly sessionId: string;
109
+ /**
110
+ * Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
111
+ */
112
+ readonly sessionIsFirst: string;
113
+ readonly sessionIsNew: string;
114
+ readonly userAccountAcquisitionDate: string;
115
+ /**
116
+ * In multi-tenant applications this is the account ID or name which the user is acting with. Examples may be subscription ID for Azure portal or blog name blogging platform.
117
+ */
118
+ readonly userAccountId: string;
119
+ /**
120
+ * The browser's user agent string as reported by the browser. This property will be used to extract informaiton regarding the customer's browser but will not be stored. Use custom properties to store the original user agent.
121
+ */
122
+ readonly userAgent: string;
123
+ /**
124
+ * Anonymous user id. Represents the end user of the application. When telemetry is sent from a service, the user context is about the user that initiated the operation in the service.
125
+ */
126
+ readonly userId: string;
127
+ /**
128
+ * Store region for UWP applications.
129
+ */
130
+ readonly userStoreRegion: string;
131
+ /**
132
+ * Authenticated user id. The opposite of ai.user.id, this represents the user with a friendly name. Since it's PII information it is not collected by default by most SDKs.
133
+ */
134
+ readonly userAuthUserId: string;
135
+ readonly userAnonymousUserAcquisitionDate: string;
136
+ readonly userAuthenticatedUserAcquisitionDate: string;
137
+ readonly cloudName: string;
138
+ /**
139
+ * Name of the role the application is a part of. Maps directly to the role name in azure.
140
+ */
141
+ readonly cloudRole: string;
142
+ readonly cloudRoleVer: string;
143
+ /**
144
+ * Name of the instance where the application is running. Computer name for on-premisis, instance name for Azure.
145
+ */
146
+ readonly cloudRoleInstance: string;
147
+ readonly cloudEnvironment: string;
148
+ readonly cloudLocation: string;
149
+ readonly cloudDeploymentUnit: string;
150
+ /**
151
+ * SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
152
+ */
153
+ readonly internalSdkVersion: string;
154
+ /**
155
+ * Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
156
+ */
157
+ readonly internalAgentVersion: string;
158
+ /**
159
+ * This is the node name used for billing purposes. Use it to override the standard detection of nodes.
160
+ */
161
+ readonly internalNodeName: string;
162
+ /**
163
+ * This identifies the version of the snippet that was used to initialize the SDK
164
+ */
165
+ readonly internalSnippet: string;
166
+ /**
167
+ * This identifies the source of the Sdk script (used to identify whether the SDK was loaded via the CDN)
168
+ */
169
+ readonly internalSdkSrc: string;
170
+ }
171
+ declare const ContextTagKeys_base: new () => IContextTagKeys;
172
+ export declare class ContextTagKeys extends ContextTagKeys_base {
173
+ constructor();
174
+ }
175
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Type of the metric data measurement.
3
+ */
4
+ export declare const enum DataPointType {
5
+ Measurement = 0,
6
+ Aggregation = 1
7
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Identifies the type of dependency.
3
+ */
4
+ export declare const enum DependencyKind {
5
+ SQL = 0,
6
+ Http = 1,
7
+ Other = 2
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Identifies the source of the dependency.
3
+ */
4
+ export declare const enum DependencySourceType {
5
+ Undefined = 0,
6
+ Aic = 1,
7
+ Apmc = 2
8
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Data struct to contain only C section with custom fields.
3
+ */
4
+ export interface IBase {
5
+ /**
6
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
7
+ */
8
+ baseType: string;
9
+ }
@@ -0,0 +1,14 @@
1
+ import { IBase } from "./IBase";
2
+ /**
3
+ * Data struct to contain both B and C sections.
4
+ */
5
+ export interface IData<TDomain> extends IBase {
6
+ /**
7
+ * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
8
+ */
9
+ baseType: string;
10
+ /**
11
+ * Container for data item (B section).
12
+ */
13
+ baseData: TDomain;
14
+ }
@@ -0,0 +1,34 @@
1
+ import { DataPointType } from "./DataPointType";
2
+ /**
3
+ * Metric data single measurement.
4
+ */
5
+ export interface IDataPoint {
6
+ /**
7
+ * Name of the metric.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Metric type. Single measurement or the aggregated value.
12
+ */
13
+ kind: DataPointType;
14
+ /**
15
+ * Single value for measurement. Sum of individual measurements for the aggregation.
16
+ */
17
+ value: number;
18
+ /**
19
+ * Metric weight of the aggregated metric. Should not be set for a measurement.
20
+ */
21
+ count: number;
22
+ /**
23
+ * Minimum value of the aggregated metric. Should not be set for a measurement.
24
+ */
25
+ min: number;
26
+ /**
27
+ * Maximum value of the aggregated metric. Should not be set for a measurement.
28
+ */
29
+ max: number;
30
+ /**
31
+ * Standard deviation of the aggregated metric. Should not be set for a measurement.
32
+ */
33
+ stdDev: number;
34
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The abstract common base of all domains.
3
+ */
4
+ export interface IDomain {
5
+ }
File without changes
@@ -0,0 +1,22 @@
1
+ import { IDomain } from "./IDomain";
2
+ /**
3
+ * 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.
4
+ */
5
+ export interface IEventData extends IDomain {
6
+ /**
7
+ * Schema version
8
+ */
9
+ ver: number;
10
+ /**
11
+ * Event name. Keep it low cardinality to allow proper grouping and useful metrics.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Collection of custom properties.
16
+ */
17
+ properties: any;
18
+ /**
19
+ * Collection of custom measurements.
20
+ */
21
+ measurements: any;
22
+ }
@@ -0,0 +1,28 @@
1
+ import { IExceptionDetails } from "./IExceptionDetails";
2
+ import { IDomain } from "./IDomain";
3
+ import { SeverityLevel } from "./SeverityLevel";
4
+ /**
5
+ * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
6
+ */
7
+ export interface IExceptionData extends IDomain {
8
+ /**
9
+ * Schema version
10
+ */
11
+ ver: number;
12
+ /**
13
+ * Exception chain - list of inner exceptions.
14
+ */
15
+ exceptions: IExceptionDetails[];
16
+ /**
17
+ * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
18
+ */
19
+ severityLevel: SeverityLevel;
20
+ /**
21
+ * Collection of custom properties.
22
+ */
23
+ properties: any;
24
+ /**
25
+ * Collection of custom measurements.
26
+ */
27
+ measurements: any;
28
+ }
@@ -0,0 +1,34 @@
1
+ import { IStackFrame } from "./IStackFrame";
2
+ /**
3
+ * Exception details of the exception in a chain.
4
+ */
5
+ export interface IExceptionDetails {
6
+ /**
7
+ * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
8
+ */
9
+ id: number;
10
+ /**
11
+ * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
12
+ */
13
+ outerId: number;
14
+ /**
15
+ * Exception type name.
16
+ */
17
+ typeName: string;
18
+ /**
19
+ * Exception message.
20
+ */
21
+ message: string;
22
+ /**
23
+ * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
24
+ */
25
+ hasFullStack: boolean;
26
+ /**
27
+ * Text describing the stack. Either stack or parsedStack should have a value.
28
+ */
29
+ stack: string;
30
+ /**
31
+ * List of stack frames. Either stack or parsedStack should have a value.
32
+ */
33
+ parsedStack: IStackFrame[];
34
+ }
@@ -0,0 +1,27 @@
1
+ import { IDomain } from "./IDomain";
2
+ import { SeverityLevel } from "./SeverityLevel";
3
+ /**
4
+ * 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.
5
+ */
6
+ export interface IMessageData extends IDomain {
7
+ /**
8
+ * Schema version
9
+ */
10
+ ver: number;
11
+ /**
12
+ * Trace message
13
+ */
14
+ message: string;
15
+ /**
16
+ * Trace severity level.
17
+ */
18
+ severityLevel: SeverityLevel;
19
+ /**
20
+ * Collection of custom properties.
21
+ */
22
+ properties: any;
23
+ /**
24
+ * Collection of custom measurements.
25
+ */
26
+ measurements: any;
27
+ }
@@ -0,0 +1,23 @@
1
+ import { IDomain } from "./IDomain";
2
+ import { IDataPoint } from "./IDataPoint";
3
+ /**
4
+ * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
5
+ */
6
+ export interface IMetricData extends IDomain {
7
+ /**
8
+ * Schema version
9
+ */
10
+ ver: number;
11
+ /**
12
+ * 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.
13
+ */
14
+ metrics: IDataPoint[];
15
+ /**
16
+ * Collection of custom properties.
17
+ */
18
+ properties: any;
19
+ /**
20
+ * Collection of custom measurements.
21
+ */
22
+ measurements: any;
23
+ }
@@ -0,0 +1,18 @@
1
+ import { IEventData } from "./IEventData";
2
+ /**
3
+ * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
4
+ */
5
+ export interface IPageViewData extends IEventData {
6
+ /**
7
+ * Request URL with all query string parameters
8
+ */
9
+ url: string;
10
+ /**
11
+ * 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.
12
+ */
13
+ duration: string;
14
+ /**
15
+ * Identifier of a page view instance. Used for correlation between page view and other telemetry items.
16
+ */
17
+ id: string;
18
+ }
@@ -0,0 +1,26 @@
1
+ import { IPageViewData } from "./IPageViewData";
2
+ /**
3
+ * 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.
4
+ */
5
+ export interface IPageViewPerfData extends IPageViewData {
6
+ /**
7
+ * Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
8
+ */
9
+ perfTotal: string;
10
+ /**
11
+ * Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
12
+ */
13
+ networkConnect: string;
14
+ /**
15
+ * Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
16
+ */
17
+ sentRequest: string;
18
+ /**
19
+ * Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
20
+ */
21
+ receivedResponse: string;
22
+ /**
23
+ * DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff
24
+ */
25
+ domProcessing: string;
26
+ }
@@ -0,0 +1,50 @@
1
+ import { IDomain } from "./IDomain";
2
+ /**
3
+ * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
4
+ */
5
+ export interface IRemoteDependencyData extends IDomain {
6
+ /**
7
+ * Schema version
8
+ */
9
+ ver: number;
10
+ /**
11
+ * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Result code of a dependency call. Examples are SQL error code and HTTP status code.
20
+ */
21
+ resultCode: string;
22
+ /**
23
+ * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
24
+ */
25
+ duration: string;
26
+ /**
27
+ * Indication of successful or unsuccessful call.
28
+ */
29
+ success: boolean;
30
+ /**
31
+ * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
32
+ */
33
+ data: string;
34
+ /**
35
+ * Target site of a dependency call. Examples are server name, host address.
36
+ */
37
+ target: string;
38
+ /**
39
+ * 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.
40
+ */
41
+ type: string;
42
+ /**
43
+ * Collection of custom properties.
44
+ */
45
+ properties: any;
46
+ /**
47
+ * Collection of custom measurements.
48
+ */
49
+ measurements: any;
50
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Stack frame information.
3
+ */
4
+ export interface IStackFrame {
5
+ /**
6
+ * Level in the call stack. For the long stacks SDK may not report every function in a call stack.
7
+ */
8
+ level: number;
9
+ /**
10
+ * Method name.
11
+ */
12
+ method: string;
13
+ /**
14
+ * Name of the assembly (dll, jar, etc.) containing this function.
15
+ */
16
+ assembly: string;
17
+ /**
18
+ * File name or URL of the method implementation.
19
+ */
20
+ fileName: string;
21
+ /**
22
+ * Line number of the code implementation.
23
+ */
24
+ line: number;
25
+ }
File without changes
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Defines the level of severity for the event.
3
+ */
4
+ export declare enum SeverityLevel {
5
+ Verbose = 0,
6
+ Information = 1,
7
+ Warning = 2,
8
+ Error = 3,
9
+ Critical = 4
10
+ }