diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/CHANGELOG.md b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/CHANGELOG.md
deleted file mode 100644
index a7bc323ad869..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/CHANGELOG.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Release History
-
-## 1.1.0-beta.1 (Unreleased)
-
-
-## 1.0.0 (2020-10-15)
-
-- Release non-preview version
-- Bug fix: custom measurements not deserialized from response https://github.com/Azure/azure-sdk-for-net/issues/15524
-
-
-## 0.9.0-preview.2 (2020-09-25)
-
-- Bug fix: custom dimensions not deserialized from response https://github.com/Azure/azure-sdk-for-net/issues/13042
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Directory.Build.props b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Directory.Build.props
deleted file mode 100644
index e31f5d6e9b27..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Directory.Build.props
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- true
-
-
-
-
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Microsoft.Azure.ApplicationInsights.sln b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Microsoft.Azure.ApplicationInsights.sln
deleted file mode 100644
index 90ad7d28f8f0..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/Microsoft.Azure.ApplicationInsights.sln
+++ /dev/null
@@ -1,43 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.28307.539
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.ApplicationInsights.Query", "src\Microsoft.Azure.ApplicationInsights.Query.csproj", "{11C5E91A-77D0-4F53-B2E2-1C9C47713996}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data.ApplicationInsights.Tests", "tests\Data.ApplicationInsights.Tests.csproj", "{6190B300-2275-4A88-9193-3D238ED9F106}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "..\..\mgmtcommon\TestFramework\ClientRuntime.Azure.TestFramework\Microsoft.Rest.ClientRuntime.Azure.TestFramework.csproj", "{F699762E-7B16-49E0-B593-5E4D3849D9D9}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Test.HttpRecorder", "..\..\mgmtcommon\TestFramework\Microsoft.Azure.Test.HttpRecorder\Microsoft.Azure.Test.HttpRecorder.csproj", "{20D52A22-B963-4675-B6FD-F3AC96B81057}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {11C5E91A-77D0-4F53-B2E2-1C9C47713996}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {11C5E91A-77D0-4F53-B2E2-1C9C47713996}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {11C5E91A-77D0-4F53-B2E2-1C9C47713996}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {11C5E91A-77D0-4F53-B2E2-1C9C47713996}.Release|Any CPU.Build.0 = Release|Any CPU
- {6190B300-2275-4A88-9193-3D238ED9F106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6190B300-2275-4A88-9193-3D238ED9F106}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6190B300-2275-4A88-9193-3D238ED9F106}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6190B300-2275-4A88-9193-3D238ED9F106}.Release|Any CPU.Build.0 = Release|Any CPU
- {F699762E-7B16-49E0-B593-5E4D3849D9D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F699762E-7B16-49E0-B593-5E4D3849D9D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F699762E-7B16-49E0-B593-5E4D3849D9D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F699762E-7B16-49E0-B593-5E4D3849D9D9}.Release|Any CPU.Build.0 = Release|Any CPU
- {20D52A22-B963-4675-B6FD-F3AC96B81057}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {20D52A22-B963-4675-B6FD-F3AC96B81057}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {20D52A22-B963-4675-B6FD-F3AC96B81057}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {20D52A22-B963-4675-B6FD-F3AC96B81057}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {9E8359F5-2713-4D12-9757-E03FD7418949}
- EndGlobalSection
-EndGlobal
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApiKeyClientCredentials.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApiKeyClientCredentials.cs
deleted file mode 100644
index b33732b81745..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApiKeyClientCredentials.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Microsoft.Rest;
-using System;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public class ApiKeyClientCredentials : ServiceClientCredentials
- {
- private string token;
-
- public ApiKeyClientCredentials(string token)
- {
- if (string.IsNullOrEmpty(token))
- {
- throw new ArgumentException($"{nameof(token)} must not be null or empty");
- }
-
- this.token = token;
- }
-
- public override Task ProcessHttpRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken)
- {
- request.Headers.Add("x-api-key", token);
- return Task.FromResult(true);
- }
- }
-}
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApplicationInsightsDataClient.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApplicationInsightsDataClient.cs
deleted file mode 100644
index 9791a20e8132..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/ApplicationInsightsDataClient.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using Microsoft.Rest;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial class ApplicationInsightsDataClient : ServiceClient, IApplicationInsightsDataClient
- {
- ///
- /// Initializes a new instance of the ApplicationInsightsDataClient class.
- ///
- ///
- /// Required. Subscription credentials which uniquely identify client subscription.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- public ApplicationInsightsDataClient(ServiceClientCredentials credentials) : this(credentials, (DelegatingHandler[])null)
- {
- }
-
- partial void CustomInitialize()
- {
- var firstHandler = this.FirstMessageHandler as DelegatingHandler;
- if (firstHandler == null) return;
-
- var customHandler = new CustomDelegatingHandler
- {
- InnerHandler = firstHandler.InnerHandler,
- Client = this,
- };
-
- firstHandler.InnerHandler = customHandler;
- }
-
- public IList AdditionalApplications { get; set; } = new List();
-
- public ApiPreferences Preferences { get; set; } = new ApiPreferences();
-
- public string NameHeader { get; set; }
-
- public string RequestId { get; set; }
- }
-}
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/CustomDelegatingHandler.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/CustomDelegatingHandler.cs
deleted file mode 100644
index 599b4b1f5f68..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/CustomDelegatingHandler.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Http;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- internal class CustomDelegatingHandler : DelegatingHandler
- {
- internal ApplicationInsightsDataClient Client { get; set; }
-
- internal const string InternalNameHeader = "csharpsdk";
-
- protected async override Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
- {
- var appName = InternalNameHeader;
- if (!string.IsNullOrWhiteSpace(Client.NameHeader))
- {
- appName += $",{Client.NameHeader}";
- }
-
- request.Headers.Add("prefer", Client.Preferences.ToString());
- request.Headers.Add("x-ms-app", appName);
- request.Headers.Add("x-ms-client-request-id", Client.RequestId ?? Guid.NewGuid().ToString());
-
- // Call the inner handler.
- var response = await base.SendAsync(request, cancellationToken).ConfigureAwait(false);
-
- return response;
- }
- }
-}
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Events.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Events.cs
deleted file mode 100644
index 7afe4236fca4..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Events.cs
+++ /dev/null
@@ -1,1195 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query;
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using Microsoft.Rest;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial class Events : IServiceOperations, IEvents
- {
-
- #region Event Extensions
-
- ///
- /// Execute OData query for trace events
- ///
- ///
- /// Executes an OData query for trace events
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>> GetTraceEventsWithHttpMessagesAsync(
- string appId, string timespan = default(string), string filter = default(string), string search = default(string),
- string orderby = default(string), string select = default(string), int? skip = default(int?),
- int? top = default(int?), string format = default(string), bool? count = default(bool?),
- string apply = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Traces, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a trace event
- ///
- ///
- /// Gets the data for a single trace event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>> GetTraceEventWithHttpMessagesAsync(
- string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.Traces, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for custom events
- ///
- ///
- /// Executes an OData query for custom events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetCustomEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.CustomEvents, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a custom event
- ///
- ///
- /// Gets the data for a single custom event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetCustomEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.CustomEvents, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for page view events
- ///
- ///
- /// Executes an OData query for page view events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetPageViewEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.PageViews, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a page view event
- ///
- ///
- /// Gets the data for a single page view event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetPageViewEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.PageViews, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for browser timing events
- ///
- ///
- /// Executes an OData query for browser timing events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetBrowserTimingEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.BrowserTimings, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a browser timing event
- ///
- ///
- /// Gets the data for a single browser timing event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetBrowserTimingEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.BrowserTimings, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for request events
- ///
- ///
- /// Executes an OData query for request events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetRequestEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Requests, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a request event
- ///
- ///
- /// Gets the data for a single request event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetRequestEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.Requests, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for dependency events
- ///
- ///
- /// Executes an OData query for dependency events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetDependencyEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Dependencies, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a dependency event
- ///
- ///
- /// Gets the data for a single dependency event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetDependencyEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.Dependencies, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for exception events
- ///
- ///
- /// Executes an OData query for exception events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetExceptionEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.Exceptions, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get an exception event
- ///
- ///
- /// Gets the data for a single exception event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetExceptionEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.Exceptions, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for availability result events
- ///
- ///
- /// Executes an OData query for availability result events
- ///
- ///
- /// 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.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetAvailabilityResultEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.AvailabilityResults, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get an availability result event
- ///
- ///
- /// Gets the data for a single availability result event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetAvailabilityResultEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.AvailabilityResults, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for performance counter events
- ///
- ///
- /// Executes an OData query for performance counter events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetPerformanceCounterEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.PerformanceCounters, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a performance counter event
- ///
- ///
- /// Gets the data for a single performance counter event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetPerformanceCounterEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.PerformanceCounters, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Execute OData query for custom metric events
- ///
- ///
- /// Executes an OData query for custom metric events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetCustomMetricEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetByTypeWithHttpMessagesAsync(appId, EventType.CustomMetrics, timespan, filter, search, orderby, select,
- skip, top, format, count, apply, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- ///
- /// Get a custom metricevent
- ///
- ///
- /// Gets the data for a single custom metric event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task>>
- GetCustomMetricEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, EventType.CustomMetrics, eventId, timespan, customHeaders,
- cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body;
- return new HttpOperationResponse>
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new EventsResults
- {
- Aimessages = realBody.Aimessages,
- Value = realBody.Value.OfType().ToList(),
- }
- };
- }
-
- #endregion
-
- }
-}
\ No newline at end of file
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/EventsExtensions.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/EventsExtensions.cs
deleted file mode 100644
index d905a85f5b2a..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/EventsExtensions.cs
+++ /dev/null
@@ -1,1865 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial class EventsExtensions
- {
-
- #region Event Extensions
-
- ///
- /// Execute OData query for trace events
- ///
- ///
- /// Executes an OData query for trace events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetTraceEvents(this IEvents operations, string appId,
- string timespan = default(string), string filter = default(string), string search = default(string),
- string orderby = default(string), string select = default(string), int? skip = default(int?),
- int? top = default(int?), string format = default(string), bool? count = default(bool?),
- string apply = default(string))
- {
- return operations
- .GetTraceEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for trace events
- ///
- ///
- /// Executes an OData query for trace events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetTraceEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetTraceEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a trace event
- ///
- ///
- /// Gets the data for a single trace event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetTraceEvent(this IEvents operations, string appId,
- string eventId, string timespan = default(string))
- {
- return operations.GetTraceEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a trace event
- ///
- ///
- /// Gets the data for a single trace event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetTraceEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetTraceEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for custom events
- ///
- ///
- /// Executes an OData query for custom events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetCustomEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetCustomEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for custom events
- ///
- ///
- /// Executes an OData query for custom events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetCustomEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetCustomEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a custom event
- ///
- ///
- /// Gets the data for a single custom event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetCustomEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetCustomEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a custom event
- ///
- ///
- /// Gets the data for a single custom event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetCustomEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetCustomEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for page view events
- ///
- ///
- /// Executes an OData query for page view events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetPageViewEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetPageViewEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for page view events
- ///
- ///
- /// Executes an OData query for page view events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetPageViewEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetPageViewEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a page view event
- ///
- ///
- /// Gets the data for a single page view event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetPageViewEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetPageViewEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a page view event
- ///
- ///
- /// Gets the data for a single page view event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetPageViewEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetPageViewEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for browser timing events
- ///
- ///
- /// Executes an OData query for browser timing events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetBrowserTimingEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetBrowserTimingEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for browser timing events
- ///
- ///
- /// Executes an OData query for browser timing events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetBrowserTimingEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetBrowserTimingEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a browser timing event
- ///
- ///
- /// Gets the data for a single browser timing event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetBrowserTimingEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetBrowserTimingEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a browser timing event
- ///
- ///
- /// Gets the data for a single browser timing event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetBrowserTimingEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetBrowserTimingEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for request events
- ///
- ///
- /// Executes an OData query for request events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetRequestEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetRequestEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for request events
- ///
- ///
- /// Executes an OData query for request events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetRequestEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetRequestEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a request event
- ///
- ///
- /// Gets the data for a single request event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetRequestEvent(this IEvents operations, string appId,
- string eventId, string timespan = default(string))
- {
- return operations.GetRequestEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a request event
- ///
- ///
- /// Gets the data for a single request event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetRequestEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetRequestEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for dependency events
- ///
- ///
- /// Executes an OData query for dependency events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetDependencyEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetDependencyEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for dependency events
- ///
- ///
- /// Executes an OData query for dependency events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetDependencyEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetDependencyEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a dependency event
- ///
- ///
- /// Gets the data for a single dependency event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetDependencyEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetDependencyEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a dependency event
- ///
- ///
- /// Gets the data for a single dependency event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetDependencyEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetDependencyEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for exception events
- ///
- ///
- /// Executes an OData query for exception events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetExceptionEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetExceptionEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for exception events
- ///
- ///
- /// Executes an OData query for exception events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetExceptionEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetExceptionEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get an exception event
- ///
- ///
- /// Gets the data for a single exception event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetExceptionEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetExceptionEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get an exception event
- ///
- ///
- /// Gets the data for a single exception event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetExceptionEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetExceptionEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for availability result events
- ///
- ///
- /// Executes an OData query for availability result events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetAvailabilityResultEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetAvailabilityResultEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for availability result events
- ///
- ///
- /// Executes an OData query for availability result events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetAvailabilityResultEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetAvailabilityResultEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get an availability result event
- ///
- ///
- /// Gets the data for a single availability result event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetAvailabilityResultEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetAvailabilityResultEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get an availability result event
- ///
- ///
- /// Gets the data for a single availability result event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetAvailabilityResultEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetAvailabilityResultEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for performance counter events
- ///
- ///
- /// Executes an OData query for performance counter events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetPerformanceCounterEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetPerformanceCounterEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for performance counter events
- ///
- ///
- /// Executes an OData query for performance counter events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetPerformanceCounterEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetPerformanceCounterEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a performance counter event
- ///
- ///
- /// Gets the data for a single performance counter event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetPerformanceCounterEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetPerformanceCounterEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a performance counter event
- ///
- ///
- /// Gets the data for a single performance counter event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetPerformanceCounterEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetPerformanceCounterEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Execute OData query for custom metric events
- ///
- ///
- /// Executes an OData query for custom metric events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- public static EventsResults GetCustomMetricEvents(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string))
- {
- return operations
- .GetCustomMetricEventsAsync(appId, timespan, filter, search, orderby, select, skip, top, format, count, apply)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Execute OData query for custom metric events
- ///
- ///
- /// Executes an OData query for custom metric events
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetCustomMetricEventsAsync(
- this IEvents operations, string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetCustomMetricEventsWithHttpMessagesAsync(appId, timespan, filter, search, orderby,
- select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Get a custom metricevent
- ///
- ///
- /// Gets the data for a single custom metric event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- public static EventsResults GetCustomMetricEvent(
- this IEvents operations, string appId, string eventId, string timespan = default(string))
- {
- return operations.GetCustomMetricEventAsync(appId, eventId, timespan).GetAwaiter().GetResult();
- }
-
- ///
- /// Get a custom metricevent
- ///
- ///
- /// Gets the data for a single custom metric event
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> GetCustomMetricEventAsync(
- this IEvents operations, string appId, string eventId, string timespan = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetCustomMetricEventWithHttpMessagesAsync(appId, eventId, timespan, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IApplicationInsightsDataClient.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IApplicationInsightsDataClient.cs
deleted file mode 100644
index 1781409eaf51..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IApplicationInsightsDataClient.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Rest;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial interface IApplicationInsightsDataClient
- {
- ///
- /// Additional apps referenced in cross-resource queries.
- ///
- IList AdditionalApplications { get; set; }
-
- ApiPreferences Preferences { get; set; }
-
- ///
- /// Unique name for the calling application. This is only used for telemetry and debugging.
- ///
- string NameHeader { get; set; }
-
- ///
- /// A unique ID per request. This will be generated per request if not specified.
- ///
- string RequestId { get; set; }
- }
-}
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IEvents.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IEvents.cs
deleted file mode 100644
index d182a8a192db..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IEvents.cs
+++ /dev/null
@@ -1,871 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Rest;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial interface IEvents
- {
- ///
- /// Execute OData query for trace events
- ///
- ///
- /// Executes an OData query for trace events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetTraceEventsWithHttpMessagesAsync(
- string appId, string timespan = default(string), string filter = default(string), string search = default(string),
- string orderby = default(string), string select = default(string), int? skip = default(int?),
- int? top = default(int?), string format = default(string), bool? count = default(bool?),
- string apply = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a trace event
- ///
- ///
- /// Gets the data for a single trace event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetTraceEventWithHttpMessagesAsync(
- string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for custom events
- ///
- ///
- /// Executes an OData query for custom events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetCustomEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a custom event
- ///
- ///
- /// Gets the data for a single custom event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetCustomEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for page view events
- ///
- ///
- /// Executes an OData query for page view events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetPageViewEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a page view event
- ///
- ///
- /// Gets the data for a single page view event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetPageViewEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for browser timing events
- ///
- ///
- /// Executes an OData query for browser timing events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetBrowserTimingEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a browser timing event
- ///
- ///
- /// Gets the data for a single browser timing event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetBrowserTimingEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for request events
- ///
- ///
- /// Executes an OData query for request events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetRequestEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a request event
- ///
- ///
- /// Gets the data for a single request event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetRequestEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for dependency events
- ///
- ///
- /// Executes an OData query for dependency events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetDependencyEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a dependency event
- ///
- ///
- /// Gets the data for a single dependency event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetDependencyEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for exception events
- ///
- ///
- /// Executes an OData query for exception events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetExceptionEventsWithHttpMessagesAsync(string appId, string timespan = default(string), string filter = default(string),
- string search = default(string), string orderby = default(string), string select = default(string),
- int? skip = default(int?), int? top = default(int?), string format = default(string),
- bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get an exception event
- ///
- ///
- /// Gets the data for a single exception event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetExceptionEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for availability result events
- ///
- ///
- /// Executes an OData query for availability result events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetAvailabilityResultEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get an availability result event
- ///
- ///
- /// Gets the data for a single availability result event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetAvailabilityResultEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for performance counter events
- ///
- ///
- /// Executes an OData query for performance counter events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetPerformanceCounterEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a performance counter event
- ///
- ///
- /// Gets the data for a single performance counter event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetPerformanceCounterEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Execute OData query for custom metric events
- ///
- ///
- /// Executes an OData query for custom metric events
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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.
- ///
- ///
- /// An expression used to filter the returned events
- ///
- ///
- /// A free-text search expression to match for whether a particular
- /// event should be returned
- ///
- ///
- /// A comma-separated list of properties with \"asc\" (the default) or
- /// \"desc\" to control the order of returned events
- ///
- ///
- /// Limits the properties to just those requested on each returned
- /// event
- ///
- ///
- /// The number of items to skip over before returning events
- ///
- ///
- /// The number of events to return
- ///
- ///
- /// Format for the returned events
- ///
- ///
- /// Request a count of matching items included with the returned events
- ///
- ///
- /// An expression used for aggregation over returned events
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetCustomMetricEventsWithHttpMessagesAsync(string appId, string timespan = default(string),
- string filter = default(string), string search = default(string), string orderby = default(string),
- string select = default(string), int? skip = default(int?), int? top = default(int?),
- string format = default(string), bool? count = default(bool?), string apply = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Get a custom metricevent
- ///
- ///
- /// Gets the data for a single custom metric event
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// ID of event.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task>> GetCustomMetricEventWithHttpMessagesAsync(string appId, string eventId = default(string), string timespan = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IMetrics.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IMetrics.cs
deleted file mode 100644
index 6a724d8541aa..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/IMetrics.cs
+++ /dev/null
@@ -1,339 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Rest;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial interface IMetrics
- {
- ///
- /// Retrieve summary metric data
- ///
- ///
- /// Gets summary metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task> GetMetricSummaryWithHttpMessagesAsync(string appId, string metricId, string timespan = default(string), IList aggregation = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task> GetIntervaledMetricWithHttpMessagesAsync(string appId,
- string metricId, string timespan = default(string),
- System.TimeSpan? interval = default(System.TimeSpan?), IList aggregation = default(IList),
- IList segment = default(IList), int? top = default(int?), string orderby = default(string),
- string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task> GetSegmentedMetricWithHttpMessagesAsync(string appId, string metricId,
- string timespan = default(string), IList aggregation = default(IList),
- IList segment = default(IList), int? top = default(int?), string orderby = default(string),
- string filter = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- Task> GetIntervaledSegmentedMetricWithHttpMessagesAsync(string appId, string metricId,
- string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?),
- IList aggregation = default(IList), IList segment = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken));
- }
-}
\ No newline at end of file
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Metrics.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Metrics.cs
deleted file mode 100644
index 7d46231937fb..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/Metrics.cs
+++ /dev/null
@@ -1,459 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using Microsoft.Rest;
-using System.Collections.Generic;
-using System.Linq;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial class Metrics : IServiceOperations, IMetrics {
- #region Metric Extensions
-
- ///
- /// Retrieve summary metric data
- ///
- ///
- /// Gets summary metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> GetMetricSummaryWithHttpMessagesAsync(string appId, string metricId, string timespan = default(string), IList aggregation = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, metricId, timespan, null, aggregation, null, top, orderby, filter, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body.Value;
- return new HttpOperationResponse
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new MetricsSummaryResult
- {
- Start = realBody.Start,
- End = realBody.End,
- Sum = realBody.GetSum(),
- Average = realBody.GetAverage(),
- Min = realBody.GetMin(),
- Max = realBody.GetMax(),
- Count = realBody.GetCount()
- }
- };
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> GetIntervaledMetricWithHttpMessagesAsync(string appId,
- string metricId, string timespan = default(string),
- System.TimeSpan? interval = default(System.TimeSpan?), IList aggregation = default(IList),
- IList segment = default(IList), int? top = default(int?), string orderby = default(string),
- string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, metricId, timespan, interval, aggregation, null, top, orderby, filter, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body.Value;
- return new HttpOperationResponse
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new MetricsIntervaledResult
- {
- Start = realBody.Start,
- End = realBody.End,
- Interval = realBody.Interval,
- Intervals = realBody.Segments?.Select(inter =>
- new MetricsIntervaledData
- {
- Sum = inter.GetSum(),
- Average = inter.GetAverage(),
- Min = inter.GetMin(),
- Max = inter.GetMax(),
- Count = inter.GetCount()
- }
- ).ToList()
- }
- };
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> GetSegmentedMetricWithHttpMessagesAsync(string appId, string metricId,
- string timespan = default(string), IList aggregation = default(IList),
- IList segment = default(IList), int? top = default(int?), string orderby = default(string),
- string filter = default(string), Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, metricId, timespan, null, aggregation, segment, top, orderby, filter, customHeaders, cancellationToken);
- var realBody = realResult.Body.Value;
- return new HttpOperationResponse
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new MetricsSegmentedResult
- {
- Start = realBody.Start,
- End = realBody.End,
- Segments= GetSegmentInfo(realBody.Segments),
- }
- };
- }
-
- private static IList GetSegmentInfo(IList segments)
- {
- return segments?.Select(seg =>
- {
- IMetricsBaseSegmentInfo result;
- if (seg.Segments != null && seg.Segments.Count != 0)
- {
- result = new MetricsNestedSegment()
- {
- SegmentId = seg.SegmentId,
- SegmentValue = seg.SegmentValue,
- Segments = GetSegmentInfo(seg.Segments),
- };
- }
- else
- {
- result = new MetricsSegmentedData
- {
- SegmentId = seg.SegmentId,
- SegmentValue = seg.SegmentValue,
- Sum = seg.GetSum(),
- Average = seg.GetAverage(),
- Min = seg.GetMin(),
- Max = seg.GetMax(),
- Count = seg.GetCount()
- };
- }
-
- return result;
- }).ToList();
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> GetIntervaledSegmentedMetricWithHttpMessagesAsync(
- string appId, string metricId,
- string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?),
- IList aggregation = default(IList), IList segment = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string),
- Dictionary> customHeaders = null,
- CancellationToken cancellationToken = default(CancellationToken))
- {
- var realResult = await GetWithHttpMessagesAsync(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter, customHeaders, cancellationToken).ConfigureAwait(false);
- var realBody = realResult.Body.Value;
- return new HttpOperationResponse
- {
- Request = realResult.Request,
- Response = realResult.Response,
- Body = new MetricsIntervaledSegmentedResult
- {
- Start = realBody.Start,
- End = realBody.End,
- Interval = realBody.Interval,
- Intervals = realBody.Segments?.Select(inter =>
- new MetricsSegmentedIntervalData
- {
- Start = inter.Start,
- End = inter.End,
- Segments = GetSegmentInfo(inter.Segments),
- }
- ).ToList()
- }
- };
- }
-
- #endregion
- }
-}
\ No newline at end of file
diff --git a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/MetricsExtensions.cs b/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/MetricsExtensions.cs
deleted file mode 100644
index 117d8f6ed295..000000000000
--- a/sdk/applicationinsights/Microsoft.Azure.ApplicationInsights.Query/src/Customized/MetricsExtensions.cs
+++ /dev/null
@@ -1,698 +0,0 @@
-using Microsoft.Azure.ApplicationInsights.Query.Models;
-using System.Collections.Generic;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace Microsoft.Azure.ApplicationInsights.Query
-{
- public partial class MetricsExtensions
- {
-
- #region Metric Extensions
-
- ///
- /// Retrieve summary metric data
- ///
- ///
- /// Gets summary metric values for a single metric
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- public static MetricsSummaryResult GetMetricSummary(this IMetrics operations, string appId, string metricId, string timespan = default(string),
- IList aggregation = default(IList), int? top = default(int?),
- string orderby = default(string), string filter = default(string))
- {
- return operations.GetMetricSummaryAsync(appId, metricId, timespan, aggregation, top, orderby, filter).GetAwaiter().GetResult();
- }
-
- ///
- /// Retrieve summary metric data
- ///
- ///
- /// Gets summary metric values for a single metric
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetMetricSummaryAsync(this IMetrics operations, string appId, string metricId, string timespan = default(string),
- IList aggregation = default(IList), int? top = default(int?),
- string orderby = default(string), string filter = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetMetricSummaryWithHttpMessagesAsync(appId, metricId, timespan, aggregation, top, orderby, filter, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- public static MetricsIntervaledResult GetIntervaledMetric(this IMetrics operations, string appId,
- string metricId, string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?),
- IList aggregation = default(IList), IList segment = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string))
- {
- return operations
- .GetIntervaledMetricAsync(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter)
- .GetAwaiter().GetResult();
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetIntervaledMetricAsync(this IMetrics operations, string appId,
- string metricId, string timespan = default(string), System.TimeSpan? interval = default(System.TimeSpan?),
- IList aggregation = default(IList), IList segment = default(IList),
- int? top = default(int?), string orderby = default(string), string filter = default(string),
- CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var result = await operations.GetIntervaledMetricWithHttpMessagesAsync(appId, metricId, timespan, interval, aggregation, segment, top, orderby, filter, null, cancellationToken).ConfigureAwait(false))
- {
- return result.Body;
- }
- }
-
- ///
- /// Retrieve metric data
- ///
- ///
- /// Gets metric values for a single metric
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// ID of the application. This is Application ID from the API Access settings
- /// blade in the Azure portal.
- ///
- ///
- /// 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'
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- ///
- /// The number of segments to return. This value is only valid when
- /// segment is specified.
- ///
- ///
- /// The aggregation function and direction to sort the segments by.
- /// This value is only valid when segment is specified.
- ///
- ///
- /// 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.
- ///
- public static MetricsSegmentedResult GetSegmentedMetric(this IMetrics operations, string appId,
- string metricId, string timespan = default(string), IList aggregation = default(IList),
- IList segment = default(IList