@microsoft/applicationinsights-common 3.3.5-nightly3.2411-13 → 3.3.5-nightly3.2412-01
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.
- package/browser/es5/applicationinsights-common.cjs.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.js +4 -4
- package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-common.integrity.json +25 -25
- package/browser/es5/applicationinsights-common.js +4 -4
- package/browser/es5/applicationinsights-common.js.map +1 -1
- package/browser/es5/applicationinsights-common.min.js +2 -2
- package/browser/es5/applicationinsights-common.min.js.map +1 -1
- package/dist/es5/applicationinsights-common.js +2 -2
- package/dist/es5/applicationinsights-common.js.map +1 -1
- package/dist/es5/applicationinsights-common.min.js +2 -2
- package/dist/es5/applicationinsights-common.min.js.map +1 -1
- package/dist-es5/ConnectionStringParser.js +1 -1
- package/dist-es5/Constants.js +1 -1
- package/dist-es5/DomHelperFuncs.js +1 -1
- package/dist-es5/Enums.js +1 -1
- package/dist-es5/HelperFuncs.js +1 -1
- package/dist-es5/Interfaces/ConnectionString.js +1 -1
- package/dist-es5/Interfaces/Context/IApplication.js +1 -1
- package/dist-es5/Interfaces/Context/IDevice.js +1 -1
- package/dist-es5/Interfaces/Context/IInternal.js +1 -1
- package/dist-es5/Interfaces/Context/ILocation.js +1 -1
- package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-es5/Interfaces/Context/ISample.js +1 -1
- package/dist-es5/Interfaces/Context/ISession.js +1 -1
- package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
- package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-es5/Interfaces/Context/IUser.js +1 -1
- package/dist-es5/Interfaces/Context/IWeb.js +1 -1
- package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
- package/dist-es5/Interfaces/Contracts/IData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
- package/dist-es5/Interfaces/IAppInsights.js +1 -1
- package/dist-es5/Interfaces/IConfig.js +1 -1
- package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
- package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-es5/Interfaces/IPartC.js +1 -1
- package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-es5/Interfaces/IRequestContext.js +1 -1
- package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
- package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
- package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-es5/Interfaces/PartAExtensions.js +1 -1
- package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-es5/Offline.js +1 -1
- package/dist-es5/RequestResponseHeaders.js +1 -1
- package/dist-es5/StorageHelperFuncs.js +1 -1
- package/dist-es5/Telemetry/Common/Data.js +1 -1
- package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
- package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-es5/Telemetry/Common/Envelope.js +1 -1
- package/dist-es5/Telemetry/Event.js +1 -1
- package/dist-es5/Telemetry/Exception.js +1 -1
- package/dist-es5/Telemetry/Metric.js +1 -1
- package/dist-es5/Telemetry/PageView.js +1 -1
- package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
- package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-es5/Telemetry/Trace.js +1 -1
- package/dist-es5/TelemetryItemCreator.js +3 -3
- package/dist-es5/TelemetryItemCreator.js.map +1 -1
- package/dist-es5/ThrottleMgr.js +2 -2
- package/dist-es5/ThrottleMgr.js.map +1 -1
- package/dist-es5/UrlHelperFuncs.js +1 -1
- package/dist-es5/Util.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-common.js +1 -1
- package/package.json +2 -2
- package/types/applicationinsights-common.d.ts +9 -32
- package/types/applicationinsights-common.namespaced.d.ts +27 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 3.3.5-nightly3.
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 3.3.5-nightly3.2412-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -98,7 +98,7 @@ declare namespace ApplicationInsights {
|
|
|
98
98
|
* Create a telemetry item that the 1DS channel understands
|
|
99
99
|
* @param item - domain specific properties; part B
|
|
100
100
|
* @param baseType - telemetry item type. ie PageViewData
|
|
101
|
-
* @param envelopeName -
|
|
101
|
+
* @param envelopeName - Name of the envelope, e.g., `Microsoft.ApplicationInsights.\<instrumentation key\>.PageView`.
|
|
102
102
|
* @param customProperties - user defined custom properties; part C
|
|
103
103
|
* @param systemProperties - system properties that are added to the context; part A
|
|
104
104
|
* @returns ITelemetryItem that is sent to channel
|
|
@@ -653,7 +653,7 @@ declare namespace ApplicationInsights {
|
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
655
|
* Find all script tags in the provided document and return the information about them.
|
|
656
|
-
* @param doc
|
|
656
|
+
* @param doc - The document to search for script tags
|
|
657
657
|
* @returns
|
|
658
658
|
*/
|
|
659
659
|
function findAllScripts(doc: any): scriptsInfo[];
|
|
@@ -803,7 +803,6 @@ declare namespace ApplicationInsights {
|
|
|
803
803
|
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void | IPromise<ITelemetryUnloadState>;
|
|
804
804
|
/**
|
|
805
805
|
* Find and return the (first) plugin with the specified identifier if present
|
|
806
|
-
* @param pluginIdentifier
|
|
807
806
|
*/
|
|
808
807
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
809
808
|
/**
|
|
@@ -858,7 +857,6 @@ declare namespace ApplicationInsights {
|
|
|
858
857
|
/**
|
|
859
858
|
* Watches and tracks changes for accesses to the current config, and if the accessed config changes the
|
|
860
859
|
* handler will be recalled.
|
|
861
|
-
* @param handler
|
|
862
860
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
863
861
|
*/
|
|
864
862
|
onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
|
|
@@ -902,47 +900,38 @@ declare namespace ApplicationInsights {
|
|
|
902
900
|
interface IAutoExceptionTelemetry {
|
|
903
901
|
/**
|
|
904
902
|
* @description error message. Available as event in HTML onerror="" handler
|
|
905
|
-
* @type {string}
|
|
906
903
|
*/
|
|
907
904
|
message: string;
|
|
908
905
|
/**
|
|
909
906
|
* @description URL of the script where the error was raised
|
|
910
|
-
* @type {string}
|
|
911
907
|
*/
|
|
912
908
|
url: string;
|
|
913
909
|
/**
|
|
914
910
|
* @description Line number where error was raised
|
|
915
|
-
* @type {number}
|
|
916
911
|
*/
|
|
917
912
|
lineNumber: number;
|
|
918
913
|
/**
|
|
919
914
|
* @description Column number for the line where the error occurred
|
|
920
|
-
* @type {number}
|
|
921
915
|
*/
|
|
922
916
|
columnNumber: number;
|
|
923
917
|
/**
|
|
924
918
|
* @description Error Object (object)
|
|
925
|
-
* @type {any}
|
|
926
919
|
*/
|
|
927
920
|
error: any;
|
|
928
921
|
/**
|
|
929
922
|
* @description The event at the time of the exception (object)
|
|
930
|
-
* @type {Event|string}
|
|
931
923
|
*/
|
|
932
924
|
evt?: Event | string;
|
|
933
925
|
/**
|
|
934
926
|
* @description The provided stack for the error
|
|
935
|
-
* @type {IStackDetails}
|
|
936
927
|
*/
|
|
937
928
|
stackDetails?: IStackDetails;
|
|
938
929
|
/**
|
|
939
930
|
* @description The calculated type of the error
|
|
940
|
-
* @type {string}
|
|
941
931
|
*/
|
|
942
932
|
typeName?: string;
|
|
943
933
|
/**
|
|
944
934
|
* @description The descriptive source of the error
|
|
945
|
-
* @type {string}
|
|
946
935
|
*/
|
|
947
936
|
errorSrc?: string;
|
|
948
937
|
}
|
|
@@ -1169,7 +1158,7 @@ declare namespace ApplicationInsights {
|
|
|
1169
1158
|
*/
|
|
1170
1159
|
disableFlushOnBeforeUnload?: boolean;
|
|
1171
1160
|
/**
|
|
1172
|
-
* Default value of
|
|
1161
|
+
* Default value of `disableFlushOnBeforeUnload`. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
|
|
1173
1162
|
*/
|
|
1174
1163
|
disableFlushOnUnload?: boolean;
|
|
1175
1164
|
/**
|
|
@@ -1221,12 +1210,12 @@ declare namespace ApplicationInsights {
|
|
|
1221
1210
|
*/
|
|
1222
1211
|
isStorageUseDisabled?: boolean;
|
|
1223
1212
|
/**
|
|
1224
|
-
* If false, the SDK will send all telemetry using the
|
|
1213
|
+
* If false, the SDK will send all telemetry using the <a href="https://www.w3.org/TR/beacon">Beacon API</a>.
|
|
1225
1214
|
* @defaultValue true
|
|
1226
1215
|
*/
|
|
1227
1216
|
isBeaconApiDisabled?: boolean;
|
|
1228
1217
|
/**
|
|
1229
|
-
* Don't use XMLHttpRequest or XDomainRequest (for IE
|
|
1218
|
+
* Don't use XMLHttpRequest or XDomainRequest (for IE \< 9) by default instead attempt to use fetch() or sendBeacon.
|
|
1230
1219
|
* If no other transport is available it will still use XMLHttpRequest
|
|
1231
1220
|
*/
|
|
1232
1221
|
disableXhr?: boolean;
|
|
@@ -1483,8 +1472,8 @@ declare namespace ApplicationInsights {
|
|
|
1483
1472
|
* be logged to console if their severity meets the configured loggingConsoleLevel
|
|
1484
1473
|
*
|
|
1485
1474
|
* 0: ALL console logging off
|
|
1486
|
-
* 1: logs to console: severity
|
|
1487
|
-
* 2: logs to console: severity
|
|
1475
|
+
* 1: logs to console: severity \>= CRITICAL
|
|
1476
|
+
* 2: logs to console: severity \>= WARNING
|
|
1488
1477
|
*/
|
|
1489
1478
|
loggingLevelConsole?: number;
|
|
1490
1479
|
/**
|
|
@@ -1493,8 +1482,8 @@ declare namespace ApplicationInsights {
|
|
|
1493
1482
|
* the configured instrumentation key.
|
|
1494
1483
|
*
|
|
1495
1484
|
* 0: ALL iKey logging off
|
|
1496
|
-
* 1: logs to iKey: severity
|
|
1497
|
-
* 2: logs to iKey: severity
|
|
1485
|
+
* 1: logs to iKey: severity \>= CRITICAL
|
|
1486
|
+
* 2: logs to iKey: severity \>= WARNING
|
|
1498
1487
|
*/
|
|
1499
1488
|
loggingLevelTelemetry?: number;
|
|
1500
1489
|
/**
|
|
@@ -1521,7 +1510,6 @@ declare namespace ApplicationInsights {
|
|
|
1521
1510
|
*/
|
|
1522
1511
|
readonly channels?: IChannelControls[][];
|
|
1523
1512
|
/**
|
|
1524
|
-
* @type {boolean}
|
|
1525
1513
|
* Flag that disables the Instrumentation Key validation.
|
|
1526
1514
|
*/
|
|
1527
1515
|
disableInstrumentationKeyValidation?: boolean;
|
|
@@ -1552,14 +1540,12 @@ declare namespace ApplicationInsights {
|
|
|
1552
1540
|
/**
|
|
1553
1541
|
* @description Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains. It
|
|
1554
1542
|
* can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
|
|
1555
|
-
* @type {string}
|
|
1556
1543
|
* @defaultValue ""
|
|
1557
1544
|
*/
|
|
1558
1545
|
cookieDomain?: string;
|
|
1559
1546
|
/**
|
|
1560
1547
|
* @description Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application
|
|
1561
1548
|
* gateway. It can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
|
|
1562
|
-
* @type {string}
|
|
1563
1549
|
* @defaultValue ""
|
|
1564
1550
|
*/
|
|
1565
1551
|
cookiePath?: string;
|
|
@@ -1842,7 +1828,7 @@ declare namespace ApplicationInsights {
|
|
|
1842
1828
|
/**
|
|
1843
1829
|
* Optional Callback hook to allow the cookie manager to update it's configuration, not generally implemented now that
|
|
1844
1830
|
* dynamic configuration is supported
|
|
1845
|
-
* @param updateState
|
|
1831
|
+
* @param updateState - The new configuration state to apply to the cookie manager
|
|
1846
1832
|
*/
|
|
1847
1833
|
update?(updateState: ITelemetryUpdateState): void;
|
|
1848
1834
|
/**
|
|
@@ -2116,7 +2102,7 @@ declare namespace ApplicationInsights {
|
|
|
2116
2102
|
logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
2117
2103
|
/**
|
|
2118
2104
|
* Optional Callback hook to allow the diagnostic logger to update it's configuration
|
|
2119
|
-
* @param updateState
|
|
2105
|
+
* @param updateState - The new configuration state to apply to the diagnostic logger
|
|
2120
2106
|
*/
|
|
2121
2107
|
update?(updateState: ITelemetryUpdateState): void;
|
|
2122
2108
|
/**
|
|
@@ -2137,7 +2123,7 @@ declare namespace ApplicationInsights {
|
|
|
2137
2123
|
getName(): string;
|
|
2138
2124
|
/**
|
|
2139
2125
|
* Sets the current name of the page
|
|
2140
|
-
* @param pageName
|
|
2126
|
+
* @param pageName - The name of the page
|
|
2141
2127
|
*/
|
|
2142
2128
|
setName(pageName: string): void;
|
|
2143
2129
|
/**
|
|
@@ -2169,7 +2155,7 @@ declare namespace ApplicationInsights {
|
|
|
2169
2155
|
getTraceFlags(): number | undefined;
|
|
2170
2156
|
/**
|
|
2171
2157
|
* https://www.w3.org/TR/trace-context/#trace-flags
|
|
2172
|
-
* @param newValue
|
|
2158
|
+
* @param newValue - An integer representation of the W3C TraceContext trace-flags.
|
|
2173
2159
|
*/
|
|
2174
2160
|
setTraceFlags(newValue?: number): void;
|
|
2175
2161
|
}
|
|
@@ -2242,12 +2228,10 @@ declare namespace ApplicationInsights {
|
|
|
2242
2228
|
interface IEventTelemetry extends IPartC {
|
|
2243
2229
|
/**
|
|
2244
2230
|
* @description An event name string
|
|
2245
|
-
* @type {string}
|
|
2246
2231
|
*/
|
|
2247
2232
|
name: string;
|
|
2248
2233
|
/**
|
|
2249
2234
|
* @description custom defined iKey
|
|
2250
|
-
* @type {string}
|
|
2251
2235
|
*/
|
|
2252
2236
|
iKey?: string;
|
|
2253
2237
|
}
|
|
@@ -2286,10 +2270,10 @@ declare namespace ApplicationInsights {
|
|
|
2286
2270
|
*
|
|
2287
2271
|
* This callback is called before telemetry data is sent, allowing for dynamic customization of the logs.
|
|
2288
2272
|
*
|
|
2289
|
-
* @returns
|
|
2273
|
+
* @returns An object with the following property:
|
|
2290
2274
|
* - logs: An array of strings, where each string represents a log entry to be included in the telemetry.
|
|
2291
2275
|
*
|
|
2292
|
-
* @property
|
|
2276
|
+
* @property maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
|
|
2293
2277
|
*/
|
|
2294
2278
|
expLog?: () => {
|
|
2295
2279
|
logs: string[];
|
|
@@ -2401,20 +2385,17 @@ declare namespace ApplicationInsights {
|
|
|
2401
2385
|
*/
|
|
2402
2386
|
id?: string;
|
|
2403
2387
|
/**
|
|
2404
|
-
* @deprecated
|
|
2405
|
-
*
|
|
2406
|
-
* @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
|
|
2388
|
+
* @deprecated Please use the `exception` field instead. The behavior and usage of `exception` remains the same as this field.
|
|
2389
|
+
* Unique guid identifying this error.
|
|
2407
2390
|
*/
|
|
2408
2391
|
error?: Error;
|
|
2409
2392
|
/**
|
|
2410
|
-
* @type {Error}
|
|
2411
2393
|
* @description Error Object(s)
|
|
2412
2394
|
*/
|
|
2413
2395
|
exception?: Error | IAutoExceptionTelemetry;
|
|
2414
2396
|
/**
|
|
2415
2397
|
* @description Specified severity of exception for use with
|
|
2416
2398
|
* telemetry filtering in dashboard
|
|
2417
|
-
* @type {(SeverityLevel | number)}
|
|
2418
2399
|
*/
|
|
2419
2400
|
severityLevel?: SeverityLevel | number;
|
|
2420
2401
|
}
|
|
@@ -2489,32 +2470,31 @@ declare namespace ApplicationInsights {
|
|
|
2489
2470
|
getUrl: () => string;
|
|
2490
2471
|
/**
|
|
2491
2472
|
* Create payload data
|
|
2492
|
-
* @param data data
|
|
2493
2473
|
* @returns IPayloadData
|
|
2494
2474
|
*/
|
|
2495
2475
|
createPayload: (data: string | Uint8Array) => IPayloadData;
|
|
2496
2476
|
/**
|
|
2497
2477
|
* Serialize an item into a string
|
|
2498
|
-
* @param input telemetry item
|
|
2499
|
-
* @param convertUndefined convert undefined to a custom-defined object
|
|
2478
|
+
* @param input - telemetry item
|
|
2479
|
+
* @param convertUndefined - convert undefined to a custom-defined object
|
|
2500
2480
|
* @returns Serialized string
|
|
2501
2481
|
*/
|
|
2502
2482
|
serialize?: (input: ITelemetryItem, convertUndefined?: any) => string;
|
|
2503
2483
|
/**
|
|
2504
2484
|
* Batch an array of strings into one string
|
|
2505
|
-
* @param arr array of strings
|
|
2485
|
+
* @param arr - array of strings
|
|
2506
2486
|
* @returns a string represent all items in the given array
|
|
2507
2487
|
*/
|
|
2508
2488
|
batch?: (arr: string[]) => string;
|
|
2509
2489
|
/**
|
|
2510
2490
|
* If the item should be processed by offline channel
|
|
2511
|
-
* @param evt telemetry item
|
|
2491
|
+
* @param evt - telemetry item
|
|
2512
2492
|
* @returns should process or not
|
|
2513
2493
|
*/
|
|
2514
2494
|
shouldProcess?: (evt: ITelemetryItem) => boolean;
|
|
2515
2495
|
/**
|
|
2516
2496
|
* Create 1ds payload data
|
|
2517
|
-
* @param evts ITelemetryItems
|
|
2497
|
+
* @param evts - ITelemetryItems
|
|
2518
2498
|
* @returns IPayloadData
|
|
2519
2499
|
*/
|
|
2520
2500
|
createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
|
|
@@ -2606,29 +2586,24 @@ declare namespace ApplicationInsights {
|
|
|
2606
2586
|
interface IMetricTelemetry extends IPartC {
|
|
2607
2587
|
/**
|
|
2608
2588
|
* @description (required) - name of this metric
|
|
2609
|
-
* @type {string}
|
|
2610
2589
|
*/
|
|
2611
2590
|
name: string;
|
|
2612
2591
|
/**
|
|
2613
2592
|
* @description (required) - Recorded value/average for this metric
|
|
2614
|
-
* @type {number}
|
|
2615
2593
|
*/
|
|
2616
2594
|
average: number;
|
|
2617
2595
|
/**
|
|
2618
2596
|
* @description (optional) Number of samples represented by the average.
|
|
2619
|
-
* @type {number=}
|
|
2620
2597
|
* @default sampleCount=1
|
|
2621
2598
|
*/
|
|
2622
2599
|
sampleCount?: number;
|
|
2623
2600
|
/**
|
|
2624
2601
|
* @description (optional) The smallest measurement in the sample. Defaults to the average
|
|
2625
|
-
* @type {number}
|
|
2626
2602
|
* @default min=average
|
|
2627
2603
|
*/
|
|
2628
2604
|
min?: number;
|
|
2629
2605
|
/**
|
|
2630
2606
|
* @description (optional) The largest measurement in the sample. Defaults to the average.
|
|
2631
|
-
* @type {number}
|
|
2632
2607
|
* @default max=average
|
|
2633
2608
|
*/
|
|
2634
2609
|
max?: number;
|
|
@@ -2638,7 +2613,6 @@ declare namespace ApplicationInsights {
|
|
|
2638
2613
|
stdDev?: number;
|
|
2639
2614
|
/**
|
|
2640
2615
|
* @description custom defined iKey
|
|
2641
|
-
* @type {string}
|
|
2642
2616
|
*/
|
|
2643
2617
|
iKey?: string;
|
|
2644
2618
|
}
|
|
@@ -2669,7 +2643,7 @@ declare namespace ApplicationInsights {
|
|
|
2669
2643
|
/**
|
|
2670
2644
|
* [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
|
|
2671
2645
|
* the event can be displayed via the debug plugin extension.
|
|
2672
|
-
* @param perfEvent
|
|
2646
|
+
* @param perfEvent - The performance event object
|
|
2673
2647
|
*/
|
|
2674
2648
|
perfEvent?: (perfEvent: IPerfEvent) => void;
|
|
2675
2649
|
/**
|
|
@@ -3622,7 +3596,7 @@ declare namespace ApplicationInsights {
|
|
|
3622
3596
|
|
|
3623
3597
|
/**
|
|
3624
3598
|
* Validates that the provided ITraceParent instance conforms to the currently supported specifications
|
|
3625
|
-
* @param value
|
|
3599
|
+
* @param value - The parsed traceParent value
|
|
3626
3600
|
* @returns
|
|
3627
3601
|
*/
|
|
3628
3602
|
function isValidTraceParent(value: ITraceParent): boolean;
|
|
@@ -4094,17 +4068,14 @@ declare namespace ApplicationInsights {
|
|
|
4094
4068
|
interface ITraceTelemetry extends IPartC {
|
|
4095
4069
|
/**
|
|
4096
4070
|
* @description A message string
|
|
4097
|
-
* @type {string}
|
|
4098
4071
|
*/
|
|
4099
4072
|
message: string;
|
|
4100
4073
|
/**
|
|
4101
4074
|
* @description Severity level of the logging message used for filtering in the portal
|
|
4102
|
-
* @type {SeverityLevel}
|
|
4103
4075
|
*/
|
|
4104
4076
|
severityLevel?: SeverityLevel;
|
|
4105
4077
|
/**
|
|
4106
4078
|
* @description custom defiend iKey
|
|
4107
|
-
* @type {SeverityLevel}
|
|
4108
4079
|
*/
|
|
4109
4080
|
iKey?: string;
|
|
4110
4081
|
}
|
|
@@ -4268,7 +4239,7 @@ declare namespace ApplicationInsights {
|
|
|
4268
4239
|
|
|
4269
4240
|
/**
|
|
4270
4241
|
* this is the callback that will be called when the network status changes
|
|
4271
|
-
* @param onlineState this is the current network running state
|
|
4242
|
+
* @param onlineState - this is the current network running state
|
|
4272
4243
|
*/
|
|
4273
4244
|
type OfflineCallback = (onlineState: IOfflineState) => void;
|
|
4274
4245
|
|
|
@@ -4600,7 +4571,7 @@ declare namespace ApplicationInsights {
|
|
|
4600
4571
|
* Create a telemetry item that the 1DS channel understands
|
|
4601
4572
|
* @param item - domain specific properties; part B
|
|
4602
4573
|
* @param baseType - telemetry item type. ie PageViewData
|
|
4603
|
-
* @param envelopeName -
|
|
4574
|
+
* @param envelopeName - Name of the envelope (e.g., Microsoft.ApplicationInsights.[instrumentationKey].PageView).
|
|
4604
4575
|
* @param customProperties - user defined custom properties; part C
|
|
4605
4576
|
* @param systemProperties - system properties that are added to the context; part A
|
|
4606
4577
|
* @returns ITelemetryItem that is sent to channel
|