From 1c8a7cebf11fde90657f782c3c5e5ca4fd304c9b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Fri, 30 Jun 2023 10:42:46 -0500 Subject: [PATCH] Remove deprecated package @azure/applicationinsights-query (#26352) ### Packages impacted by this PR `@azure/applicationinsights-query` ### Issues associated with this PR https://github.com/Azure/azure-sdk-for-js/issues/25726 ### Describe the problem that is addressed by this PR This package has been deprecated and replaced with `@azure/monitor-query` --- .../applicationinsights-query/LICENSE.txt | 21 - .../applicationinsights-query/README.md | 117 - .../applicationinsights-query/package.json | 55 - .../rollup.config.js | 31 - .../src/applicationInsightsDataClient.ts | 44 - .../applicationInsightsDataClientContext.ts | 45 - .../src/models/eventsMappers.ts | 51 - .../src/models/index.ts | 2085 ----------------- .../src/models/mappers.ts | 1767 -------------- .../src/models/metricsMappers.ts | 23 - .../src/models/parameters.ts | 262 --- .../src/models/queryMappers.ts | 21 - .../src/operations/events.ts | 182 -- .../src/operations/index.ts | 13 - .../src/operations/metrics.ts | 263 --- .../src/operations/query.ts | 95 - .../applicationinsights-query/tsconfig.json | 19 - 17 files changed, 5094 deletions(-) delete mode 100644 sdk/applicationinsights/applicationinsights-query/LICENSE.txt delete mode 100644 sdk/applicationinsights/applicationinsights-query/README.md delete mode 100644 sdk/applicationinsights/applicationinsights-query/package.json delete mode 100644 sdk/applicationinsights/applicationinsights-query/rollup.config.js delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClient.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClientContext.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/eventsMappers.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/index.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/mappers.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/metricsMappers.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/parameters.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/models/queryMappers.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/operations/events.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/operations/index.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/operations/metrics.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/src/operations/query.ts delete mode 100644 sdk/applicationinsights/applicationinsights-query/tsconfig.json diff --git a/sdk/applicationinsights/applicationinsights-query/LICENSE.txt b/sdk/applicationinsights/applicationinsights-query/LICENSE.txt deleted file mode 100644 index a70e8cf66038..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/sdk/applicationinsights/applicationinsights-query/README.md b/sdk/applicationinsights/applicationinsights-query/README.md deleted file mode 100644 index 330ed5895867..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/README.md +++ /dev/null @@ -1,117 +0,0 @@ -## An isomorphic javascript sdk for - ApplicationInsightsDataClient - -This package contains an isomorphic SDK for ApplicationInsightsDataClient. - -### Currently supported environments - -- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) -- Latest versions of Safari, Chrome, Edge, and Firefox. - -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - -### How to Install - -``` -npm install @azure/applicationinsights-query -``` - -### How to use - -#### nodejs - Authentication, client creation and get metrics as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -``` -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```ts -import * as msRest from "@azure/ms-rest-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ApplicationInsightsDataClient, ApplicationInsightsDataModels, ApplicationInsightsDataMappers } from "@azure/applicationinsights-query"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new ApplicationInsightsDataClient(creds, subscriptionId); - const appId = "testappId"; - const metricId = "requests/count"; - const timespan = "testtimespan"; - const interval = "P1Y2M3DT4H5M6S"; - const aggregation = ["min"]; - const segment = ["applicationBuild"]; - const top = 1; - const orderby = "testorderby"; - const filter = "testfilter"; - client.metrics.get(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and get metrics as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -``` -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/applicationinsights-query sample - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fapplicationinsights%2Fapplicationinsights-query%2FREADME.png) diff --git a/sdk/applicationinsights/applicationinsights-query/package.json b/sdk/applicationinsights/applicationinsights-query/package.json deleted file mode 100644 index 4856d2a660ac..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "@azure/applicationinsights-query", - "author": "Microsoft Corporation", - "description": "ApplicationInsightsDataClient Library with typescript type definitions for node.js and browser.", - "version": "1.1.0", - "dependencies": { - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "license": "MIT", - "main": "./dist/applicationinsights-query.js", - "module": "./esm/applicationInsightsDataClient.js", - "types": "./esm/applicationInsightsDataClient.d.ts", - "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" - }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/applicationinsights/applicationinsights-query", - "repository": { - "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" - }, - "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" - }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", - "src/**/*.ts", - "rollup.config.js", - "tsconfig.json" - ], - "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/applicationinsights-query.js.map'\" -o ./dist/applicationinsights-query.min.js ./dist/applicationinsights-query.js", - "prepack": "npm install && npm run build" - }, - "sideEffects": false, - "autoPublish": true -} diff --git a/sdk/applicationinsights/applicationinsights-query/rollup.config.js b/sdk/applicationinsights/applicationinsights-query/rollup.config.js deleted file mode 100644 index 85ed89401a88..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/rollup.config.js +++ /dev/null @@ -1,31 +0,0 @@ -import nodeResolve from "rollup-plugin-node-resolve"; -/** - * @type {import('rollup').RollupFileOptions} - */ -const config = { - input: './esm/applicationInsightsDataClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], - output: { - file: "./dist/applicationinsights-query.js", - format: "umd", - name: "Azure.ApplicationinsightsQuery", - sourcemap: true, - globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" - }, - banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */` - }, - plugins: [ - nodeResolve({ module: true }) - ] -}; -export default config; diff --git a/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClient.ts b/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClient.ts deleted file mode 100644 index df88350debaa..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClient.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; -import * as operations from "./operations"; -import { ApplicationInsightsDataClientContext } from "./applicationInsightsDataClientContext"; - -class ApplicationInsightsDataClient extends ApplicationInsightsDataClientContext { - // Operation groups - metrics: operations.Metrics; - events: operations.Events; - query: operations.Query; - - /** - * Initializes a new instance of the ApplicationInsightsDataClient class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param [options] The parameter options - */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ApplicationInsightsDataClientOptions) { - super(credentials, options); - this.metrics = new operations.Metrics(this); - this.events = new operations.Events(this); - this.query = new operations.Query(this); - } -} - -// Operation Specifications - -export { - ApplicationInsightsDataClient, - ApplicationInsightsDataClientContext, - Models as ApplicationInsightsDataModels, - Mappers as ApplicationInsightsDataMappers -}; -export * from "./operations"; diff --git a/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClientContext.ts b/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClientContext.ts deleted file mode 100644 index 490c2684263f..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/applicationInsightsDataClientContext.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "./models"; - -const packageName = "@azure/applicationinsights-query"; -const packageVersion = "0.1.0"; - -export class ApplicationInsightsDataClientContext extends msRest.ServiceClient { - credentials: msRest.ServiceClientCredentials; - - /** - * Initializes a new instance of the ApplicationInsightsDataClientContext class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param [options] The parameter options - */ - constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ApplicationInsightsDataClientOptions) { - if (credentials === null || credentials === undefined) { - throw new Error('\'credentials\' cannot be null.'); - } - - if (!options) { - options = {}; - } - if(!options.userAgent) { - const defaultUserAgent = msRest.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - - super(credentials, options); - - this.baseUri = options.baseUri || this.baseUri || "https://api.applicationinsights.io"; - this.requestContentType = "application/json; charset=utf-8"; - this.credentials = credentials; - - } -} diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/eventsMappers.ts b/sdk/applicationinsights/applicationinsights-query/src/models/eventsMappers.ts deleted file mode 100644 index 57883403a86f..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/eventsMappers.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -export { - discriminators, - EventsResults, - ErrorInfo, - ErrorDetail, - EventsResultData, - EventsResultDataCustomDimensions, - EventsResultDataCustomMeasurements, - EventsOperationInfo, - EventsSessionInfo, - EventsUserInfo, - EventsCloudInfo, - EventsAiInfo, - EventsApplicationInfo, - EventsClientInfo, - ErrorResponse, - EventsTraceResult, - EventsTraceInfo, - EventsCustomEventResult, - EventsCustomEventInfo, - EventsPageViewResult, - EventsPageViewInfo, - EventsBrowserTimingResult, - EventsBrowserTimingInfo, - EventsClientPerformanceInfo, - EventsRequestResult, - EventsRequestInfo, - EventsDependencyResult, - EventsDependencyInfo, - EventsExceptionResult, - EventsExceptionInfo, - EventsExceptionDetail, - EventsExceptionDetailsParsedStack, - EventsAvailabilityResultResult, - EventsAvailabilityResultInfo, - EventsPerformanceCounterResult, - EventsPerformanceCounterInfo, - EventsCustomMetricResult, - EventsCustomMetricInfo -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/index.ts b/sdk/applicationinsights/applicationinsights-query/src/models/index.ts deleted file mode 100644 index 50135f90faa0..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/index.ts +++ /dev/null @@ -1,2085 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import { ServiceClientOptions } from "@azure/ms-rest-js"; -import * as msRest from "@azure/ms-rest-js"; - - -/** - * @interface - * An interface representing MetricsPostBodySchemaParameters. - * The parameters for a single metrics query - * - */ -export interface MetricsPostBodySchemaParameters { - /** - * @member {MetricId} metricId Possible values include: 'requests/count', - * 'requests/duration', 'requests/failed', 'users/count', - * 'users/authenticated', 'pageViews/count', 'pageViews/duration', - * 'client/processingDuration', 'client/receiveDuration', - * 'client/networkDuration', 'client/sendDuration', 'client/totalDuration', - * 'dependencies/count', 'dependencies/failed', 'dependencies/duration', - * 'exceptions/count', 'exceptions/browser', 'exceptions/server', - * 'sessions/count', 'performanceCounters/requestExecutionTime', - * 'performanceCounters/requestsPerSecond', - * 'performanceCounters/requestsInQueue', - * 'performanceCounters/memoryAvailableBytes', - * 'performanceCounters/exceptionsPerSecond', - * 'performanceCounters/processCpuPercentage', - * 'performanceCounters/processIOBytesPerSecond', - * 'performanceCounters/processPrivateBytes', - * 'performanceCounters/processorCpuPercentage', - * 'availabilityResults/availabilityPercentage', - * 'availabilityResults/duration', 'billing/telemetryCount', - * 'customEvents/count' - */ - metricId: MetricId; - /** - * @member {string} [timespan] - */ - timespan?: string; - /** - * @member {MetricsAggregation[]} [aggregation] - */ - aggregation?: MetricsAggregation[]; - /** - * @member {string} [interval] - */ - interval?: string; - /** - * @member {MetricsSegment[]} [segment] - */ - segment?: MetricsSegment[]; - /** - * @member {number} [top] - */ - top?: number; - /** - * @member {string} [orderby] - */ - orderby?: string; - /** - * @member {string} [filter] - */ - filter?: string; -} - -/** - * @interface - * An interface representing MetricsPostBodySchema. - * A metric request - * - */ -export interface MetricsPostBodySchema { - /** - * @member {string} id An identifier for this query. Must be unique within - * the post body of the request. This identifier will be the 'id' property - * of the response object representing this query. - */ - id: string; - /** - * @member {MetricsPostBodySchemaParameters} parameters The parameters for a - * single metrics query - */ - parameters: MetricsPostBodySchemaParameters; -} - -/** - * @interface - * An interface representing MetricsSegmentInfo. - * A metric segment - * - */ -export interface MetricsSegmentInfo { - /** - * @member {Date} [start] Start time of the metric segment (only when an - * interval was specified). - */ - start?: Date; - /** - * @member {Date} [end] Start time of the metric segment (only when an - * interval was specified). - */ - end?: Date; - /** - * @member {MetricsSegmentInfo[]} [segments] Segmented metric data (if - * further segmented). - */ - segments?: MetricsSegmentInfo[]; - /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. - */ - [property: string]: any; -} - -/** - * @interface - * An interface representing MetricsResultInfo. - * A metric result data. - * - */ -export interface MetricsResultInfo { - /** - * @member {Date} [start] Start time of the metric. - */ - start?: Date; - /** - * @member {Date} [end] Start time of the metric. - */ - end?: Date; - /** - * @member {string} [interval] The interval used to segment the metric data. - */ - interval?: string; - /** - * @member {MetricsSegmentInfo[]} [segments] Segmented metric data (if - * segmented). - */ - segments?: MetricsSegmentInfo[]; - /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. - */ - [property: string]: any; -} - -/** - * @interface - * An interface representing MetricsResult. - * A metric result. - * - */ -export interface MetricsResult { - /** - * @member {MetricsResultInfo} [value] - */ - value?: MetricsResultInfo; -} - -/** - * @interface - * An interface representing MetricsResultsItem. - */ -export interface MetricsResultsItem { - /** - * @member {string} id The specified ID for this metric. - */ - id: string; - /** - * @member {number} status The HTTP status code of this metric query. - */ - status: number; - /** - * @member {MetricsResult} body The results of this metric query. - */ - body: MetricsResult; -} - -/** - * @interface - * An interface representing ErrorDetail. - * @summary Error details. - * - */ -export interface ErrorDetail { - /** - * @member {string} code The error's code. - */ - code: string; - /** - * @member {string} message A human readable error message. - */ - message: string; - /** - * @member {string} [target] Indicates which property in the request is - * responsible for the error. - */ - target?: string; - /** - * @member {string} [value] Indicates which value in 'target' is responsible - * for the error. - */ - value?: string; - /** - * @member {string[]} [resources] Indicates resources which were responsible - * for the error. - */ - resources?: string[]; - /** - * @member {any} [additionalProperties] - */ - additionalProperties?: any; -} - -/** - * @interface - * An interface representing ErrorInfo. - * @summary The code and message for an error. - * - */ -export interface ErrorInfo { - /** - * @member {string} code A machine readable error code. - */ - code: string; - /** - * @member {string} message A human readable error message. - */ - message: string; - /** - * @member {ErrorDetail[]} [details] error details. - */ - details?: ErrorDetail[]; - /** - * @member {ErrorInfo} [innererror] Inner error details if they exist. - */ - innererror?: ErrorInfo; - /** - * @member {any} [additionalProperties] - */ - additionalProperties?: any; -} - -/** - * @interface - * An interface representing EventsResultDataCustomDimensions. - * Custom dimensions of the event - * - */ -export interface EventsResultDataCustomDimensions { - /** - * @member {any} [additionalProperties] - */ - additionalProperties?: any; -} - -/** - * @interface - * An interface representing EventsResultDataCustomMeasurements. - * Custom measurements of the event - * - */ -export interface EventsResultDataCustomMeasurements { - /** - * @member {any} [additionalProperties] - */ - additionalProperties?: any; -} - -/** - * @interface - * An interface representing EventsOperationInfo. - * Operation info for an event result - * - */ -export interface EventsOperationInfo { - /** - * @member {string} [name] Name of the operation - */ - name?: string; - /** - * @member {string} [id] ID of the operation - */ - id?: string; - /** - * @member {string} [parentId] Parent ID of the operation - */ - parentId?: string; - /** - * @member {string} [syntheticSource] Synthetic source of the operation - */ - syntheticSource?: string; -} - -/** - * @interface - * An interface representing EventsSessionInfo. - * Session info for an event result - * - */ -export interface EventsSessionInfo { - /** - * @member {string} [id] ID of the session - */ - id?: string; -} - -/** - * @interface - * An interface representing EventsUserInfo. - * User info for an event result - * - */ -export interface EventsUserInfo { - /** - * @member {string} [id] ID of the user - */ - id?: string; - /** - * @member {string} [accountId] Account ID of the user - */ - accountId?: string; - /** - * @member {string} [authenticatedId] Authenticated ID of the user - */ - authenticatedId?: string; -} - -/** - * @interface - * An interface representing EventsCloudInfo. - * Cloud info for an event result - * - */ -export interface EventsCloudInfo { - /** - * @member {string} [roleName] Role name of the cloud - */ - roleName?: string; - /** - * @member {string} [roleInstance] Role instance of the cloud - */ - roleInstance?: string; -} - -/** - * @interface - * An interface representing EventsAiInfo. - * AI related application info for an event result - * - */ -export interface EventsAiInfo { - /** - * @member {string} [iKey] iKey of the app - */ - iKey?: string; - /** - * @member {string} [appName] Name of the application - */ - appName?: string; - /** - * @member {string} [appId] ID of the application - */ - appId?: string; - /** - * @member {string} [sdkVersion] SDK version of the application - */ - sdkVersion?: string; -} - -/** - * @interface - * An interface representing EventsApplicationInfo. - * Application info for an event result - * - */ -export interface EventsApplicationInfo { - /** - * @member {string} [version] Version of the application - */ - version?: string; -} - -/** - * @interface - * An interface representing EventsClientInfo. - * Client info for an event result - * - */ -export interface EventsClientInfo { - /** - * @member {string} [model] Model of the client - */ - model?: string; - /** - * @member {string} [os] Operating system of the client - */ - os?: string; - /** - * @member {string} [type] Type of the client - */ - type?: string; - /** - * @member {string} [browser] Browser of the client - */ - browser?: string; - /** - * @member {string} [ip] IP address of the client - */ - ip?: string; - /** - * @member {string} [city] City of the client - */ - city?: string; - /** - * @member {string} [stateOrProvince] State or province of the client - */ - stateOrProvince?: string; - /** - * @member {string} [countryOrRegion] Country or region of the client - */ - countryOrRegion?: string; -} - -/** - * Contains the possible cases for EventsResultData. - */ -export type EventsResultDataUnion = EventsResultData | EventsTraceResult | EventsCustomEventResult | EventsPageViewResult | EventsBrowserTimingResult | EventsRequestResult | EventsDependencyResult | EventsExceptionResult | EventsAvailabilityResultResult | EventsPerformanceCounterResult | EventsCustomMetricResult; - -/** - * @interface - * An interface representing EventsResultData. - * Events query result data. - * - */ -export interface EventsResultData { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "eventsResultData"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; -} - -/** - * @interface - * An interface representing EventsResults. - * An events query result. - * - */ -export interface EventsResults { - /** - * @member {string} [odatacontext] OData context metadata endpoint for this - * response - */ - odatacontext?: string; - /** - * @member {ErrorInfo[]} [aimessages] OData messages for this response. - */ - aimessages?: ErrorInfo[]; - /** - * @member {EventsResultDataUnion[]} [value] Contents of the events query - * result. - */ - value?: EventsResultDataUnion[]; -} - -/** - * @interface - * An interface representing EventsResult. - * An event query result. - * - */ -export interface EventsResult { - /** - * @member {ErrorInfo[]} [aimessages] OData messages for this response. - */ - aimessages?: ErrorInfo[]; - /** - * @member {EventsResultDataUnion} [value] - */ - value?: EventsResultDataUnion; -} - -/** - * @interface - * An interface representing EventsTraceInfo. - * The trace information - * - */ -export interface EventsTraceInfo { - /** - * @member {string} [message] The trace message - */ - message?: string; - /** - * @member {number} [severityLevel] The trace severity level - */ - severityLevel?: number; -} - -/** - * @interface - * An interface representing EventsTraceResult. - * A trace result - * - */ -export interface EventsTraceResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "trace"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsTraceInfo} [trace] - */ - trace?: EventsTraceInfo; -} - -/** - * @interface - * An interface representing EventsCustomEventInfo. - * The custom event information - * - */ -export interface EventsCustomEventInfo { - /** - * @member {string} [name] The name of the custom event - */ - name?: string; -} - -/** - * @interface - * An interface representing EventsCustomEventResult. - * A custom event result - * - */ -export interface EventsCustomEventResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "customEvent"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsCustomEventInfo} [customEvent] - */ - customEvent?: EventsCustomEventInfo; -} - -/** - * @interface - * An interface representing EventsPageViewInfo. - * The page view information - * - */ -export interface EventsPageViewInfo { - /** - * @member {string} [name] The name of the page - */ - name?: string; - /** - * @member {string} [url] The URL of the page - */ - url?: string; - /** - * @member {string} [duration] The duration of the page view - */ - duration?: string; - /** - * @member {string} [performanceBucket] The performance bucket of the page - * view - */ - performanceBucket?: string; -} - -/** - * @interface - * An interface representing EventsPageViewResult. - * A page view result - * - */ -export interface EventsPageViewResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "pageView"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsPageViewInfo} [pageView] - */ - pageView?: EventsPageViewInfo; -} - -/** - * @interface - * An interface representing EventsBrowserTimingInfo. - * The browser timing information - * - */ -export interface EventsBrowserTimingInfo { - /** - * @member {string} [urlPath] The path of the URL - */ - urlPath?: string; - /** - * @member {string} [urlHost] The host of the URL - */ - urlHost?: string; - /** - * @member {string} [name] The name of the page - */ - name?: string; - /** - * @member {string} [url] The url of the page - */ - url?: string; - /** - * @member {number} [totalDuration] The total duration of the load - */ - totalDuration?: number; - /** - * @member {string} [performanceBucket] The performance bucket of the load - */ - performanceBucket?: string; - /** - * @member {number} [networkDuration] The network duration of the load - */ - networkDuration?: number; - /** - * @member {number} [sendDuration] The send duration of the load - */ - sendDuration?: number; - /** - * @member {number} [receiveDuration] The receive duration of the load - */ - receiveDuration?: number; - /** - * @member {number} [processingDuration] The processing duration of the load - */ - processingDuration?: number; -} - -/** - * @interface - * An interface representing EventsClientPerformanceInfo. - * Client performance information - * - */ -export interface EventsClientPerformanceInfo { - /** - * @member {string} [name] The name of the client performance - */ - name?: string; -} - -/** - * @interface - * An interface representing EventsBrowserTimingResult. - * A browser timing result - * - */ -export interface EventsBrowserTimingResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "browserTiming"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsBrowserTimingInfo} [browserTiming] - */ - browserTiming?: EventsBrowserTimingInfo; - /** - * @member {EventsClientPerformanceInfo} [clientPerformance] - */ - clientPerformance?: EventsClientPerformanceInfo; -} - -/** - * @interface - * An interface representing EventsRequestInfo. - * The request info - * - */ -export interface EventsRequestInfo { - /** - * @member {string} [name] The name of the request - */ - name?: string; - /** - * @member {string} [url] The URL of the request - */ - url?: string; - /** - * @member {string} [success] Indicates if the request was successful - */ - success?: string; - /** - * @member {number} [duration] The duration of the request - */ - duration?: number; - /** - * @member {string} [performanceBucket] The performance bucket of the request - */ - performanceBucket?: string; - /** - * @member {string} [resultCode] The result code of the request - */ - resultCode?: string; - /** - * @member {string} [source] The source of the request - */ - source?: string; - /** - * @member {string} [id] The ID of the request - */ - id?: string; -} - -/** - * @interface - * An interface representing EventsRequestResult. - * A request result - * - */ -export interface EventsRequestResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "request"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsRequestInfo} [request] - */ - request?: EventsRequestInfo; -} - -/** - * @interface - * An interface representing EventsDependencyInfo. - * The dependency info - * - */ -export interface EventsDependencyInfo { - /** - * @member {string} [target] The target of the dependency - */ - target?: string; - /** - * @member {string} [data] The data of the dependency - */ - data?: string; - /** - * @member {string} [success] Indicates if the dependency was successful - */ - success?: string; - /** - * @member {number} [duration] The duration of the dependency - */ - duration?: number; - /** - * @member {string} [performanceBucket] The performance bucket of the - * dependency - */ - performanceBucket?: string; - /** - * @member {string} [resultCode] The result code of the dependency - */ - resultCode?: string; - /** - * @member {string} [type] The type of the dependency - */ - type?: string; - /** - * @member {string} [name] The name of the dependency - */ - name?: string; - /** - * @member {string} [id] The ID of the dependency - */ - id?: string; -} - -/** - * @interface - * An interface representing EventsDependencyResult. - * A dependency result - * - */ -export interface EventsDependencyResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "dependency"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsDependencyInfo} [dependency] - */ - dependency?: EventsDependencyInfo; -} - -/** - * @interface - * An interface representing EventsExceptionDetailsParsedStack. - * A parsed stack entry - * - */ -export interface EventsExceptionDetailsParsedStack { - /** - * @member {string} [assembly] The assembly of the stack entry - */ - assembly?: string; - /** - * @member {string} [method] The method of the stack entry - */ - method?: string; - /** - * @member {number} [level] The level of the stack entry - */ - level?: number; - /** - * @member {number} [line] The line of the stack entry - */ - line?: number; -} - -/** - * @interface - * An interface representing EventsExceptionDetail. - * Exception details - * - */ -export interface EventsExceptionDetail { - /** - * @member {string} [severityLevel] The severity level of the exception - * detail - */ - severityLevel?: string; - /** - * @member {string} [outerId] The outer ID of the exception detail - */ - outerId?: string; - /** - * @member {string} [message] The message of the exception detail - */ - message?: string; - /** - * @member {string} [type] The type of the exception detail - */ - type?: string; - /** - * @member {string} [id] The ID of the exception detail - */ - id?: string; - /** - * @member {EventsExceptionDetailsParsedStack[]} [parsedStack] The parsed - * stack - */ - parsedStack?: EventsExceptionDetailsParsedStack[]; -} - -/** - * @interface - * An interface representing EventsExceptionInfo. - * The exception info - * - */ -export interface EventsExceptionInfo { - /** - * @member {number} [severityLevel] The severity level of the exception - */ - severityLevel?: number; - /** - * @member {string} [problemId] The problem ID of the exception - */ - problemId?: string; - /** - * @member {string} [handledAt] Indicates where the exception was handled at - */ - handledAt?: string; - /** - * @member {string} [assembly] The assembly which threw the exception - */ - assembly?: string; - /** - * @member {string} [method] The method that threw the exception - */ - method?: string; - /** - * @member {string} [message] The message of the exception - */ - message?: string; - /** - * @member {string} [type] The type of the exception - */ - type?: string; - /** - * @member {string} [outerType] The outer type of the exception - */ - outerType?: string; - /** - * @member {string} [outerMethod] The outer method of the exception - */ - outerMethod?: string; - /** - * @member {string} [outerAssembly] The outer assmebly of the exception - */ - outerAssembly?: string; - /** - * @member {string} [outerMessage] The outer message of the exception - */ - outerMessage?: string; - /** - * @member {string} [innermostType] The inner most type of the exception - */ - innermostType?: string; - /** - * @member {string} [innermostMessage] The inner most message of the - * exception - */ - innermostMessage?: string; - /** - * @member {string} [innermostMethod] The inner most method of the exception - */ - innermostMethod?: string; - /** - * @member {string} [innermostAssembly] The inner most assembly of the - * exception - */ - innermostAssembly?: string; - /** - * @member {EventsExceptionDetail[]} [details] The details of the exception - */ - details?: EventsExceptionDetail[]; -} - -/** - * @interface - * An interface representing EventsExceptionResult. - * An exception result - * - */ -export interface EventsExceptionResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "exception"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsExceptionInfo} [exception] - */ - exception?: EventsExceptionInfo; -} - -/** - * @interface - * An interface representing EventsAvailabilityResultInfo. - * The availability result info - * - */ -export interface EventsAvailabilityResultInfo { - /** - * @member {string} [name] The name of the availability result - */ - name?: string; - /** - * @member {string} [success] Indicates if the availability result was - * successful - */ - success?: string; - /** - * @member {number} [duration] The duration of the availability result - */ - duration?: number; - /** - * @member {string} [performanceBucket] The performance bucket of the - * availability result - */ - performanceBucket?: string; - /** - * @member {string} [message] The message of the availability result - */ - message?: string; - /** - * @member {string} [location] The location of the availability result - */ - location?: string; - /** - * @member {string} [id] The ID of the availability result - */ - id?: string; - /** - * @member {string} [size] The size of the availability result - */ - size?: string; -} - -/** - * @interface - * An interface representing EventsAvailabilityResultResult. - * An availability result result - * - */ -export interface EventsAvailabilityResultResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "availabilityResult"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsAvailabilityResultInfo} [availabilityResult] - */ - availabilityResult?: EventsAvailabilityResultInfo; -} - -/** - * @interface - * An interface representing EventsPerformanceCounterInfo. - * The performance counter info - * - */ -export interface EventsPerformanceCounterInfo { - /** - * @member {number} [value] The value of the performance counter - */ - value?: number; - /** - * @member {string} [name] The name of the performance counter - */ - name?: string; - /** - * @member {string} [category] The category of the performance counter - */ - category?: string; - /** - * @member {string} [counter] The counter of the performance counter - */ - counter?: string; - /** - * @member {string} [instanceName] The instance name of the performance - * counter - */ - instanceName?: string; - /** - * @member {string} [instance] The instance of the performance counter - */ - instance?: string; -} - -/** - * @interface - * An interface representing EventsPerformanceCounterResult. - * A performance counter result - * - */ -export interface EventsPerformanceCounterResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "performanceCounter"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsPerformanceCounterInfo} [performanceCounter] - */ - performanceCounter?: EventsPerformanceCounterInfo; -} - -/** - * @interface - * An interface representing EventsCustomMetricInfo. - * The custom metric info - * - */ -export interface EventsCustomMetricInfo { - /** - * @member {string} [name] The name of the custom metric - */ - name?: string; - /** - * @member {number} [value] The value of the custom metric - */ - value?: number; - /** - * @member {number} [valueSum] The sum of the custom metric - */ - valueSum?: number; - /** - * @member {number} [valueCount] The count of the custom metric - */ - valueCount?: number; - /** - * @member {number} [valueMin] The minimum value of the custom metric - */ - valueMin?: number; - /** - * @member {number} [valueMax] The maximum value of the custom metric - */ - valueMax?: number; - /** - * @member {number} [valueStdDev] The standard deviation of the custom metric - */ - valueStdDev?: number; -} - -/** - * @interface - * An interface representing EventsCustomMetricResult. - * A custom metric result - * - */ -export interface EventsCustomMetricResult { - /** - * @member {string} type Polymorphic Discriminator - */ - type: "customMetric"; - /** - * @member {string} [id] The unique ID for this event. - */ - id?: string; - /** - * @member {number} [count] Count of the event - */ - count?: number; - /** - * @member {Date} [timestamp] Timestamp of the event - */ - timestamp?: Date; - /** - * @member {EventsResultDataCustomDimensions} [customDimensions] Custom - * dimensions of the event - */ - customDimensions?: EventsResultDataCustomDimensions; - /** - * @member {EventsResultDataCustomMeasurements} [customMeasurements] Custom - * measurements of the event - */ - customMeasurements?: EventsResultDataCustomMeasurements; - /** - * @member {EventsOperationInfo} [operation] Operation info of the event - */ - operation?: EventsOperationInfo; - /** - * @member {EventsSessionInfo} [session] Session info of the event - */ - session?: EventsSessionInfo; - /** - * @member {EventsUserInfo} [user] User info of the event - */ - user?: EventsUserInfo; - /** - * @member {EventsCloudInfo} [cloud] Cloud info of the event - */ - cloud?: EventsCloudInfo; - /** - * @member {EventsAiInfo} [ai] AI info of the event - */ - ai?: EventsAiInfo; - /** - * @member {EventsApplicationInfo} [application] Application info of the - * event - */ - application?: EventsApplicationInfo; - /** - * @member {EventsClientInfo} [client] Client info of the event - */ - client?: EventsClientInfo; - /** - * @member {EventsCustomMetricInfo} [customMetric] - */ - customMetric?: EventsCustomMetricInfo; -} - -/** - * @interface - * An interface representing QueryBody. - * The Analytics query. Learn more about the [Analytics query - * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) - * - */ -export interface QueryBody { - /** - * @member {string} query The query to execute. - */ - query: string; - /** - * @member {string} [timespan] Optional. The timespan over which to query - * data. This is an ISO8601 time period value. This timespan is applied in - * addition to any that are specified in the query expression. - */ - timespan?: string; - /** - * @member {string[]} [applications] A list of Application IDs for - * cross-application queries. - */ - applications?: string[]; -} - -/** - * @interface - * An interface representing Column. - * @summary A table column. - * - * A column in a table. - * - */ -export interface Column { - /** - * @member {string} [name] The name of this column. - */ - name?: string; - /** - * @member {string} [type] The data type of this column. - */ - type?: string; -} - -/** - * @interface - * An interface representing Table. - * @summary A query response table. - * - * Contains the columns and rows for one table in a query response. - * - */ -export interface Table { - /** - * @member {string} name The name of the table. - */ - name: string; - /** - * @member {Column[]} columns The list of columns in this table. - */ - columns: Column[]; - /** - * @member {any[][]} rows The resulting rows from this query. - */ - rows: any[][]; -} - -/** - * @interface - * An interface representing QueryResults. - * @summary A query response. - * - * Contains the tables, columns & rows resulting from a query. - * - */ -export interface QueryResults { - /** - * @member {Table[]} tables The list of tables, columns and rows. - */ - tables: Table[]; -} - -/** - * @interface - * An interface representing ErrorResponse. - * @summary Error details. - * - * Contains details when the response code indicates an error. - * - */ -export interface ErrorResponse { - /** - * @member {ErrorInfo} error The error details. - */ - error: ErrorInfo; -} - -/** - * @interface - * An interface representing ApplicationInsightsDataClientOptions. - * @extends ServiceClientOptions - */ -export interface ApplicationInsightsDataClientOptions extends ServiceClientOptions { - /** - * @member {string} [baseUri] - */ - baseUri?: string; -} - -/** - * @interface - * An interface representing MetricsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface MetricsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [timespan] The timespan over which to retrieve metric - * values. This is an ISO8601 time period value. If timespan is omitted, a - * default time range of `PT12H` ("last 12 hours") is used. The actual - * timespan that is queried may be adjusted by the server based. In all - * cases, the actual time span used for the query is included in the - * response. - */ - timespan?: string; - /** - * @member {string} [interval] The time interval to use when retrieving - * metric values. This is an ISO8601 duration. If interval is omitted, the - * metric value is aggregated across the entire timespan. If interval is - * supplied, the server may adjust the interval to a more appropriate size - * based on the timespan used for the query. In all cases, the actual - * interval used for the query is included in the response. - */ - interval?: string; - /** - * @member {MetricsAggregation[]} [aggregation] The aggregation to use when - * computing the metric values. To retrieve more than one aggregation at a - * time, separate them with a comma. If no aggregation is specified, then the - * default aggregation for the metric is used. - */ - aggregation?: MetricsAggregation[]; - /** - * @member {MetricsSegment[]} [segment] The name of the dimension to segment - * the metric values by. This dimension must be applicable to the metric you - * are retrieving. To segment by more than one dimension at a time, separate - * them with a comma (,). In this case, the metric data will be segmented in - * the order the dimensions are listed in the parameter. - */ - segment?: MetricsSegment[]; - /** - * @member {number} [top] The number of segments to return. This value is - * only valid when segment is specified. - */ - top?: number; - /** - * @member {string} [orderby] The aggregation function and direction to sort - * the segments by. This value is only valid when segment is specified. - */ - orderby?: string; - /** - * @member {string} [filter] An expression used to filter the results. This - * value should be a valid OData filter expression where the keys of each - * clause should be applicable dimensions for the metric you are retrieving. - */ - filter?: string; -} - -/** - * @interface - * An interface representing EventsGetByTypeOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface EventsGetByTypeOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [timespan] Optional. The timespan over which to retrieve - * events. This is an ISO8601 time period value. This timespan is applied in - * addition to any that are specified in the Odata expression. - */ - timespan?: string; - /** - * @member {string} [filter] An expression used to filter the returned events - */ - filter?: string; - /** - * @member {string} [search] A free-text search expression to match for - * whether a particular event should be returned - */ - search?: string; - /** - * @member {string} [orderby] A comma-separated list of properties with - * \"asc\" (the default) or \"desc\" to control the order of returned events - */ - orderby?: string; - /** - * @member {string} [select] Limits the properties to just those requested on - * each returned event - */ - select?: string; - /** - * @member {number} [skip] The number of items to skip over before returning - * events - */ - skip?: number; - /** - * @member {number} [top] The number of events to return - */ - top?: number; - /** - * @member {string} [format] Format for the returned events - */ - format?: string; - /** - * @member {boolean} [count] Request a count of matching items included with - * the returned events - */ - count?: boolean; - /** - * @member {string} [apply] An expression used for aggregation over returned - * events - */ - apply?: string; -} - -/** - * @interface - * An interface representing EventsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface EventsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [timespan] Optional. The timespan over which to retrieve - * events. This is an ISO8601 time period value. This timespan is applied in - * addition to any that are specified in the Odata expression. - */ - timespan?: string; -} - -/** - * Defines values for MetricId. - * Possible values include: 'requests/count', 'requests/duration', 'requests/failed', - * 'users/count', 'users/authenticated', 'pageViews/count', 'pageViews/duration', - * 'client/processingDuration', 'client/receiveDuration', 'client/networkDuration', - * 'client/sendDuration', 'client/totalDuration', 'dependencies/count', 'dependencies/failed', - * 'dependencies/duration', 'exceptions/count', 'exceptions/browser', 'exceptions/server', - * 'sessions/count', 'performanceCounters/requestExecutionTime', - * 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue', - * 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond', - * 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond', - * 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage', - * 'availabilityResults/availabilityPercentage', 'availabilityResults/duration', - * 'billing/telemetryCount', 'customEvents/count' - * @readonly - * @enum {string} - */ -export type MetricId = 'requests/count' | 'requests/duration' | 'requests/failed' | 'users/count' | 'users/authenticated' | 'pageViews/count' | 'pageViews/duration' | 'client/processingDuration' | 'client/receiveDuration' | 'client/networkDuration' | 'client/sendDuration' | 'client/totalDuration' | 'dependencies/count' | 'dependencies/failed' | 'dependencies/duration' | 'exceptions/count' | 'exceptions/browser' | 'exceptions/server' | 'sessions/count' | 'performanceCounters/requestExecutionTime' | 'performanceCounters/requestsPerSecond' | 'performanceCounters/requestsInQueue' | 'performanceCounters/memoryAvailableBytes' | 'performanceCounters/exceptionsPerSecond' | 'performanceCounters/processCpuPercentage' | 'performanceCounters/processIOBytesPerSecond' | 'performanceCounters/processPrivateBytes' | 'performanceCounters/processorCpuPercentage' | 'availabilityResults/availabilityPercentage' | 'availabilityResults/duration' | 'billing/telemetryCount' | 'customEvents/count'; - -/** - * Defines values for MetricsAggregation. - * Possible values include: 'min', 'max', 'avg', 'sum', 'count', 'unique' - * @readonly - * @enum {string} - */ -export type MetricsAggregation = 'min' | 'max' | 'avg' | 'sum' | 'count' | 'unique'; - -/** - * Defines values for MetricsSegment. - * Possible values include: 'applicationBuild', 'applicationVersion', - * 'authenticatedOrAnonymousTraffic', 'browser', 'browserVersion', 'city', 'cloudRoleName', - * 'cloudServiceName', 'continent', 'countryOrRegion', 'deploymentId', 'deploymentUnit', - * 'deviceType', 'environment', 'hostingLocation', 'instanceName' - * @readonly - * @enum {string} - */ -export type MetricsSegment = 'applicationBuild' | 'applicationVersion' | 'authenticatedOrAnonymousTraffic' | 'browser' | 'browserVersion' | 'city' | 'cloudRoleName' | 'cloudServiceName' | 'continent' | 'countryOrRegion' | 'deploymentId' | 'deploymentUnit' | 'deviceType' | 'environment' | 'hostingLocation' | 'instanceName'; - -/** - * Defines values for EventType. - * Possible values include: '$all', 'traces', 'customEvents', 'pageViews', 'browserTimings', - * 'requests', 'dependencies', 'exceptions', 'availabilityResults', 'performanceCounters', - * 'customMetrics' - * @readonly - * @enum {string} - */ -export type EventType = '$all' | 'traces' | 'customEvents' | 'pageViews' | 'browserTimings' | 'requests' | 'dependencies' | 'exceptions' | 'availabilityResults' | 'performanceCounters' | 'customMetrics'; - -/** - * Contains response data for the get operation. - */ -export type MetricsGetResponse = MetricsResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricsResult; - }; -}; - -/** - * Contains response data for the getMultiple operation. - */ -export type MetricsGetMultipleResponse = Array & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetricsResultsItem[]; - }; -}; - -/** - * Contains response data for the getMetadata operation. - */ -export type MetricsGetMetadataResponse = { - /** - * The parsed response body. - */ - body: any; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the getByType operation. - */ -export type EventsGetByTypeResponse = EventsResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventsResults; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type EventsGetResponse = EventsResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EventsResults; - }; -}; - -/** - * Contains response data for the execute operation. - */ -export type QueryExecuteResponse = QueryResults & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: QueryResults; - }; -}; diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/mappers.ts b/sdk/applicationinsights/applicationinsights-query/src/models/mappers.ts deleted file mode 100644 index 41143e2b862a..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/mappers.ts +++ /dev/null @@ -1,1767 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; - - -export const MetricsPostBodySchemaParameters: msRest.CompositeMapper = { - serializedName: "metricsPostBodySchema_parameters", - type: { - name: "Composite", - className: "MetricsPostBodySchemaParameters", - modelProperties: { - metricId: { - required: true, - serializedName: "metricId", - type: { - name: "String" - } - }, - timespan: { - serializedName: "timespan", - type: { - name: "String" - } - }, - aggregation: { - serializedName: "aggregation", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - interval: { - serializedName: "interval", - type: { - name: "TimeSpan" - } - }, - segment: { - serializedName: "segment", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - top: { - serializedName: "top", - type: { - name: "Number" - } - }, - orderby: { - serializedName: "orderby", - type: { - name: "String" - } - }, - filter: { - serializedName: "filter", - type: { - name: "String" - } - } - } - } -}; - -export const MetricsPostBodySchema: msRest.CompositeMapper = { - serializedName: "metricsPostBodySchema", - type: { - name: "Composite", - className: "MetricsPostBodySchema", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - parameters: { - required: true, - serializedName: "parameters", - type: { - name: "Composite", - className: "MetricsPostBodySchemaParameters" - } - } - } - } -}; - -export const MetricsSegmentInfo: msRest.CompositeMapper = { - serializedName: "metricsSegmentInfo", - type: { - name: "Composite", - className: "MetricsSegmentInfo", - modelProperties: { - start: { - serializedName: "start", - type: { - name: "DateTime" - } - }, - end: { - serializedName: "end", - type: { - name: "DateTime" - } - }, - segments: { - serializedName: "segments", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricsSegmentInfo", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const MetricsResultInfo: msRest.CompositeMapper = { - serializedName: "metricsResultInfo", - type: { - name: "Composite", - className: "MetricsResultInfo", - modelProperties: { - start: { - serializedName: "start", - type: { - name: "DateTime" - } - }, - end: { - serializedName: "end", - type: { - name: "DateTime" - } - }, - interval: { - serializedName: "interval", - type: { - name: "TimeSpan" - } - }, - segments: { - serializedName: "segments", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricsSegmentInfo", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const MetricsResult: msRest.CompositeMapper = { - serializedName: "metricsResult", - type: { - name: "Composite", - className: "MetricsResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Composite", - className: "MetricsResultInfo", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } -}; - -export const MetricsResultsItem: msRest.CompositeMapper = { - serializedName: "metricsResultsItem", - type: { - name: "Composite", - className: "MetricsResultsItem", - modelProperties: { - id: { - required: true, - serializedName: "id", - type: { - name: "String" - } - }, - status: { - required: true, - serializedName: "status", - type: { - name: "Number" - } - }, - body: { - required: true, - serializedName: "body", - type: { - name: "Composite", - className: "MetricsResult" - } - } - } - } -}; - -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "errorDetail", - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - required: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - required: true, - serializedName: "message", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - }, - resources: { - serializedName: "resources", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - additionalProperties: { - serializedName: "additionalProperties", - type: { - name: "Object" - } - } - } - } -}; - -export const ErrorInfo: msRest.CompositeMapper = { - serializedName: "errorInfo", - type: { - name: "Composite", - className: "ErrorInfo", - modelProperties: { - code: { - required: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - required: true, - serializedName: "message", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } - } - }, - innererror: { - serializedName: "innererror", - type: { - name: "Composite", - className: "ErrorInfo" - } - }, - additionalProperties: { - serializedName: "additionalProperties", - type: { - name: "Object" - } - } - } - } -}; - -export const EventsResultDataCustomDimensions: msRest.CompositeMapper = { - serializedName: "eventsResultData_customDimensions", - type: { - name: "Composite", - className: "EventsResultDataCustomDimensions", - modelProperties: { - additionalProperties: { - serializedName: "additionalProperties", - type: { - name: "Object" - } - } - } - } -}; - -export const EventsResultDataCustomMeasurements: msRest.CompositeMapper = { - serializedName: "eventsResultData_customMeasurements", - type: { - name: "Composite", - className: "EventsResultDataCustomMeasurements", - modelProperties: { - additionalProperties: { - serializedName: "additionalProperties", - type: { - name: "Object" - } - } - } - } -}; - -export const EventsOperationInfo: msRest.CompositeMapper = { - serializedName: "eventsOperationInfo", - type: { - name: "Composite", - className: "EventsOperationInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - parentId: { - serializedName: "parentId", - type: { - name: "String" - } - }, - syntheticSource: { - serializedName: "syntheticSource", - type: { - name: "String" - } - } - } - } -}; - -export const EventsSessionInfo: msRest.CompositeMapper = { - serializedName: "eventsSessionInfo", - type: { - name: "Composite", - className: "EventsSessionInfo", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const EventsUserInfo: msRest.CompositeMapper = { - serializedName: "eventsUserInfo", - type: { - name: "Composite", - className: "EventsUserInfo", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - accountId: { - serializedName: "accountId", - type: { - name: "String" - } - }, - authenticatedId: { - serializedName: "authenticatedId", - type: { - name: "String" - } - } - } - } -}; - -export const EventsCloudInfo: msRest.CompositeMapper = { - serializedName: "eventsCloudInfo", - type: { - name: "Composite", - className: "EventsCloudInfo", - modelProperties: { - roleName: { - serializedName: "roleName", - type: { - name: "String" - } - }, - roleInstance: { - serializedName: "roleInstance", - type: { - name: "String" - } - } - } - } -}; - -export const EventsAiInfo: msRest.CompositeMapper = { - serializedName: "eventsAiInfo", - type: { - name: "Composite", - className: "EventsAiInfo", - modelProperties: { - iKey: { - serializedName: "iKey", - type: { - name: "String" - } - }, - appName: { - serializedName: "appName", - type: { - name: "String" - } - }, - appId: { - serializedName: "appId", - type: { - name: "String" - } - }, - sdkVersion: { - serializedName: "sdkVersion", - type: { - name: "String" - } - } - } - } -}; - -export const EventsApplicationInfo: msRest.CompositeMapper = { - serializedName: "eventsApplicationInfo", - type: { - name: "Composite", - className: "EventsApplicationInfo", - modelProperties: { - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const EventsClientInfo: msRest.CompositeMapper = { - serializedName: "eventsClientInfo", - type: { - name: "Composite", - className: "EventsClientInfo", - modelProperties: { - model: { - serializedName: "model", - type: { - name: "String" - } - }, - os: { - serializedName: "os", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - browser: { - serializedName: "browser", - type: { - name: "String" - } - }, - ip: { - serializedName: "ip", - type: { - name: "String" - } - }, - city: { - serializedName: "city", - type: { - name: "String" - } - }, - stateOrProvince: { - serializedName: "stateOrProvince", - type: { - name: "String" - } - }, - countryOrRegion: { - serializedName: "countryOrRegion", - type: { - name: "String" - } - } - } - } -}; - -export const EventsResultData: msRest.CompositeMapper = { - serializedName: "eventsResultData", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "EventsResultData", - className: "EventsResultData", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - count: { - serializedName: "count", - type: { - name: "Number" - } - }, - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - customDimensions: { - serializedName: "customDimensions", - type: { - name: "Composite", - className: "EventsResultDataCustomDimensions" - } - }, - customMeasurements: { - serializedName: "customMeasurements", - type: { - name: "Composite", - className: "EventsResultDataCustomMeasurements" - } - }, - operation: { - serializedName: "operation", - type: { - name: "Composite", - className: "EventsOperationInfo" - } - }, - session: { - serializedName: "session", - type: { - name: "Composite", - className: "EventsSessionInfo" - } - }, - user: { - serializedName: "user", - type: { - name: "Composite", - className: "EventsUserInfo" - } - }, - cloud: { - serializedName: "cloud", - type: { - name: "Composite", - className: "EventsCloudInfo" - } - }, - ai: { - serializedName: "ai", - type: { - name: "Composite", - className: "EventsAiInfo" - } - }, - application: { - serializedName: "application", - type: { - name: "Composite", - className: "EventsApplicationInfo" - } - }, - client: { - serializedName: "client", - type: { - name: "Composite", - className: "EventsClientInfo" - } - }, - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const EventsResults: msRest.CompositeMapper = { - serializedName: "eventsResults", - type: { - name: "Composite", - className: "EventsResults", - modelProperties: { - odatacontext: { - serializedName: "@odata\\.context", - type: { - name: "String" - } - }, - aimessages: { - serializedName: "@ai\\.messages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorInfo" - } - } - } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventsResultData" - } - } - } - } - } - } -}; - -export const EventsResult: msRest.CompositeMapper = { - serializedName: "eventsResult", - type: { - name: "Composite", - className: "EventsResult", - modelProperties: { - aimessages: { - serializedName: "@ai\\.messages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorInfo" - } - } - } - }, - value: { - serializedName: "value", - type: { - name: "Composite", - className: "EventsResultData" - } - } - } - } -}; - -export const EventsTraceInfo: msRest.CompositeMapper = { - serializedName: "eventsTraceInfo", - type: { - name: "Composite", - className: "EventsTraceInfo", - modelProperties: { - message: { - serializedName: "message", - type: { - name: "String" - } - }, - severityLevel: { - serializedName: "severityLevel", - type: { - name: "Number" - } - } - } - } -}; - -export const EventsTraceResult: msRest.CompositeMapper = { - serializedName: "trace", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsTraceResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - trace: { - serializedName: "trace", - type: { - name: "Composite", - className: "EventsTraceInfo" - } - } - } - } -}; - -export const EventsCustomEventInfo: msRest.CompositeMapper = { - serializedName: "eventsCustomEventInfo", - type: { - name: "Composite", - className: "EventsCustomEventInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const EventsCustomEventResult: msRest.CompositeMapper = { - serializedName: "customEvent", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsCustomEventResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - customEvent: { - serializedName: "customEvent", - type: { - name: "Composite", - className: "EventsCustomEventInfo" - } - } - } - } -}; - -export const EventsPageViewInfo: msRest.CompositeMapper = { - serializedName: "eventsPageViewInfo", - type: { - name: "Composite", - className: "EventsPageViewInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", - type: { - name: "String" - } - }, - performanceBucket: { - serializedName: "performanceBucket", - type: { - name: "String" - } - } - } - } -}; - -export const EventsPageViewResult: msRest.CompositeMapper = { - serializedName: "pageView", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsPageViewResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - pageView: { - serializedName: "pageView", - type: { - name: "Composite", - className: "EventsPageViewInfo" - } - } - } - } -}; - -export const EventsBrowserTimingInfo: msRest.CompositeMapper = { - serializedName: "eventsBrowserTimingInfo", - type: { - name: "Composite", - className: "EventsBrowserTimingInfo", - modelProperties: { - urlPath: { - serializedName: "urlPath", - type: { - name: "String" - } - }, - urlHost: { - serializedName: "urlHost", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - totalDuration: { - serializedName: "totalDuration", - type: { - name: "Number" - } - }, - performanceBucket: { - serializedName: "performanceBucket", - type: { - name: "String" - } - }, - networkDuration: { - serializedName: "networkDuration", - type: { - name: "Number" - } - }, - sendDuration: { - serializedName: "sendDuration", - type: { - name: "Number" - } - }, - receiveDuration: { - serializedName: "receiveDuration", - type: { - name: "Number" - } - }, - processingDuration: { - serializedName: "processingDuration", - type: { - name: "Number" - } - } - } - } -}; - -export const EventsClientPerformanceInfo: msRest.CompositeMapper = { - serializedName: "eventsClientPerformanceInfo", - type: { - name: "Composite", - className: "EventsClientPerformanceInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const EventsBrowserTimingResult: msRest.CompositeMapper = { - serializedName: "browserTiming", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsBrowserTimingResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - browserTiming: { - serializedName: "browserTiming", - type: { - name: "Composite", - className: "EventsBrowserTimingInfo" - } - }, - clientPerformance: { - serializedName: "clientPerformance", - type: { - name: "Composite", - className: "EventsClientPerformanceInfo" - } - } - } - } -}; - -export const EventsRequestInfo: msRest.CompositeMapper = { - serializedName: "eventsRequestInfo", - type: { - name: "Composite", - className: "EventsRequestInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - url: { - serializedName: "url", - type: { - name: "String" - } - }, - success: { - serializedName: "success", - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", - type: { - name: "Number" - } - }, - performanceBucket: { - serializedName: "performanceBucket", - type: { - name: "String" - } - }, - resultCode: { - serializedName: "resultCode", - type: { - name: "String" - } - }, - source: { - serializedName: "source", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const EventsRequestResult: msRest.CompositeMapper = { - serializedName: "request", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsRequestResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - request: { - serializedName: "request", - type: { - name: "Composite", - className: "EventsRequestInfo" - } - } - } - } -}; - -export const EventsDependencyInfo: msRest.CompositeMapper = { - serializedName: "eventsDependencyInfo", - type: { - name: "Composite", - className: "EventsDependencyInfo", - modelProperties: { - target: { - serializedName: "target", - type: { - name: "String" - } - }, - data: { - serializedName: "data", - type: { - name: "String" - } - }, - success: { - serializedName: "success", - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", - type: { - name: "Number" - } - }, - performanceBucket: { - serializedName: "performanceBucket", - type: { - name: "String" - } - }, - resultCode: { - serializedName: "resultCode", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const EventsDependencyResult: msRest.CompositeMapper = { - serializedName: "dependency", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsDependencyResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - dependency: { - serializedName: "dependency", - type: { - name: "Composite", - className: "EventsDependencyInfo" - } - } - } - } -}; - -export const EventsExceptionDetailsParsedStack: msRest.CompositeMapper = { - serializedName: "eventsExceptionDetailsParsedStack", - type: { - name: "Composite", - className: "EventsExceptionDetailsParsedStack", - modelProperties: { - assembly: { - serializedName: "assembly", - type: { - name: "String" - } - }, - method: { - serializedName: "method", - type: { - name: "String" - } - }, - level: { - serializedName: "level", - type: { - name: "Number" - } - }, - line: { - serializedName: "line", - type: { - name: "Number" - } - } - } - } -}; - -export const EventsExceptionDetail: msRest.CompositeMapper = { - serializedName: "eventsExceptionDetail", - type: { - name: "Composite", - className: "EventsExceptionDetail", - modelProperties: { - severityLevel: { - serializedName: "severityLevel", - type: { - name: "String" - } - }, - outerId: { - serializedName: "outerId", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - parsedStack: { - serializedName: "parsedStack", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventsExceptionDetailsParsedStack" - } - } - } - } - } - } -}; - -export const EventsExceptionInfo: msRest.CompositeMapper = { - serializedName: "eventsExceptionInfo", - type: { - name: "Composite", - className: "EventsExceptionInfo", - modelProperties: { - severityLevel: { - serializedName: "severityLevel", - type: { - name: "Number" - } - }, - problemId: { - serializedName: "problemId", - type: { - name: "String" - } - }, - handledAt: { - serializedName: "handledAt", - type: { - name: "String" - } - }, - assembly: { - serializedName: "assembly", - type: { - name: "String" - } - }, - method: { - serializedName: "method", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - outerType: { - serializedName: "outerType", - type: { - name: "String" - } - }, - outerMethod: { - serializedName: "outerMethod", - type: { - name: "String" - } - }, - outerAssembly: { - serializedName: "outerAssembly", - type: { - name: "String" - } - }, - outerMessage: { - serializedName: "outerMessage", - type: { - name: "String" - } - }, - innermostType: { - serializedName: "innermostType", - type: { - name: "String" - } - }, - innermostMessage: { - serializedName: "innermostMessage", - type: { - name: "String" - } - }, - innermostMethod: { - serializedName: "innermostMethod", - type: { - name: "String" - } - }, - innermostAssembly: { - serializedName: "innermostAssembly", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventsExceptionDetail" - } - } - } - } - } - } -}; - -export const EventsExceptionResult: msRest.CompositeMapper = { - serializedName: "exception", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsExceptionResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - exception: { - serializedName: "exception", - type: { - name: "Composite", - className: "EventsExceptionInfo" - } - } - } - } -}; - -export const EventsAvailabilityResultInfo: msRest.CompositeMapper = { - serializedName: "eventsAvailabilityResultInfo", - type: { - name: "Composite", - className: "EventsAvailabilityResultInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - success: { - serializedName: "success", - type: { - name: "String" - } - }, - duration: { - serializedName: "duration", - type: { - name: "Number" - } - }, - performanceBucket: { - serializedName: "performanceBucket", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - size: { - serializedName: "size", - type: { - name: "String" - } - } - } - } -}; - -export const EventsAvailabilityResultResult: msRest.CompositeMapper = { - serializedName: "availabilityResult", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsAvailabilityResultResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - availabilityResult: { - serializedName: "availabilityResult", - type: { - name: "Composite", - className: "EventsAvailabilityResultInfo" - } - } - } - } -}; - -export const EventsPerformanceCounterInfo: msRest.CompositeMapper = { - serializedName: "eventsPerformanceCounterInfo", - type: { - name: "Composite", - className: "EventsPerformanceCounterInfo", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - category: { - serializedName: "category", - type: { - name: "String" - } - }, - counter: { - serializedName: "counter", - type: { - name: "String" - } - }, - instanceName: { - serializedName: "instanceName", - type: { - name: "String" - } - }, - instance: { - serializedName: "instance", - type: { - name: "String" - } - } - } - } -}; - -export const EventsPerformanceCounterResult: msRest.CompositeMapper = { - serializedName: "performanceCounter", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsPerformanceCounterResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - performanceCounter: { - serializedName: "performanceCounter", - type: { - name: "Composite", - className: "EventsPerformanceCounterInfo" - } - } - } - } -}; - -export const EventsCustomMetricInfo: msRest.CompositeMapper = { - serializedName: "eventsCustomMetricInfo", - type: { - name: "Composite", - className: "EventsCustomMetricInfo", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "Number" - } - }, - valueSum: { - serializedName: "valueSum", - type: { - name: "Number" - } - }, - valueCount: { - serializedName: "valueCount", - type: { - name: "Number" - } - }, - valueMin: { - serializedName: "valueMin", - type: { - name: "Number" - } - }, - valueMax: { - serializedName: "valueMax", - type: { - name: "Number" - } - }, - valueStdDev: { - serializedName: "valueStdDev", - type: { - name: "Number" - } - } - } - } -}; - -export const EventsCustomMetricResult: msRest.CompositeMapper = { - serializedName: "customMetric", - type: { - name: "Composite", - polymorphicDiscriminator: EventsResultData.type.polymorphicDiscriminator, - uberParent: "EventsResultData", - className: "EventsCustomMetricResult", - modelProperties: { - ...EventsResultData.type.modelProperties, - customMetric: { - serializedName: "customMetric", - type: { - name: "Composite", - className: "EventsCustomMetricInfo" - } - } - } - } -}; - -export const QueryBody: msRest.CompositeMapper = { - serializedName: "queryBody", - type: { - name: "Composite", - className: "QueryBody", - modelProperties: { - query: { - required: true, - serializedName: "query", - type: { - name: "String" - } - }, - timespan: { - serializedName: "timespan", - type: { - name: "String" - } - }, - applications: { - serializedName: "applications", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const Column: msRest.CompositeMapper = { - serializedName: "column", - type: { - name: "Composite", - className: "Column", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const Table: msRest.CompositeMapper = { - serializedName: "table", - type: { - name: "Composite", - className: "Table", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - columns: { - required: true, - serializedName: "columns", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Column" - } - } - } - }, - rows: { - required: true, - serializedName: "rows", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "Object" - } - } - } - } - } - } - } - } -}; - -export const QueryResults: msRest.CompositeMapper = { - serializedName: "queryResults", - type: { - name: "Composite", - className: "QueryResults", - modelProperties: { - tables: { - required: true, - serializedName: "tables", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Table" - } - } - } - } - } - } -}; - -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "errorResponse", - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - required: true, - serializedName: "error", - type: { - name: "Composite", - className: "ErrorInfo" - } - } - } - } -}; - -export const discriminators = { - 'eventsResultData' : EventsResultData, - 'EventsResultData.trace' : EventsTraceResult, - 'EventsResultData.customEvent' : EventsCustomEventResult, - 'EventsResultData.pageView' : EventsPageViewResult, - 'EventsResultData.browserTiming' : EventsBrowserTimingResult, - 'EventsResultData.request' : EventsRequestResult, - 'EventsResultData.dependency' : EventsDependencyResult, - 'EventsResultData.exception' : EventsExceptionResult, - 'EventsResultData.availabilityResult' : EventsAvailabilityResultResult, - 'EventsResultData.performanceCounter' : EventsPerformanceCounterResult, - 'EventsResultData.customMetric' : EventsCustomMetricResult -}; diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/metricsMappers.ts b/sdk/applicationinsights/applicationinsights-query/src/models/metricsMappers.ts deleted file mode 100644 index 63828bb2eb67..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/metricsMappers.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -export { - discriminators, - MetricsResult, - MetricsResultInfo, - MetricsSegmentInfo, - ErrorResponse, - ErrorInfo, - ErrorDetail, - MetricsPostBodySchema, - MetricsPostBodySchemaParameters, - MetricsResultsItem -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/parameters.ts b/sdk/applicationinsights/applicationinsights-query/src/models/parameters.ts deleted file mode 100644 index 34c02d6dcd4a..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/parameters.ts +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; - -export const aggregation: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "aggregation" - ], - mapper: { - serializedName: "aggregation", - constraints: { - MinItems: 1 - }, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - collectionFormat: msRest.QueryCollectionFormat.Csv -}; -export const appId: msRest.OperationURLParameter = { - parameterPath: "appId", - mapper: { - required: true, - serializedName: "appId", - type: { - name: "String" - } - } -}; -export const apply: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "apply" - ], - mapper: { - serializedName: "$apply", - type: { - name: "String" - } - } -}; -export const count: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "count" - ], - mapper: { - serializedName: "$count", - type: { - name: "Boolean" - } - } -}; -export const eventId: msRest.OperationURLParameter = { - parameterPath: "eventId", - mapper: { - required: true, - serializedName: "eventId", - type: { - name: "String" - } - } -}; -export const eventType: msRest.OperationURLParameter = { - parameterPath: "eventType", - mapper: { - required: true, - serializedName: "eventType", - type: { - name: "String" - } - } -}; -export const filter0: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "filter" - ], - mapper: { - serializedName: "filter", - type: { - name: "String" - } - } -}; -export const filter1: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "filter" - ], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; -export const format: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "format" - ], - mapper: { - serializedName: "$format", - type: { - name: "String" - } - } -}; -export const interval: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "interval" - ], - mapper: { - serializedName: "interval", - type: { - name: "TimeSpan" - } - } -}; -export const metricId: msRest.OperationURLParameter = { - parameterPath: "metricId", - mapper: { - required: true, - serializedName: "metricId", - type: { - name: "String" - } - } -}; -export const orderby0: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "orderby" - ], - mapper: { - serializedName: "orderby", - type: { - name: "String" - } - } -}; -export const orderby1: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "orderby" - ], - mapper: { - serializedName: "$orderby", - type: { - name: "String" - } - } -}; -export const search: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "search" - ], - mapper: { - serializedName: "$search", - type: { - name: "String" - } - } -}; -export const segment: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "segment" - ], - mapper: { - serializedName: "segment", - constraints: { - MinItems: 1 - }, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - collectionFormat: msRest.QueryCollectionFormat.Csv -}; -export const select: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "select" - ], - mapper: { - serializedName: "$select", - type: { - name: "String" - } - } -}; -export const skip: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "skip" - ], - mapper: { - serializedName: "$skip", - type: { - name: "Number" - } - } -}; -export const timespan: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "timespan" - ], - mapper: { - serializedName: "timespan", - type: { - name: "String" - } - } -}; -export const top0: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "top" - ], - mapper: { - serializedName: "top", - type: { - name: "Number" - } - } -}; -export const top1: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "top" - ], - mapper: { - serializedName: "$top", - type: { - name: "Number" - } - } -}; diff --git a/sdk/applicationinsights/applicationinsights-query/src/models/queryMappers.ts b/sdk/applicationinsights/applicationinsights-query/src/models/queryMappers.ts deleted file mode 100644 index a2bf85da4560..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/models/queryMappers.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -export { - discriminators, - QueryBody, - QueryResults, - Table, - Column, - ErrorResponse, - ErrorInfo, - ErrorDetail -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/applicationinsights-query/src/operations/events.ts b/sdk/applicationinsights/applicationinsights-query/src/operations/events.ts deleted file mode 100644 index d6c8cfc3e584..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/operations/events.ts +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/eventsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsDataClientContext } from "../applicationInsightsDataClientContext"; - -/** Class representing a Events. */ -export class Events { - private readonly client: ApplicationInsightsDataClientContext; - - /** - * Create a Events. - * @param {ApplicationInsightsDataClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsDataClientContext) { - this.client = client; - } - - /** - * Executes an OData query for events - * @summary Execute OData query - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param [options] The optional parameters - * @returns Promise - */ - getByType(appId: string, eventType: Models.EventType, options?: Models.EventsGetByTypeOptionalParams): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param callback The callback - */ - getByType(appId: string, eventType: Models.EventType, callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param options The optional parameters - * @param callback The callback - */ - getByType(appId: string, eventType: Models.EventType, options: Models.EventsGetByTypeOptionalParams, callback: msRest.ServiceCallback): void; - getByType(appId: string, eventType: Models.EventType, options?: Models.EventsGetByTypeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - eventType, - options - }, - getByTypeOperationSpec, - callback) as Promise; - } - - /** - * Gets the data for a single event - * @summary Get an event - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param eventId ID of event. - * @param [options] The optional parameters - * @returns Promise - */ - get(appId: string, eventType: Models.EventType, eventId: string, options?: Models.EventsGetOptionalParams): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param eventId ID of event. - * @param callback The callback - */ - get(appId: string, eventType: Models.EventType, eventId: string, callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param eventType The type of events to query; either a standard event type (`traces`, - * `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, `availabilityResults`) or - * `$all` to query across all event types. Possible values include: '$all', 'traces', - * 'customEvents', 'pageViews', 'browserTimings', 'requests', 'dependencies', 'exceptions', - * 'availabilityResults', 'performanceCounters', 'customMetrics' - * @param eventId ID of event. - * @param options The optional parameters - * @param callback The callback - */ - get(appId: string, eventType: Models.EventType, eventId: string, options: Models.EventsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(appId: string, eventType: Models.EventType, eventId: string, options?: Models.EventsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - eventType, - eventId, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getByTypeOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "v1/apps/{appId}/events/{eventType}", - urlParameters: [ - Parameters.appId, - Parameters.eventType - ], - queryParameters: [ - Parameters.timespan, - Parameters.filter1, - Parameters.search, - Parameters.orderby1, - Parameters.select, - Parameters.skip, - Parameters.top1, - Parameters.format, - Parameters.count, - Parameters.apply - ], - responses: { - 200: { - bodyMapper: Mappers.EventsResults - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "v1/apps/{appId}/events/{eventType}/{eventId}", - urlParameters: [ - Parameters.appId, - Parameters.eventType, - Parameters.eventId - ], - queryParameters: [ - Parameters.timespan - ], - responses: { - 200: { - bodyMapper: Mappers.EventsResults - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/applicationinsights/applicationinsights-query/src/operations/index.ts b/sdk/applicationinsights/applicationinsights-query/src/operations/index.ts deleted file mode 100644 index 0a63b995a17a..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/operations/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -export * from "./metrics"; -export * from "./events"; -export * from "./query"; diff --git a/sdk/applicationinsights/applicationinsights-query/src/operations/metrics.ts b/sdk/applicationinsights/applicationinsights-query/src/operations/metrics.ts deleted file mode 100644 index 56a1c8e0b26f..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/operations/metrics.ts +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/metricsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsDataClientContext } from "../applicationInsightsDataClientContext"; - -/** Class representing a Metrics. */ -export class Metrics { - private readonly client: ApplicationInsightsDataClientContext; - - /** - * Create a Metrics. - * @param {ApplicationInsightsDataClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsDataClientContext) { - this.client = client; - } - - /** - * Gets metric values for a single metric - * @summary Retrieve metric data - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param metricId ID of the metric. This is either a standard AI metric, or an - * application-specific custom metric. Possible values include: 'requests/count', - * 'requests/duration', 'requests/failed', 'users/count', 'users/authenticated', 'pageViews/count', - * 'pageViews/duration', 'client/processingDuration', 'client/receiveDuration', - * 'client/networkDuration', 'client/sendDuration', 'client/totalDuration', 'dependencies/count', - * 'dependencies/failed', 'dependencies/duration', 'exceptions/count', 'exceptions/browser', - * 'exceptions/server', 'sessions/count', 'performanceCounters/requestExecutionTime', - * 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue', - * 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond', - * 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond', - * 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage', - * 'availabilityResults/availabilityPercentage', 'availabilityResults/duration', - * 'billing/telemetryCount', 'customEvents/count' - * @param [options] The optional parameters - * @returns Promise - */ - get(appId: string, metricId: Models.MetricId, options?: Models.MetricsGetOptionalParams): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param metricId ID of the metric. This is either a standard AI metric, or an - * application-specific custom metric. Possible values include: 'requests/count', - * 'requests/duration', 'requests/failed', 'users/count', 'users/authenticated', 'pageViews/count', - * 'pageViews/duration', 'client/processingDuration', 'client/receiveDuration', - * 'client/networkDuration', 'client/sendDuration', 'client/totalDuration', 'dependencies/count', - * 'dependencies/failed', 'dependencies/duration', 'exceptions/count', 'exceptions/browser', - * 'exceptions/server', 'sessions/count', 'performanceCounters/requestExecutionTime', - * 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue', - * 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond', - * 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond', - * 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage', - * 'availabilityResults/availabilityPercentage', 'availabilityResults/duration', - * 'billing/telemetryCount', 'customEvents/count' - * @param callback The callback - */ - get(appId: string, metricId: Models.MetricId, callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param metricId ID of the metric. This is either a standard AI metric, or an - * application-specific custom metric. Possible values include: 'requests/count', - * 'requests/duration', 'requests/failed', 'users/count', 'users/authenticated', 'pageViews/count', - * 'pageViews/duration', 'client/processingDuration', 'client/receiveDuration', - * 'client/networkDuration', 'client/sendDuration', 'client/totalDuration', 'dependencies/count', - * 'dependencies/failed', 'dependencies/duration', 'exceptions/count', 'exceptions/browser', - * 'exceptions/server', 'sessions/count', 'performanceCounters/requestExecutionTime', - * 'performanceCounters/requestsPerSecond', 'performanceCounters/requestsInQueue', - * 'performanceCounters/memoryAvailableBytes', 'performanceCounters/exceptionsPerSecond', - * 'performanceCounters/processCpuPercentage', 'performanceCounters/processIOBytesPerSecond', - * 'performanceCounters/processPrivateBytes', 'performanceCounters/processorCpuPercentage', - * 'availabilityResults/availabilityPercentage', 'availabilityResults/duration', - * 'billing/telemetryCount', 'customEvents/count' - * @param options The optional parameters - * @param callback The callback - */ - get(appId: string, metricId: Models.MetricId, options: Models.MetricsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(appId: string, metricId: Models.MetricId, options?: Models.MetricsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - metricId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets metric values for multiple metrics - * @summary Retrieve metric data - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The batched metrics query. - * @param [options] The optional parameters - * @returns Promise - */ - getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options?: msRest.RequestOptionsBase): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The batched metrics query. - * @param callback The callback - */ - getMultiple(appId: string, body: Models.MetricsPostBodySchema[], callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The batched metrics query. - * @param options The optional parameters - * @param callback The callback - */ - getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getMultiple(appId: string, body: Models.MetricsPostBodySchema[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - body, - options - }, - getMultipleOperationSpec, - callback) as Promise; - } - - /** - * Gets metadata describing the available metrics - * @summary Retrieve metric metatadata - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param [options] The optional parameters - * @returns Promise - */ - getMetadata(appId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param callback The callback - */ - getMetadata(appId: string, callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param options The optional parameters - * @param callback The callback - */ - getMetadata(appId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getMetadata(appId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - options - }, - getMetadataOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "v1/apps/{appId}/metrics/{metricId}", - urlParameters: [ - Parameters.appId, - Parameters.metricId - ], - queryParameters: [ - Parameters.timespan, - Parameters.interval, - Parameters.aggregation, - Parameters.segment, - Parameters.top0, - Parameters.orderby0, - Parameters.filter0 - ], - responses: { - 200: { - bodyMapper: Mappers.MetricsResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const getMultipleOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "v1/apps/{appId}/metrics", - urlParameters: [ - Parameters.appId - ], - requestBody: { - parameterPath: "body", - mapper: { - required: true, - serializedName: "body", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricsPostBodySchema" - } - } - } - } - }, - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricsResultsItem" - } - } - } - } - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const getMetadataOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "v1/apps/{appId}/metrics/metadata", - urlParameters: [ - Parameters.appId - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/applicationinsights/applicationinsights-query/src/operations/query.ts b/sdk/applicationinsights/applicationinsights-query/src/operations/query.ts deleted file mode 100644 index 2a3420a07463..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/src/operations/query.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/queryMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsDataClientContext } from "../applicationInsightsDataClientContext"; - -/** Class representing a Query. */ -export class Query { - private readonly client: ApplicationInsightsDataClientContext; - - /** - * Create a Query. - * @param {ApplicationInsightsDataClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsDataClientContext) { - this.client = client; - } - - /** - * Executes an Analytics query for data. - * [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for - * using POST with an Analytics query. - * @summary Execute an Analytics query - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The Analytics query. Learn more about the [Analytics query - * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) - * @param [options] The optional parameters - * @returns Promise - */ - execute(appId: string, body: Models.QueryBody, options?: msRest.RequestOptionsBase): Promise; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The Analytics query. Learn more about the [Analytics query - * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) - * @param callback The callback - */ - execute(appId: string, body: Models.QueryBody, callback: msRest.ServiceCallback): void; - /** - * @param appId ID of the application. This is Application ID from the API Access settings blade in - * the Azure portal. - * @param body The Analytics query. Learn more about the [Analytics query - * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) - * @param options The optional parameters - * @param callback The callback - */ - execute(appId: string, body: Models.QueryBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - execute(appId: string, body: Models.QueryBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - appId, - body, - options - }, - executeOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const executeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "v1/apps/{appId}/query", - urlParameters: [ - Parameters.appId - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.QueryBody, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.QueryResults - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/applicationinsights/applicationinsights-query/tsconfig.json b/sdk/applicationinsights/applicationinsights-query/tsconfig.json deleted file mode 100644 index 87bbf5b5fa49..000000000000 --- a/sdk/applicationinsights/applicationinsights-query/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es5", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": ["es6"], - "declaration": true, - "outDir": "./esm", - "importHelpers": true - }, - "include": ["./src/**/*.ts"], - "exclude": ["node_modules"] -}