first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+59
View File
@@ -0,0 +1,59 @@
import Contracts = require("./Contracts");
export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
export declare const DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com";
export declare const DEFAULT_LIVEMETRICS_HOST = "rt.services.visualstudio.com";
export declare enum QuickPulseCounter {
COMMITTED_BYTES = "\\Memory\\Committed Bytes",
PROCESSOR_TIME = "\\Processor(_Total)\\% Processor Time",
REQUEST_RATE = "\\ApplicationInsights\\Requests/Sec",
REQUEST_FAILURE_RATE = "\\ApplicationInsights\\Requests Failed/Sec",
REQUEST_DURATION = "\\ApplicationInsights\\Request Duration",
DEPENDENCY_RATE = "\\ApplicationInsights\\Dependency Calls/Sec",
DEPENDENCY_FAILURE_RATE = "\\ApplicationInsights\\Dependency Calls Failed/Sec",
DEPENDENCY_DURATION = "\\ApplicationInsights\\Dependency Call Duration",
EXCEPTION_RATE = "\\ApplicationInsights\\Exceptions/Sec",
}
export declare enum PerformanceCounter {
PRIVATE_BYTES = "\\Process(??APP_WIN32_PROC??)\\Private Bytes",
AVAILABLE_BYTES = "\\Memory\\Available Bytes",
PROCESSOR_TIME = "\\Processor(_Total)\\% Processor Time",
PROCESS_TIME = "\\Process(??APP_WIN32_PROC??)\\% Processor Time",
REQUEST_RATE = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",
REQUEST_DURATION = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time",
}
/**
* Map a PerformanceCounter/QuickPulseCounter to a QuickPulseCounter. If no mapping exists, mapping is *undefined*
*/
export declare const PerformanceToQuickPulseCounter: {
[key: string]: QuickPulseCounter;
};
export declare type QuickPulseDocumentType = "Event" | "Exception" | "Trace" | "Metric" | "Request" | "RemoteDependency" | "Availability" | "PageView";
export declare type QuickPulseType = "EventTelemetryDocument" | "ExceptionTelemetryDocument" | "TraceTelemetryDocument" | "MetricTelemetryDocument" | "RequestTelemetryDocument" | "DependencyTelemetryDocument" | "AvailabilityTelemetryDocument" | "PageViewTelemetryDocument";
export declare const QuickPulseDocumentType: {
[key in Contracts.TelemetryTypeKeys]: QuickPulseDocumentType;
};
export declare const QuickPulseType: {
[key in Contracts.TelemetryTypeKeys]: QuickPulseType;
};
export declare const TelemetryTypeStringToQuickPulseType: {
[key in Contracts.TelemetryTypeValues]: QuickPulseType;
};
export declare const TelemetryTypeStringToQuickPulseDocumentType: {
[key in Contracts.TelemetryTypeValues]: QuickPulseDocumentType;
};
export declare const SpanAttribute: {
HttpHost: string;
HttpMethod: string;
HttpPort: string;
HttpStatusCode: string;
HttpUrl: string;
HttpUserAgent: string;
GrpcMethod: string;
GrpcService: string;
};
export declare const DependencyTypeName: {
Grpc: string;
Http: string;
InProc: string;
};
export declare const HeartBeatMetricName = "HeartBeat";
+111
View File
@@ -0,0 +1,111 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com";
exports.DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com";
exports.DEFAULT_LIVEMETRICS_HOST = "rt.services.visualstudio.com";
var QuickPulseCounter;
(function (QuickPulseCounter) {
// Memory
QuickPulseCounter["COMMITTED_BYTES"] = "\\Memory\\Committed Bytes";
// CPU
QuickPulseCounter["PROCESSOR_TIME"] = "\\Processor(_Total)\\% Processor Time";
// Request
QuickPulseCounter["REQUEST_RATE"] = "\\ApplicationInsights\\Requests/Sec";
QuickPulseCounter["REQUEST_FAILURE_RATE"] = "\\ApplicationInsights\\Requests Failed/Sec";
QuickPulseCounter["REQUEST_DURATION"] = "\\ApplicationInsights\\Request Duration";
// Dependency
QuickPulseCounter["DEPENDENCY_RATE"] = "\\ApplicationInsights\\Dependency Calls/Sec";
QuickPulseCounter["DEPENDENCY_FAILURE_RATE"] = "\\ApplicationInsights\\Dependency Calls Failed/Sec";
QuickPulseCounter["DEPENDENCY_DURATION"] = "\\ApplicationInsights\\Dependency Call Duration";
// Exception
QuickPulseCounter["EXCEPTION_RATE"] = "\\ApplicationInsights\\Exceptions/Sec";
})(QuickPulseCounter = exports.QuickPulseCounter || (exports.QuickPulseCounter = {}));
var PerformanceCounter;
(function (PerformanceCounter) {
// Memory
PerformanceCounter["PRIVATE_BYTES"] = "\\Process(??APP_WIN32_PROC??)\\Private Bytes";
PerformanceCounter["AVAILABLE_BYTES"] = "\\Memory\\Available Bytes";
// CPU
PerformanceCounter["PROCESSOR_TIME"] = "\\Processor(_Total)\\% Processor Time";
PerformanceCounter["PROCESS_TIME"] = "\\Process(??APP_WIN32_PROC??)\\% Processor Time";
// Requests
PerformanceCounter["REQUEST_RATE"] = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec";
PerformanceCounter["REQUEST_DURATION"] = "\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time";
})(PerformanceCounter = exports.PerformanceCounter || (exports.PerformanceCounter = {}));
;
/**
* Map a PerformanceCounter/QuickPulseCounter to a QuickPulseCounter. If no mapping exists, mapping is *undefined*
*/
exports.PerformanceToQuickPulseCounter = (_a = {},
_a[PerformanceCounter.PROCESSOR_TIME] = QuickPulseCounter.PROCESSOR_TIME,
_a[PerformanceCounter.REQUEST_RATE] = QuickPulseCounter.REQUEST_RATE,
_a[PerformanceCounter.REQUEST_DURATION] = QuickPulseCounter.REQUEST_DURATION,
// Remap quick pulse only counters
_a[QuickPulseCounter.COMMITTED_BYTES] = QuickPulseCounter.COMMITTED_BYTES,
_a[QuickPulseCounter.REQUEST_FAILURE_RATE] = QuickPulseCounter.REQUEST_FAILURE_RATE,
_a[QuickPulseCounter.DEPENDENCY_RATE] = QuickPulseCounter.DEPENDENCY_RATE,
_a[QuickPulseCounter.DEPENDENCY_FAILURE_RATE] = QuickPulseCounter.DEPENDENCY_FAILURE_RATE,
_a[QuickPulseCounter.DEPENDENCY_DURATION] = QuickPulseCounter.DEPENDENCY_DURATION,
_a[QuickPulseCounter.EXCEPTION_RATE] = QuickPulseCounter.EXCEPTION_RATE,
_a);
exports.QuickPulseDocumentType = {
Event: "Event",
Exception: "Exception",
Trace: "Trace",
Metric: "Metric",
Request: "Request",
Dependency: "RemoteDependency",
Availability: "Availability",
PageView: "PageView",
};
exports.QuickPulseType = {
Event: "EventTelemetryDocument",
Exception: "ExceptionTelemetryDocument",
Trace: "TraceTelemetryDocument",
Metric: "MetricTelemetryDocument",
Request: "RequestTelemetryDocument",
Dependency: "DependencyTelemetryDocument",
Availability: "AvailabilityTelemetryDocument",
PageView: "PageViewTelemetryDocument",
};
exports.TelemetryTypeStringToQuickPulseType = {
EventData: exports.QuickPulseType.Event,
ExceptionData: exports.QuickPulseType.Exception,
MessageData: exports.QuickPulseType.Trace,
MetricData: exports.QuickPulseType.Metric,
RequestData: exports.QuickPulseType.Request,
RemoteDependencyData: exports.QuickPulseType.Dependency,
AvailabilityData: exports.QuickPulseType.Availability,
PageViewData: exports.QuickPulseType.PageView
};
exports.TelemetryTypeStringToQuickPulseDocumentType = {
EventData: exports.QuickPulseDocumentType.Event,
ExceptionData: exports.QuickPulseDocumentType.Exception,
MessageData: exports.QuickPulseDocumentType.Trace,
MetricData: exports.QuickPulseDocumentType.Metric,
RequestData: exports.QuickPulseDocumentType.Request,
RemoteDependencyData: exports.QuickPulseDocumentType.Dependency,
AvailabilityData: exports.QuickPulseDocumentType.Availability,
PageViewData: exports.QuickPulseDocumentType.PageView
};
// OpenTelemetry Span Attributes
exports.SpanAttribute = {
// HTTP
HttpHost: "http.host",
HttpMethod: "http.method",
HttpPort: "http.port",
HttpStatusCode: "http.status_code",
HttpUrl: "http.url",
HttpUserAgent: "http.user_agent",
// GRPC
GrpcMethod: "grpc.method",
GrpcService: "rpc.service",
};
exports.DependencyTypeName = {
Grpc: "GRPC",
Http: "HTTP",
InProc: "InProc",
};
exports.HeartBeatMetricName = "HeartBeat";
var _a;
//# sourceMappingURL=Constants.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,23 @@
import { Domain } from "./Generated";
export declare class RemoteDependencyDataConstants {
static TYPE_HTTP: string;
static TYPE_AI: string;
}
export interface ISupportProperties extends Domain {
properties: any;
}
export declare function domainSupportsProperties(domain: Domain): domain is ISupportProperties;
/**
* Subset of Connection String fields which this SDK can parse. Lower-typecased to
* allow for case-insensitivity across field names
* @type ConnectionStringKey
*/
export interface ConnectionString {
authorization?: string;
instrumentationkey?: string;
ingestionendpoint?: string;
liveendpoint?: string;
location?: string;
endpointsuffix?: string;
}
export declare type ConnectionStringKey = "authorization" | "instrumentationkey" | "ingestionendpoint" | "liveendpoint" | "location" | "endpointsuffix";
@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Generated_1 = require("./Generated");
var RemoteDependencyDataConstants = (function () {
function RemoteDependencyDataConstants() {
}
RemoteDependencyDataConstants.TYPE_HTTP = "Http";
RemoteDependencyDataConstants.TYPE_AI = "Http (tracked component)";
return RemoteDependencyDataConstants;
}());
exports.RemoteDependencyDataConstants = RemoteDependencyDataConstants;
function domainSupportsProperties(domain) {
return "properties" in domain ||
domain instanceof Generated_1.EventData ||
domain instanceof Generated_1.ExceptionData ||
domain instanceof Generated_1.MessageData ||
domain instanceof Generated_1.MetricData ||
domain instanceof Generated_1.PageViewData ||
domain instanceof Generated_1.RemoteDependencyData ||
domain instanceof Generated_1.RequestData;
}
exports.domainSupportsProperties = domainSupportsProperties;
//# sourceMappingURL=Constants.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../../Declarations/Contracts/Constants.ts"],"names":[],"mappings":";;AAAA,yCAAyI;AAEzI;IAAA;IAGA,CAAC;IAFiB,uCAAS,GAAU,MAAM,CAAC;IAC1B,qCAAO,GAAU,0BAA0B,CAAC;IAC9D,oCAAC;CAAA,AAHD,IAGC;AAHY,sEAA6B;AAS1C,kCAAyC,MAAc;IACnD,MAAM,CAAC,YAAY,IAAI,MAAM;QACzB,MAAM,YAAY,qBAAS;QAC3B,MAAM,YAAY,yBAAa;QAC/B,MAAM,YAAY,uBAAW;QAC7B,MAAM,YAAY,sBAAU;QAC5B,MAAM,YAAY,wBAAY;QAC9B,MAAM,YAAY,gCAAoB;QACtC,MAAM,YAAY,uBAAW,CAAC;AACtC,CAAC;AATD,4DASC","sourcesContent":["import { Domain, EventData, ExceptionData, MessageData, MetricData, PageViewData, RemoteDependencyData, RequestData } from \"./Generated\";\r\n\r\nexport class RemoteDependencyDataConstants {\r\n public static TYPE_HTTP:string = \"Http\";\r\n public static TYPE_AI:string = \"Http (tracked component)\";\r\n}\r\n\r\nexport interface ISupportProperties extends Domain {\r\n properties: any;\r\n}\r\n\r\nexport function domainSupportsProperties(domain: Domain): domain is ISupportProperties {\r\n return \"properties\" in domain || // Do extra typechecks in case the type supports it but properties is null/undefined\r\n domain instanceof EventData ||\r\n domain instanceof ExceptionData ||\r\n domain instanceof MessageData ||\r\n domain instanceof MetricData ||\r\n domain instanceof PageViewData ||\r\n domain instanceof RemoteDependencyData ||\r\n domain instanceof RequestData;\r\n}\r\n\r\n/**\r\n * Subset of Connection String fields which this SDK can parse. Lower-typecased to\r\n * allow for case-insensitivity across field names\r\n * @type ConnectionStringKey\r\n */\r\nexport interface ConnectionString {\r\n authorization?: string;\r\n instrumentationkey?: string;\r\n ingestionendpoint?: string;\r\n liveendpoint?: string;\r\n location?: string;\r\n endpointsuffix?: string;\r\n\r\n // Note: this is a node types backcompat equivalent to\r\n // type ConnectionString = { [key in ConnectionStringKey]?: string }\r\n}\r\n\r\nexport type ConnectionStringKey = \"authorization\" | \"instrumentationkey\" | \"ingestionendpoint\" | \"liveendpoint\" | \"location\" | \"endpointsuffix\";\r\n"]}
@@ -0,0 +1,44 @@
import Domain = require('./Domain');
/**
* Instances of AvailabilityData represent the result of executing an availability test.
*/
declare class AvailabilityData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.
*/
id: string;
/**
* Name of the test that these availability results represent.
*/
name: string;
/**
* Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
*/
duration: string;
/**
* Success flag.
*/
success: boolean;
/**
* Name of the location where the test was run from.
*/
runLocation: string;
/**
* Diagnostic message for the result.
*/
message: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = AvailabilityData;
@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* Instances of AvailabilityData represent the result of executing an availability test.
*/
var AvailabilityData = (function (_super) {
__extends(AvailabilityData, _super);
function AvailabilityData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.properties = {};
_this.measurements = {};
return _this;
}
return AvailabilityData;
}(Domain));
module.exports = AvailabilityData;
//# sourceMappingURL=AvailabilityData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AvailabilityData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/AvailabilityData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AACpC,YAAY,CAAC;AAET;;GAEG;AACH;IAA+B,oCAAM;IAgDjC;QAAA,YAEI,iBAAO,SAKV;QAHG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,uBAAC;AAAD,CAAC,AAxDD,CAA+B,MAAM,GAwDpC;AACL,iBAAS,gBAAgB,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\n\"use strict\";\r\n \r\n /**\r\n * Instances of AvailabilityData represent the result of executing an availability test.\r\n */\r\n class AvailabilityData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.\r\n */\r\n public id: string;\r\n \r\n /**\r\n * Name of the test that these availability results represent.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\r\n */\r\n public duration: string;\r\n \r\n /**\r\n * Success flag.\r\n */\r\n public success: boolean;\r\n \r\n /**\r\n * Name of the location where the test was run from.\r\n */\r\n public runLocation: string;\r\n \r\n /**\r\n * Diagnostic message for the result.\r\n */\r\n public message: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = AvailabilityData;\r\n"]}
@@ -0,0 +1,11 @@
/**
* Data struct to contain only C section with custom fields.
*/
declare class Base {
/**
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
*/
baseType: string;
constructor();
}
export = Base;
@@ -0,0 +1,12 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
/**
* Data struct to contain only C section with custom fields.
*/
var Base = (function () {
function Base() {
}
return Base;
}());
module.exports = Base;
//# sourceMappingURL=Base.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/Base.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;AAET;;GAEG;AACH;IAQI;IAEA,CAAC;IACL,WAAC;AAAD,CAAC,AAXD,IAWC;AACL,iBAAS,IAAI,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\n \r\n /**\r\n * Data struct to contain only C section with custom fields.\r\n */\r\n class Base\r\n {\r\n \r\n /**\r\n * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.\r\n */\r\n public baseType: string;\r\n \r\n constructor()\r\n {\r\n }\r\n }\r\nexport = Base;\r\n"]}
@@ -0,0 +1,104 @@
declare class ContextTagKeys {
/**
* Application version. Information in the application context fields is always about the application that is sending the telemetry.
*/
applicationVersion: string;
/**
* Unique client device id. Computer name in most cases.
*/
deviceId: string;
/**
* Device locale using <language>-<REGION> pattern, following RFC 5646. Example 'en-US'.
*/
deviceLocale: string;
/**
* 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.
*/
deviceModel: string;
/**
* Client device OEM name taken from the browser.
*/
deviceOEMName: string;
/**
* 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'
*/
deviceOSVersion: string;
/**
* 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.
*/
deviceType: string;
/**
* 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.
*/
locationIp: string;
/**
* 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.
*/
operationId: string;
/**
* 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').
*/
operationName: string;
/**
* The unique identifier of the telemetry item's immediate parent.
*/
operationParentId: string;
/**
* 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.
*/
operationSyntheticSource: string;
/**
* The correlation vector is a light weight vector clock which can be used to identify and order related events across clients and services.
*/
operationCorrelationVector: string;
/**
* 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.
*/
sessionId: string;
/**
* Boolean value indicating whether the session identified by ai.session.id is first for the user or not.
*/
sessionIsFirst: string;
/**
* 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.
*/
userAccountId: string;
/**
* 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.
*/
userId: string;
/**
* 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.
*/
userAuthUserId: string;
/**
* Name of the role the application is a part of. For Azure environment, this should be initialized with
* [Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment]::CurrentRoleInstance.Role.Name
* See more details here: https://dzone.com/articles/accessing-azure-role-0
* It is recommended that you initialize environment variable with this value during machine startup, and then set context field from environment variable
* appInsights.client.context.tags[appInsights.client.context.keys.cloudRole] = process.env.RoleName
*/
cloudRole: string;
/**
* Name of the instance where the application is running. For Azure environment, this should be initialized with
* [Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment]::CurrentRoleInstance.Id
* See more details here: https://dzone.com/articles/accessing-azure-role-0
* It is recommended that you initialize environment variable with this value during machine startup, and then set context field from environment variable
* appInsights.client.context.tags[appInsights.client.context.keys.cloudRoleInstance] = process.env.RoleInstanceId
*/
cloudRoleInstance: string;
/**
* SDK version. See https://github.com/microsoft/ApplicationInsights-Home/blob/master/SDK-AUTHORING.md#sdk-version-specification for information.
*/
internalSdkVersion: string;
/**
* Agent version. Used to indicate the version of StatusMonitor installed on the computer if it is used for data collection.
*/
internalAgentVersion: string;
/**
* This is the node name used for billing purposes. Use it to override the standard detection of nodes.
*/
internalNodeName: string;
constructor();
}
export = ContextTagKeys;
@@ -0,0 +1,32 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
var ContextTagKeys = (function () {
function ContextTagKeys() {
this.applicationVersion = "ai.application.ver";
this.deviceId = "ai.device.id";
this.deviceLocale = "ai.device.locale";
this.deviceModel = "ai.device.model";
this.deviceOEMName = "ai.device.oemName";
this.deviceOSVersion = "ai.device.osVersion";
this.deviceType = "ai.device.type";
this.locationIp = "ai.location.ip";
this.operationId = "ai.operation.id";
this.operationName = "ai.operation.name";
this.operationParentId = "ai.operation.parentId";
this.operationSyntheticSource = "ai.operation.syntheticSource";
this.operationCorrelationVector = "ai.operation.correlationVector";
this.sessionId = "ai.session.id";
this.sessionIsFirst = "ai.session.isFirst";
this.userAccountId = "ai.user.accountId";
this.userId = "ai.user.id";
this.userAuthUserId = "ai.user.authUserId";
this.cloudRole = "ai.cloud.role";
this.cloudRoleInstance = "ai.cloud.roleInstance";
this.internalSdkVersion = "ai.internal.sdkVersion";
this.internalAgentVersion = "ai.internal.agentVersion";
this.internalNodeName = "ai.internal.nodeName";
}
return ContextTagKeys;
}());
module.exports = ContextTagKeys;
//# sourceMappingURL=ContextTagKeys.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,16 @@
import Base = require('./Base');
/**
* Data struct to contain both B and C sections.
*/
declare class Data<TDomain> extends Base {
/**
* Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.
*/
baseType: string;
/**
* Container for data item (B section).
*/
baseData: TDomain;
constructor();
}
export = Data;
@@ -0,0 +1,26 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Base = require("./Base");
"use strict";
/**
* Data struct to contain both B and C sections.
*/
var Data = (function (_super) {
__extends(Data, _super);
function Data() {
return _super.call(this) || this;
}
return Data;
}(Base));
module.exports = Data;
//# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/Data.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,6BAAgC;AAChC,YAAY,CAAC;AAET;;GAEG;AACH;IAA4B,wBAAI;IAa5B;eAEI,iBAAO;IAEX,CAAC;IACL,WAAC;AAAD,CAAC,AAlBD,CAA4B,IAAI,GAkB/B;AACL,iBAAS,IAAI,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Base = require('./Base');\r\n\"use strict\";\r\n \r\n /**\r\n * Data struct to contain both B and C sections.\r\n */\r\n class Data<TDomain> extends Base\r\n {\r\n \r\n /**\r\n * Name of item (B section) if any. If telemetry data is derived straight from this, this should be null.\r\n */\r\n public baseType: string;\r\n \r\n /**\r\n * Container for data item (B section).\r\n */\r\n public baseData: TDomain;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n }\r\n }\r\nexport = Data;\r\n"]}
@@ -0,0 +1,36 @@
import DataPointType = require('./DataPointType');
/**
* Metric data single measurement.
*/
declare class DataPoint {
/**
* Name of the metric.
*/
name: string;
/**
* Metric type. Single measurement or the aggregated value.
*/
kind: DataPointType;
/**
* Single value for measurement. Sum of individual measurements for the aggregation.
*/
value: number;
/**
* Metric weight of the aggregated metric. Should not be set for a measurement.
*/
count: number;
/**
* Minimum value of the aggregated metric. Should not be set for a measurement.
*/
min: number;
/**
* Maximum value of the aggregated metric. Should not be set for a measurement.
*/
max: number;
/**
* Standard deviation of the aggregated metric. Should not be set for a measurement.
*/
stdDev: number;
constructor();
}
export = DataPoint;
@@ -0,0 +1,15 @@
"use strict";
// THIS FILE WAS AUTOGENERATED
var DataPointType = require("./DataPointType");
"use strict";
/**
* Metric data single measurement.
*/
var DataPoint = (function () {
function DataPoint() {
this.kind = DataPointType.Measurement;
}
return DataPoint;
}());
module.exports = DataPoint;
//# sourceMappingURL=DataPoint.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DataPoint.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/DataPoint.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,+CAAkD;AAClD,YAAY,CAAC;AAET;;GAEG;AACH;IAsCI;QAEI,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,WAAW,CAAC;IAC1C,CAAC;IACL,gBAAC;AAAD,CAAC,AA1CD,IA0CC;AACL,iBAAS,SAAS,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport DataPointType = require('./DataPointType');\r\n\"use strict\";\r\n \r\n /**\r\n * Metric data single measurement.\r\n */\r\n class DataPoint\r\n {\r\n \r\n /**\r\n * Name of the metric.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * Metric type. Single measurement or the aggregated value.\r\n */\r\n public kind: DataPointType;\r\n \r\n /**\r\n * Single value for measurement. Sum of individual measurements for the aggregation.\r\n */\r\n public value: number;\r\n \r\n /**\r\n * Metric weight of the aggregated metric. Should not be set for a measurement.\r\n */\r\n public count: number;\r\n \r\n /**\r\n * Minimum value of the aggregated metric. Should not be set for a measurement.\r\n */\r\n public min: number;\r\n \r\n /**\r\n * Maximum value of the aggregated metric. Should not be set for a measurement.\r\n */\r\n public max: number;\r\n \r\n /**\r\n * Standard deviation of the aggregated metric. Should not be set for a measurement.\r\n */\r\n public stdDev: number;\r\n \r\n constructor()\r\n {\r\n this.kind = DataPointType.Measurement;\r\n }\r\n }\r\nexport = DataPoint;\r\n"]}
@@ -0,0 +1,8 @@
/**
* Type of the metric data measurement.
*/
declare enum DataPointType {
Measurement = 0,
Aggregation = 1,
}
export = DataPointType;
@@ -0,0 +1,12 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
/**
* Type of the metric data measurement.
*/
var DataPointType;
(function (DataPointType) {
DataPointType[DataPointType["Measurement"] = 0] = "Measurement";
DataPointType[DataPointType["Aggregation"] = 1] = "Aggregation";
})(DataPointType || (DataPointType = {}));
module.exports = DataPointType;
//# sourceMappingURL=DataPointType.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DataPointType.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/DataPointType.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;AAET;;GAEG;AACH,IAAK,aAIJ;AAJD,WAAK,aAAa;IAEd,+DAAe,CAAA;IACf,+DAAe,CAAA;AACnB,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AACL,iBAAS,aAAa,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\n \r\n /**\r\n * Type of the metric data measurement.\r\n */\r\n enum DataPointType\r\n {\r\n Measurement = 0,\r\n Aggregation = 1,\r\n }\r\nexport = DataPointType;\r\n"]}
@@ -0,0 +1,7 @@
/**
* The abstract common base of all domains.
*/
declare class Domain {
constructor();
}
export = Domain;
@@ -0,0 +1,12 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
/**
* The abstract common base of all domains.
*/
var Domain = (function () {
function Domain() {
}
return Domain;
}());
module.exports = Domain;
//# sourceMappingURL=Domain.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Domain.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/Domain.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;AAET;;GAEG;AACH;IAGI;IAEA,CAAC;IACL,aAAC;AAAD,CAAC,AAND,IAMC;AACL,iBAAS,MAAM,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\n \r\n /**\r\n * The abstract common base of all domains.\r\n */\r\n class Domain\r\n {\r\n \r\n constructor()\r\n {\r\n }\r\n }\r\nexport = Domain;\r\n"]}
@@ -0,0 +1,40 @@
import Base = require('./Base');
/**
* System variables for a telemetry item.
*/
declare class Envelope {
/**
* 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.
*/
ver: number;
/**
* Type name of telemetry data item.
*/
name: string;
/**
* 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.
*/
time: string;
/**
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
*/
sampleRate: number;
/**
* Sequence field used to track absolute order of uploaded events.
*/
seq: string;
/**
* 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.
*/
iKey: string;
/**
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
*/
tags: any;
/**
* Telemetry data item.
*/
data: Base;
constructor();
}
export = Envelope;
@@ -0,0 +1,14 @@
"use strict";
/**
* System variables for a telemetry item.
*/
var Envelope = (function () {
function Envelope() {
this.ver = 1;
this.sampleRate = 100.0;
this.tags = {};
}
return Envelope;
}());
module.exports = Envelope;
//# sourceMappingURL=Envelope.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Envelope.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/Envelope.ts"],"names":[],"mappings":"AAEA,YAAY,CAAC;AAET;;GAEG;AACH;IA2CI;QAEI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;IACnB,CAAC;IACL,eAAC;AAAD,CAAC,AAjDD,IAiDC;AACL,iBAAS,QAAQ,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Base = require('./Base');\r\n\"use strict\";\r\n \r\n /**\r\n * System variables for a telemetry item.\r\n */\r\n class Envelope\r\n {\r\n \r\n /**\r\n * 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.\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Type name of telemetry data item.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * 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.\r\n */\r\n public time: string;\r\n \r\n /**\r\n * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.\r\n */\r\n public sampleRate: number;\r\n \r\n /**\r\n * Sequence field used to track absolute order of uploaded events.\r\n */\r\n public seq: string;\r\n \r\n /**\r\n * 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.\r\n */\r\n public iKey: string;\r\n \r\n /**\r\n * Key/value collection of context properties. See ContextTagKeys for information on available properties.\r\n */\r\n public tags: any;\r\n \r\n /**\r\n * Telemetry data item.\r\n */\r\n public data: Base;\r\n \r\n constructor()\r\n {\r\n this.ver = 1;\r\n this.sampleRate = 100.0;\r\n this.tags = {};\r\n }\r\n }\r\nexport = Envelope;\r\n"]}
@@ -0,0 +1,24 @@
import Domain = require('./Domain');
/**
* 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.
*/
declare class EventData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
*/
name: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = EventData;
@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* 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.
*/
var EventData = (function (_super) {
__extends(EventData, _super);
function EventData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.properties = {};
_this.measurements = {};
return _this;
}
return EventData;
}(Domain));
module.exports = EventData;
//# sourceMappingURL=EventData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EventData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/EventData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AACpC,YAAY,CAAC;AAET;;GAEG;AACH;IAAwB,6BAAM;IAuB1B;QAAA,YAEI,iBAAO,SAKV;QAHG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,gBAAC;AAAD,CAAC,AA/BD,CAAwB,MAAM,GA+B7B;AACL,iBAAS,SAAS,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\n\"use strict\";\r\n \r\n /**\r\n * 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.\r\n */\r\n class EventData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Event name. Keep it low cardinality to allow proper grouping and useful metrics.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = EventData;\r\n"]}
@@ -0,0 +1,34 @@
import Domain = require('./Domain');
import ExceptionDetails = require('./ExceptionDetails');
import SeverityLevel = require('./SeverityLevel');
/**
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
*/
declare class ExceptionData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Exception chain - list of inner exceptions.
*/
exceptions: ExceptionDetails[];
/**
* Severity level. Mostly used to indicate exception severity level when it is reported by logging library.
*/
severityLevel: SeverityLevel;
/**
* Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack.
*/
problemId: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = ExceptionData;
@@ -0,0 +1,31 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.
*/
var ExceptionData = (function (_super) {
__extends(ExceptionData, _super);
function ExceptionData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.exceptions = [];
_this.properties = {};
_this.measurements = {};
return _this;
}
return ExceptionData;
}(Domain));
module.exports = ExceptionData;
//# sourceMappingURL=ExceptionData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ExceptionData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/ExceptionData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AAGpC,YAAY,CAAC;AAET;;GAEG;AACH;IAA4B,iCAAM;IAiC9B;QAAA,YAEI,iBAAO,SAMV;QAJG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,oBAAC;AAAD,CAAC,AA1CD,CAA4B,MAAM,GA0CjC;AACL,iBAAS,aAAa,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\nimport ExceptionDetails = require('./ExceptionDetails');\r\nimport SeverityLevel = require('./SeverityLevel');\r\n\"use strict\";\r\n \r\n /**\r\n * An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application.\r\n */\r\n class ExceptionData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Exception chain - list of inner exceptions.\r\n */\r\n public exceptions: ExceptionDetails[];\r\n \r\n /**\r\n * Severity level. Mostly used to indicate exception severity level when it is reported by logging library.\r\n */\r\n public severityLevel: SeverityLevel;\r\n \r\n /**\r\n * Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack.\r\n */\r\n public problemId: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.exceptions = [];\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = ExceptionData;\r\n"]}
@@ -0,0 +1,36 @@
import StackFrame = require('./StackFrame');
/**
* Exception details of the exception in a chain.
*/
declare class ExceptionDetails {
/**
* In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.
*/
id: number;
/**
* The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception
*/
outerId: number;
/**
* Exception type name.
*/
typeName: string;
/**
* Exception message.
*/
message: string;
/**
* Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.
*/
hasFullStack: boolean;
/**
* Text describing the stack. Either stack or parsedStack should have a value.
*/
stack: string;
/**
* List of stack frames. Either stack or parsedStack should have a value.
*/
parsedStack: StackFrame[];
constructor();
}
export = ExceptionDetails;
@@ -0,0 +1,13 @@
"use strict";
/**
* Exception details of the exception in a chain.
*/
var ExceptionDetails = (function () {
function ExceptionDetails() {
this.hasFullStack = true;
this.parsedStack = [];
}
return ExceptionDetails;
}());
module.exports = ExceptionDetails;
//# sourceMappingURL=ExceptionDetails.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ExceptionDetails.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/ExceptionDetails.ts"],"names":[],"mappings":"AAEA,YAAY,CAAC;AAET;;GAEG;AACH;IAsCI;QAEI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IAC1B,CAAC;IACL,uBAAC;AAAD,CAAC,AA3CD,IA2CC;AACL,iBAAS,gBAAgB,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport StackFrame = require('./StackFrame');\r\n\"use strict\";\r\n \r\n /**\r\n * Exception details of the exception in a chain.\r\n */\r\n class ExceptionDetails\r\n {\r\n \r\n /**\r\n * In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting.\r\n */\r\n public id: number;\r\n \r\n /**\r\n * The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception\r\n */\r\n public outerId: number;\r\n \r\n /**\r\n * Exception type name.\r\n */\r\n public typeName: string;\r\n \r\n /**\r\n * Exception message.\r\n */\r\n public message: string;\r\n \r\n /**\r\n * Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception.\r\n */\r\n public hasFullStack: boolean;\r\n \r\n /**\r\n * Text describing the stack. Either stack or parsedStack should have a value.\r\n */\r\n public stack: string;\r\n \r\n /**\r\n * List of stack frames. Either stack or parsedStack should have a value.\r\n */\r\n public parsedStack: StackFrame[];\r\n \r\n constructor()\r\n {\r\n this.hasFullStack = true;\r\n this.parsedStack = [];\r\n }\r\n }\r\nexport = ExceptionDetails;\r\n"]}
@@ -0,0 +1,25 @@
import Domain = require('./Domain');
import SeverityLevel = require('./SeverityLevel');
/**
* 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.
*/
declare class MessageData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Trace message
*/
message: string;
/**
* Trace severity level.
*/
severityLevel: SeverityLevel;
/**
* Collection of custom properties.
*/
properties: any;
constructor();
}
export = MessageData;
@@ -0,0 +1,29 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* 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.
*/
var MessageData = (function (_super) {
__extends(MessageData, _super);
function MessageData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.properties = {};
return _this;
}
return MessageData;
}(Domain));
module.exports = MessageData;
//# sourceMappingURL=MessageData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MessageData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/MessageData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AAEpC,YAAY,CAAC;AAET;;GAEG;AACH;IAA0B,+BAAM;IAuB5B;QAAA,YAEI,iBAAO,SAIV;QAFG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;;IACzB,CAAC;IACL,kBAAC;AAAD,CAAC,AA9BD,CAA0B,MAAM,GA8B/B;AACL,iBAAS,WAAW,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\nimport SeverityLevel = require('./SeverityLevel');\r\n\"use strict\";\r\n \r\n /**\r\n * 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.\r\n */\r\n class MessageData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Trace message\r\n */\r\n public message: string;\r\n \r\n /**\r\n * Trace severity level.\r\n */\r\n public severityLevel: SeverityLevel;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.properties = {};\r\n }\r\n }\r\nexport = MessageData;\r\n"]}
@@ -0,0 +1,21 @@
import Domain = require('./Domain');
import DataPoint = require('./DataPoint');
/**
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
*/
declare class MetricData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* 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.
*/
metrics: DataPoint[];
/**
* Collection of custom properties.
*/
properties: any;
constructor();
}
export = MetricData;
@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* An instance of the Metric item is a list of measurements (single data points) and/or aggregations.
*/
var MetricData = (function (_super) {
__extends(MetricData, _super);
function MetricData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.metrics = [];
_this.properties = {};
return _this;
}
return MetricData;
}(Domain));
module.exports = MetricData;
//# sourceMappingURL=MetricData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MetricData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/MetricData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AAEpC,YAAY,CAAC;AAET;;GAEG;AACH;IAAyB,8BAAM;IAkB3B;QAAA,YAEI,iBAAO,SAKV;QAHG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;;IACzB,CAAC;IACL,iBAAC;AAAD,CAAC,AA1BD,CAAyB,MAAM,GA0B9B;AACL,iBAAS,UAAU,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\nimport DataPoint = require('./DataPoint');\r\n\"use strict\";\r\n \r\n /**\r\n * An instance of the Metric item is a list of measurements (single data points) and/or aggregations.\r\n */\r\n class MetricData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * 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.\r\n */\r\n public metrics: DataPoint[];\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.metrics = [];\r\n this.properties = {};\r\n }\r\n }\r\nexport = MetricData;\r\n"]}
@@ -0,0 +1,32 @@
import EventData = require('./EventData');
/**
* An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
*/
declare class PageViewData extends EventData {
/**
* Schema version
*/
ver: number;
/**
* Request URL with all query string parameters
*/
url: string;
/**
* Event name. Keep it low cardinality to allow proper grouping and useful metrics.
*/
name: string;
/**
* 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.
*/
duration: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = PageViewData;
@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var EventData = require("./EventData");
"use strict";
/**
* An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.
*/
var PageViewData = (function (_super) {
__extends(PageViewData, _super);
function PageViewData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.properties = {};
_this.measurements = {};
return _this;
}
return PageViewData;
}(EventData));
module.exports = PageViewData;
//# sourceMappingURL=PageViewData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"PageViewData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/PageViewData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,uCAA0C;AAC1C,YAAY,CAAC;AAET;;GAEG;AACH;IAA2B,gCAAS;IAiChC;QAAA,YAEI,iBAAO,SAKV;QAHG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,mBAAC;AAAD,CAAC,AAzCD,CAA2B,SAAS,GAyCnC;AACL,iBAAS,YAAY,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport EventData = require('./EventData');\r\n\"use strict\";\r\n \r\n /**\r\n * An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView.\r\n */\r\n class PageViewData extends EventData\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Request URL with all query string parameters\r\n */\r\n public url: string;\r\n \r\n /**\r\n * Event name. Keep it low cardinality to allow proper grouping and useful metrics.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * 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.\r\n */\r\n public duration: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = PageViewData;\r\n"]}
@@ -0,0 +1,52 @@
import Domain = require('./Domain');
/**
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
*/
declare class RemoteDependencyData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.
*/
name: string;
/**
* Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.
*/
id: string;
/**
* Result code of a dependency call. Examples are SQL error code and HTTP status code.
*/
resultCode: string;
/**
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
*/
duration: string;
/**
* Indication of successfull or unsuccessfull call.
*/
success: boolean;
/**
* Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.
*/
data: string;
/**
* Target site of a dependency call. Examples are server name, host address.
*/
target: string;
/**
* 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.
*/
type: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = RemoteDependencyData;
@@ -0,0 +1,31 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.
*/
var RemoteDependencyData = (function (_super) {
__extends(RemoteDependencyData, _super);
function RemoteDependencyData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.success = true;
_this.properties = {};
_this.measurements = {};
return _this;
}
return RemoteDependencyData;
}(Domain));
module.exports = RemoteDependencyData;
//# sourceMappingURL=RemoteDependencyData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RemoteDependencyData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/RemoteDependencyData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AACpC,YAAY,CAAC;AAET;;GAEG;AACH;IAAmC,wCAAM;IA0DrC;QAAA,YAEI,iBAAO,SAMV;QAJG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,2BAAC;AAAD,CAAC,AAnED,CAAmC,MAAM,GAmExC;AACL,iBAAS,oBAAoB,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\n\"use strict\";\r\n \r\n /**\r\n * An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint.\r\n */\r\n class RemoteDependencyData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call.\r\n */\r\n public id: string;\r\n \r\n /**\r\n * Result code of a dependency call. Examples are SQL error code and HTTP status code.\r\n */\r\n public resultCode: string;\r\n \r\n /**\r\n * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\r\n */\r\n public duration: string;\r\n \r\n /**\r\n * Indication of successfull or unsuccessfull call.\r\n */\r\n public success: boolean;\r\n \r\n /**\r\n * Command initiated by this dependency call. Examples are SQL statement and HTTP URL's with all query parameters.\r\n */\r\n public data: string;\r\n \r\n /**\r\n * Target site of a dependency call. Examples are server name, host address.\r\n */\r\n public target: string;\r\n \r\n /**\r\n * 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.\r\n */\r\n public type: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.success = true;\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = RemoteDependencyData;\r\n"]}
@@ -0,0 +1,48 @@
import Domain = require('./Domain');
/**
* 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.
*/
declare class RequestData extends Domain {
/**
* Schema version
*/
ver: number;
/**
* Identifier of a request call instance. Used for correlation between request and other telemetry items.
*/
id: string;
/**
* Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.
*/
source: string;
/**
* 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}'.
*/
name: string;
/**
* Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.
*/
duration: string;
/**
* Result of a request execution. HTTP status code for HTTP requests.
*/
responseCode: string;
/**
* Indication of successfull or unsuccessfull call.
*/
success: boolean;
/**
* Request URL with all query string parameters.
*/
url: string;
/**
* Collection of custom properties.
*/
properties: any;
/**
* Collection of custom measurements.
*/
measurements: any;
constructor();
}
export = RequestData;
@@ -0,0 +1,30 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
// THIS FILE WAS AUTOGENERATED
var Domain = require("./Domain");
"use strict";
/**
* 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.
*/
var RequestData = (function (_super) {
__extends(RequestData, _super);
function RequestData() {
var _this = _super.call(this) || this;
_this.ver = 2;
_this.properties = {};
_this.measurements = {};
return _this;
}
return RequestData;
}(Domain));
module.exports = RequestData;
//# sourceMappingURL=RequestData.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RequestData.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/RequestData.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,8BAA8B;AAC9B,iCAAoC;AACpC,YAAY,CAAC;AAET;;GAEG;AACH;IAA0B,+BAAM;IAqD5B;QAAA,YAEI,iBAAO,SAKV;QAHG,KAAI,CAAC,GAAG,GAAG,CAAC,CAAC;QACb,KAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,KAAI,CAAC,YAAY,GAAG,EAAE,CAAC;;IAC3B,CAAC;IACL,kBAAC;AAAD,CAAC,AA7DD,CAA0B,MAAM,GA6D/B;AACL,iBAAS,WAAW,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\nimport Domain = require('./Domain');\r\n\"use strict\";\r\n \r\n /**\r\n * 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.\r\n */\r\n class RequestData extends Domain\r\n {\r\n \r\n /**\r\n * Schema version\r\n */\r\n public ver: number;\r\n \r\n /**\r\n * Identifier of a request call instance. Used for correlation between request and other telemetry items.\r\n */\r\n public id: string;\r\n \r\n /**\r\n * Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller.\r\n */\r\n public source: string;\r\n \r\n /**\r\n * 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}'.\r\n */\r\n public name: string;\r\n \r\n /**\r\n * Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days.\r\n */\r\n public duration: string;\r\n \r\n /**\r\n * Result of a request execution. HTTP status code for HTTP requests.\r\n */\r\n public responseCode: string;\r\n \r\n /**\r\n * Indication of successfull or unsuccessfull call.\r\n */\r\n public success: boolean;\r\n \r\n /**\r\n * Request URL with all query string parameters.\r\n */\r\n public url: string;\r\n \r\n /**\r\n * Collection of custom properties.\r\n */\r\n public properties: any;\r\n \r\n /**\r\n * Collection of custom measurements.\r\n */\r\n public measurements: any;\r\n \r\n constructor()\r\n {\r\n super();\r\n \r\n this.ver = 2;\r\n this.properties = {};\r\n this.measurements = {};\r\n }\r\n }\r\nexport = RequestData;\r\n"]}
@@ -0,0 +1,11 @@
/**
* Defines the level of severity for the event.
*/
declare enum SeverityLevel {
Verbose = 0,
Information = 1,
Warning = 2,
Error = 3,
Critical = 4,
}
export = SeverityLevel;
@@ -0,0 +1,15 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
/**
* Defines the level of severity for the event.
*/
var SeverityLevel;
(function (SeverityLevel) {
SeverityLevel[SeverityLevel["Verbose"] = 0] = "Verbose";
SeverityLevel[SeverityLevel["Information"] = 1] = "Information";
SeverityLevel[SeverityLevel["Warning"] = 2] = "Warning";
SeverityLevel[SeverityLevel["Error"] = 3] = "Error";
SeverityLevel[SeverityLevel["Critical"] = 4] = "Critical";
})(SeverityLevel || (SeverityLevel = {}));
module.exports = SeverityLevel;
//# sourceMappingURL=SeverityLevel.js.map
@@ -0,0 +1 @@
{"version":3,"file":"SeverityLevel.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/SeverityLevel.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;AAET;;GAEG;AACH,IAAK,aAOJ;AAPD,WAAK,aAAa;IAEd,uDAAW,CAAA;IACX,+DAAe,CAAA;IACf,uDAAW,CAAA;IACX,mDAAS,CAAA;IACT,yDAAY,CAAA;AAChB,CAAC,EAPI,aAAa,KAAb,aAAa,QAOjB;AACL,iBAAS,aAAa,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\n \r\n /**\r\n * Defines the level of severity for the event.\r\n */\r\n enum SeverityLevel\r\n {\r\n Verbose = 0,\r\n Information = 1,\r\n Warning = 2,\r\n Error = 3,\r\n Critical = 4,\r\n }\r\nexport = SeverityLevel;\r\n"]}
@@ -0,0 +1,27 @@
/**
* Stack frame information.
*/
declare class StackFrame {
/**
* Level in the call stack. For the long stacks SDK may not report every function in a call stack.
*/
level: number;
/**
* Method name.
*/
method: string;
/**
* Name of the assembly (dll, jar, etc.) containing this function.
*/
assembly: string;
/**
* File name or URL of the method implementation.
*/
fileName: string;
/**
* Line number of the code implementation.
*/
line: number;
constructor();
}
export = StackFrame;
@@ -0,0 +1,12 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
/**
* Stack frame information.
*/
var StackFrame = (function () {
function StackFrame() {
}
return StackFrame;
}());
module.exports = StackFrame;
//# sourceMappingURL=StackFrame.js.map
@@ -0,0 +1 @@
{"version":3,"file":"StackFrame.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/StackFrame.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;AAET;;GAEG;AACH;IA4BI;IAEA,CAAC;IACL,iBAAC;AAAD,CAAC,AA/BD,IA+BC;AACL,iBAAS,UAAU,CAAC","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\n \r\n /**\r\n * Stack frame information.\r\n */\r\n class StackFrame\r\n {\r\n \r\n /**\r\n * Level in the call stack. For the long stacks SDK may not report every function in a call stack.\r\n */\r\n public level: number;\r\n \r\n /**\r\n * Method name.\r\n */\r\n public method: string;\r\n \r\n /**\r\n * Name of the assembly (dll, jar, etc.) containing this function.\r\n */\r\n public assembly: string;\r\n \r\n /**\r\n * File name or URL of the method implementation.\r\n */\r\n public fileName: string;\r\n \r\n /**\r\n * Line number of the code implementation.\r\n */\r\n public line: number;\r\n \r\n constructor()\r\n {\r\n }\r\n }\r\nexport = StackFrame;\r\n"]}
@@ -0,0 +1,18 @@
export import AvailabilityData = require("./AvailabilityData");
export import Base = require("./Base");
export import ContextTagKeys = require("./ContextTagKeys");
export import Data = require("./Data");
export import DataPoint = require("./DataPoint");
export import DataPointType = require("./DataPointType");
export import Domain = require("./Domain");
export import Envelope = require("./Envelope");
export import EventData = require("./EventData");
export import ExceptionData = require("./ExceptionData");
export import ExceptionDetails = require("./ExceptionDetails");
export import MessageData = require("./MessageData");
export import MetricData = require("./MetricData");
export import PageViewData = require("./PageViewData");
export import RemoteDependencyData = require("./RemoteDependencyData");
export import RequestData = require("./RequestData");
export import SeverityLevel = require("./SeverityLevel");
export import StackFrame = require("./StackFrame");
@@ -0,0 +1,22 @@
// THIS FILE WAS AUTOGENERATED
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AvailabilityData = require("./AvailabilityData");
exports.Base = require("./Base");
exports.ContextTagKeys = require("./ContextTagKeys");
exports.Data = require("./Data");
exports.DataPoint = require("./DataPoint");
exports.DataPointType = require("./DataPointType");
exports.Domain = require("./Domain");
exports.Envelope = require("./Envelope");
exports.EventData = require("./EventData");
exports.ExceptionData = require("./ExceptionData");
exports.ExceptionDetails = require("./ExceptionDetails");
exports.MessageData = require("./MessageData");
exports.MetricData = require("./MetricData");
exports.PageViewData = require("./PageViewData");
exports.RemoteDependencyData = require("./RemoteDependencyData");
exports.RequestData = require("./RequestData");
exports.SeverityLevel = require("./SeverityLevel");
exports.StackFrame = require("./StackFrame");
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/Generated/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,YAAY,CAAC;;AACb,yDAA+D;AAC/D,iCAAuC;AACvC,qDAA2D;AAC3D,iCAAuC;AACvC,2CAAiD;AACjD,mDAAyD;AACzD,qCAA2C;AAC3C,yCAA+C;AAC/C,2CAAiD;AACjD,mDAAyD;AACzD,yDAA+D;AAC/D,+CAAqD;AACrD,6CAAmD;AACnD,iDAAuD;AACvD,iEAAuE;AACvE,+CAAqD;AACrD,mDAAyD;AACzD,6CAAmD","sourcesContent":["// THIS FILE WAS AUTOGENERATED\r\n\"use strict\";\r\nexport import AvailabilityData = require(\"./AvailabilityData\");\r\nexport import Base = require(\"./Base\");\r\nexport import ContextTagKeys = require(\"./ContextTagKeys\");\r\nexport import Data = require(\"./Data\");\r\nexport import DataPoint = require(\"./DataPoint\");\r\nexport import DataPointType = require(\"./DataPointType\");\r\nexport import Domain = require(\"./Domain\");\r\nexport import Envelope = require(\"./Envelope\");\r\nexport import EventData = require(\"./EventData\");\r\nexport import ExceptionData = require(\"./ExceptionData\");\r\nexport import ExceptionDetails = require(\"./ExceptionDetails\");\r\nexport import MessageData = require(\"./MessageData\");\r\nexport import MetricData = require(\"./MetricData\");\r\nexport import PageViewData = require(\"./PageViewData\");\r\nexport import RemoteDependencyData = require(\"./RemoteDependencyData\");\r\nexport import RequestData = require(\"./RequestData\");\r\nexport import SeverityLevel = require(\"./SeverityLevel\");\r\nexport import StackFrame = require(\"./StackFrame\");\r\n"]}
@@ -0,0 +1,11 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface DependencyDocumentQuickPulse extends DocumentQuickPulse {
Name: string;
Target: string;
Success?: boolean;
Duration: string;
ResultCode: string;
CommandName: string;
DependencyTypeName: string;
OperationName: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DependencyDocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DependencyDocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/DependencyDocumentQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\n\r\nexport interface DependencyDocumentQuickPulse extends DocumentQuickPulse {\r\n Name: string;\r\n Target: string;\r\n Success?: boolean;\r\n Duration: string;\r\n ResultCode: string,\r\n CommandName: string;\r\n DependencyTypeName: string;\r\n OperationName: string;\r\n}\r\n"]}
@@ -0,0 +1,11 @@
export interface DocumentQuickPulse {
__type: string;
DocumentType: string;
Version: string;
OperationId: string;
Properties: IDocumentProperty[];
}
export interface IDocumentProperty {
key: string;
value: string;
}
@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
//# sourceMappingURL=DocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/DocumentQuickPulse.ts"],"names":[],"mappings":";;AAeC,CAAC","sourcesContent":["export interface DocumentQuickPulse {\r\n __type: string;\r\n\r\n DocumentType: string;\r\n\r\n Version: string;\r\n\r\n OperationId: string;\r\n\r\n Properties: IDocumentProperty[];\r\n}\r\n\r\nexport interface IDocumentProperty {\r\n key: string;\r\n value: string;\r\n};"]}
@@ -0,0 +1,13 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
import { MetricQuickPulse } from "./MetricQuickPulse";
export interface EnvelopeQuickPulse {
Documents: DocumentQuickPulse[];
Instance: string;
InstrumentationKey: string;
InvariantVersion: number;
MachineName: string;
Metrics: MetricQuickPulse[];
StreamId: string;
Timestamp: string;
Version: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EnvelopeQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EnvelopeQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/EnvelopeQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\nimport { MetricQuickPulse } from \"./MetricQuickPulse\";\r\n\r\nexport interface EnvelopeQuickPulse {\r\n Documents: DocumentQuickPulse[];\r\n\r\n Instance: string;\r\n\r\n InstrumentationKey: string;\r\n\r\n InvariantVersion: number;\r\n\r\n MachineName: string;\r\n\r\n Metrics: MetricQuickPulse[];\r\n\r\n StreamId: string;\r\n\r\n Timestamp: string;\r\n\r\n Version: string;\r\n}\r\n"]}
@@ -0,0 +1,4 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface EventDocumentQuickPulse extends DocumentQuickPulse {
Name: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EventDocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EventDocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/EventDocumentQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\n\r\nexport interface EventDocumentQuickPulse extends DocumentQuickPulse {\r\n Name: string;\r\n}\r\n"]}
@@ -0,0 +1,6 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface ExceptionDocumentQuickPulse extends DocumentQuickPulse {
Exception: string;
ExceptionMessage: string;
ExceptionType: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ExceptionDocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ExceptionDocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/ExceptionDocumentQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\n\r\nexport interface ExceptionDocumentQuickPulse extends DocumentQuickPulse {\r\n Exception: string;\r\n ExceptionMessage: string;\r\n ExceptionType: string;\r\n}\r\n"]}
@@ -0,0 +1,5 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface MessageDocumentQuickPulse extends DocumentQuickPulse {
Message: string;
SeverityLevel: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MessageDocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MessageDocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/MessageDocumentQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\n\r\nexport interface MessageDocumentQuickPulse extends DocumentQuickPulse {\r\n Message: string;\r\n SeverityLevel: string;\r\n}\r\n"]}
@@ -0,0 +1,5 @@
export interface MetricQuickPulse {
Name: string;
Value: number;
Weight: number;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=MetricQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"MetricQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/MetricQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["export interface MetricQuickPulse {\r\n Name: string;\r\n\r\n Value: number;\r\n\r\n Weight: number;\r\n}\r\n"]}
@@ -0,0 +1,8 @@
import { DocumentQuickPulse } from "./DocumentQuickPulse";
export interface RequestDocumentQuickPulse extends DocumentQuickPulse {
Name: string;
Success?: boolean;
Duration: string;
ResponseCode: string;
OperationName: string;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=RequestDocumentQuickPulse.js.map
@@ -0,0 +1 @@
{"version":3,"file":"RequestDocumentQuickPulse.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/RequestDocumentQuickPulse.ts"],"names":[],"mappings":"","sourcesContent":["import { DocumentQuickPulse } from \"./DocumentQuickPulse\";\r\n\r\nexport interface RequestDocumentQuickPulse extends DocumentQuickPulse {\r\n Name: string;\r\n Success?: boolean;\r\n Duration: string;\r\n ResponseCode: string,\r\n OperationName: string;\r\n}\r\n"]}
@@ -0,0 +1,8 @@
export * from "./MetricQuickPulse";
export * from "./EnvelopeQuickPulse";
export * from "./DocumentQuickPulse";
export * from "./ExceptionDocumentQuickPulse";
export * from "./MessageDocumentQuickPulse";
export * from "./DependencyDocumentQuickPulse";
export * from "./RequestDocumentQuickPulse";
export * from "./EventDocumentQuickPulse";
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/QuickPulseTypes/index.ts"],"names":[],"mappings":"","sourcesContent":["export * from \"./MetricQuickPulse\";\r\nexport * from \"./EnvelopeQuickPulse\";\r\nexport * from \"./DocumentQuickPulse\";\r\nexport * from \"./ExceptionDocumentQuickPulse\";\r\nexport * from \"./MessageDocumentQuickPulse\";\r\nexport * from \"./DependencyDocumentQuickPulse\";\r\nexport * from \"./RequestDocumentQuickPulse\";\r\nexport * from \"./EventDocumentQuickPulse\";\r\n"]}
@@ -0,0 +1,36 @@
import { Telemetry } from "./Telemetry";
/**
* Telemetry type used for availability web test results.
*/
export interface AvailabilityTelemetry extends Telemetry {
/**
* Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.
*/
id: string;
/**
* Name of the test that these availability results represent.
*/
name: string;
/**
* Request duration in ms
*/
duration: number;
/**
* Success flag.
*/
success: boolean;
/**
* Name of the location where the test was run from.
*/
runLocation: string;
/**
* Diagnostic message for the result.
*/
message: string;
/**
* Metrics associated with this event, displayed in Metrics Explorer on the portal.
*/
measurements?: {
[key: string]: number;
};
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=AvailabilityTelemetry.js.map
@@ -0,0 +1 @@
{"version":3,"file":"AvailabilityTelemetry.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/TelemetryTypes/AvailabilityTelemetry.ts"],"names":[],"mappings":"","sourcesContent":["import { Telemetry } from \"./Telemetry\";\r\n\r\n/**\r\n * Telemetry type used for availability web test results.\r\n */\r\nexport interface AvailabilityTelemetry extends Telemetry {\r\n\r\n /**\r\n * Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service.\r\n */\r\n id: string;\r\n\r\n /**\r\n * Name of the test that these availability results represent.\r\n */\r\n name: string;\r\n\r\n /**\r\n * Request duration in ms\r\n */\r\n duration: number;\r\n\r\n /**\r\n * Success flag.\r\n */\r\n success: boolean;\r\n\r\n /**\r\n * Name of the location where the test was run from.\r\n */\r\n runLocation: string;\r\n\r\n /**\r\n * Diagnostic message for the result.\r\n */\r\n message: string;\r\n\r\n /**\r\n * Metrics associated with this event, displayed in Metrics Explorer on the portal.\r\n */\r\n measurements?: { [key: string]: number; };\r\n}"]}
@@ -0,0 +1,36 @@
import { Telemetry } from "./Telemetry";
/**
* Telemetry about the call to remote component
*/
export interface DependencyTelemetry extends Telemetry {
/**
* Type name of the telemetry, such as HTTP of SQL
*/
dependencyTypeName: string;
/**
* Remote component general target information
* If left empty, this will be prepopulated with an extracted hostname from the data field, if it is a url.
* This prepopulation happens when calling `trackDependency`. Use `track` directly to avoid this behavior.
*/
target?: string;
/**
* Remote call name
*/
name: string;
/**
* Remote call data. This is the most detailed information about the call, such as full URL or SQL statement
*/
data: string;
/**
* Remote call duration in ms
*/
duration: number;
/**
* Result code returned form the remote component. This is domain specific and can be HTTP status code or SQL result code
*/
resultCode: string | number;
/**
* True if remote call was successful, false otherwise
*/
success: boolean;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=DependencyTelemetry.js.map
@@ -0,0 +1 @@
{"version":3,"file":"DependencyTelemetry.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/TelemetryTypes/DependencyTelemetry.ts"],"names":[],"mappings":"","sourcesContent":["import { Telemetry } from \"./Telemetry\";\r\n\r\n/**\r\n * Telemetry about the call to remote component\r\n */\r\nexport interface DependencyTelemetry extends Telemetry {\r\n /**\r\n * Type name of the telemetry, such as HTTP of SQL\r\n */\r\n dependencyTypeName: string;\r\n\r\n /**\r\n * Remote component general target information\r\n * If left empty, this will be prepopulated with an extracted hostname from the data field, if it is a url.\r\n * This prepopulation happens when calling `trackDependency`. Use `track` directly to avoid this behavior.\r\n */\r\n target?: string;\r\n\r\n /**\r\n * Remote call name\r\n */\r\n name: string;\r\n\r\n /**\r\n * Remote call data. This is the most detailed information about the call, such as full URL or SQL statement\r\n */\r\n data: string;\r\n\r\n /**\r\n * Remote call duration in ms\r\n */\r\n duration: number;\r\n\r\n /**\r\n * Result code returned form the remote component. This is domain specific and can be HTTP status code or SQL result code\r\n */\r\n resultCode: string | number;\r\n\r\n /**\r\n * True if remote call was successful, false otherwise\r\n */\r\n success: boolean;\r\n}"]}
@@ -0,0 +1,58 @@
/**
* Telemetry Envelope
*/
export interface EnvelopeTelemetry {
/**
* 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.
*/
ver: number;
/**
* Type name of telemetry data item.
*/
name: string;
/**
* 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.
*/
time: string;
/**
* Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
*/
sampleRate: number;
/**
* Sequence field used to track absolute order of uploaded events.
*/
seq: string;
/**
* 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.
*/
iKey: string;
/**
* Key/value collection of context properties. See ContextTagKeys for information on available properties.
*/
tags: Tags & Tags[];
/**
* Part B Data
*/
data: DataTelemetry;
}
/**
* Envelope Data
*/
export interface DataTelemetry {
/**
* Telemetry type used for part B
*/
baseType: string;
/**
* Based on schema for part B
*/
baseData?: {
[key: string]: any;
};
}
/**
* Envelope Tags
*/
export interface Tags {
[key: string]: any;
}
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=EnvelopeTelemetry.js.map
@@ -0,0 +1 @@
{"version":3,"file":"EnvelopeTelemetry.js","sourceRoot":"","sources":["../../../../Declarations/Contracts/TelemetryTypes/EnvelopeTelemetry.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * Telemetry Envelope\r\n */\r\nexport interface EnvelopeTelemetry {\r\n /**\r\n * 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.\r\n */\r\n ver: number;\r\n /**\r\n * Type name of telemetry data item.\r\n */\r\n name: string;\r\n\r\n /**\r\n * 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.\r\n */\r\n time: string;\r\n\r\n /**\r\n * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.\r\n */\r\n sampleRate: number;\r\n\r\n /**\r\n * Sequence field used to track absolute order of uploaded events.\r\n */\r\n seq: string;\r\n\r\n /**\r\n * 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.\r\n */\r\n iKey: string;\r\n\r\n /**\r\n * Key/value collection of context properties. See ContextTagKeys for information on available properties.\r\n */\r\n tags: Tags & Tags[];\r\n /**\r\n * Part B Data\r\n */\r\n data: DataTelemetry;\r\n\r\n}\r\n\r\n/**\r\n * Envelope Data\r\n */\r\nexport interface DataTelemetry {\r\n /**\r\n * Telemetry type used for part B\r\n */\r\n baseType: string;\r\n /**\r\n * Based on schema for part B\r\n */\r\n baseData?: {\r\n [key: string]: any;\r\n };\r\n}\r\n\r\n/**\r\n * Envelope Tags\r\n */\r\nexport interface Tags {\r\n [key: string]: any;\r\n}\r\n"]}
@@ -0,0 +1,17 @@
import { Telemetry } from "./Telemetry";
/**
* Telemetry about the custom event of interest, such application workflow event, business logic event (purchase) and anything that
* you would like to track and aggregate by count. Event can contain measurements such as purchase amount associated with purchase event
*/
export interface EventTelemetry extends Telemetry {
/**
* Name of the event
*/
name: string;
/**
* Metrics associated with this event, displayed in Metrics Explorer on the portal.
*/
measurements?: {
[key: string]: number;
};
}

Some files were not shown because too many files have changed in this diff Show More