diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.sln b/src/SDKs/ApplicationInsights/ApplicationInsights.sln
index a717e75c27dcf..41a751eeb94e4 100644
--- a/src/SDKs/ApplicationInsights/ApplicationInsights.sln
+++ b/src/SDKs/ApplicationInsights/ApplicationInsights.sln
@@ -1,46 +1,38 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
-VisualStudioVersion = 15.0.26730.3
+VisualStudioVersion = 15.0.27130.2024
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApplicationInsights.Tests", "ApplicationInsights.Tests\ApplicationInsights.Tests.csproj", "{D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Data.ApplicationInsights.Tests", "DataPlane\Data.ApplicationInsights.Tests\Data.ApplicationInsights.Tests.csproj", "{FA06A27D-4D07-4157-9C61-36BEBD67970D}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.ApplicationInsights", "Management.ApplicationInsights\Microsoft.Azure.Management.ApplicationInsights.csproj", "{4A1E2ACF-218C-481F-A501-7BB3F3C0B873}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApplicationInsights.Tests", "Management\ApplicationInsights.Tests\ApplicationInsights.Tests.csproj", "{6ECF131B-7B54-48EC-BC33-100AA82C4206}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.ApplicationInsights", "Management\Management.ApplicationInsights\Microsoft.Azure.Management.ApplicationInsights.csproj", "{218115E9-B94C-4CBE-9FE4-485DCA96C2FF}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.ApplicationInsights", "DataPlane\ApplicationInsights\Microsoft.Azure.ApplicationInsights.csproj", "{69672630-2C7C-401F-B923-1D507BD63383}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
- Net45-Debug|Any CPU = Net45-Debug|Any CPU
- Net45-Release|Any CPU = Net45-Release|Any CPU
- Portable-Debug|Any CPU = Portable-Debug|Any CPU
- Portable-Release|Any CPU = Portable-Release|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Net45-Release|Any CPU.Build.0 = Release|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Portable-Release|Any CPU.Build.0 = Release|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D0BC5FFA-C113-4212-BE4A-F95CC8BB4D91}.Release|Any CPU.Build.0 = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Net45-Release|Any CPU.Build.0 = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Portable-Release|Any CPU.Build.0 = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4A1E2ACF-218C-481F-A501-7BB3F3C0B873}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA06A27D-4D07-4157-9C61-36BEBD67970D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA06A27D-4D07-4157-9C61-36BEBD67970D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA06A27D-4D07-4157-9C61-36BEBD67970D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA06A27D-4D07-4157-9C61-36BEBD67970D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6ECF131B-7B54-48EC-BC33-100AA82C4206}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6ECF131B-7B54-48EC-BC33-100AA82C4206}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6ECF131B-7B54-48EC-BC33-100AA82C4206}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6ECF131B-7B54-48EC-BC33-100AA82C4206}.Release|Any CPU.Build.0 = Release|Any CPU
+ {218115E9-B94C-4CBE-9FE4-485DCA96C2FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {218115E9-B94C-4CBE-9FE4-485DCA96C2FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {218115E9-B94C-4CBE-9FE4-485DCA96C2FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {218115E9-B94C-4CBE-9FE4-485DCA96C2FF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {69672630-2C7C-401F-B923-1D507BD63383}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69672630-2C7C-401F-B923-1D507BD63383}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {69672630-2C7C-401F-B923-1D507BD63383}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {69672630-2C7C-401F-B923-1D507BD63383}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/src/SDKs/ApplicationInsights/AzSdk.RP.props b/src/SDKs/ApplicationInsights/AzSdk.RP.props
new file mode 100644
index 0000000000000..39645fa6dc051
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/AzSdk.RP.props
@@ -0,0 +1,7 @@
+
+
+
+
+ $(PackageTags);$(CommonTags);$(AzureApiTag);
+
+
\ No newline at end of file
diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApiKeyClientCredentials.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApiKeyClientCredentials.cs
new file mode 100644
index 0000000000000..c41f9f07dcb12
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApiKeyClientCredentials.cs
@@ -0,0 +1,29 @@
+using Microsoft.Rest;
+using System;
+using System.Net.Http;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.ApplicationInsights
+{
+ 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/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClient.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClient.cs
new file mode 100644
index 0000000000000..14c7c7a5f815b
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClient.cs
@@ -0,0 +1,1582 @@
+using Microsoft.Azure.ApplicationInsights.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
+{
+ 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; }
+
+ #region Metric Extensions
+
+ ///
+ /// Retrieve summary metric data
+ ///
+ ///
+ /// Gets summary metric values for a single metric
+ ///
+ ///
+ /// 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 metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetMetricWithHttpMessagesAsync(metricId, timespan, null, aggregation, null, top, orderby, filter, customHeaders, cancellationToken);
+ 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 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 metricId,
+ System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetMetricWithHttpMessagesAsync(metricId, timespan, interval, aggregation, null, top, orderby, filter, customHeaders, cancellationToken);
+ 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 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 metricId,
+ System.TimeSpan? timespan = 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 GetMetricWithHttpMessagesAsync(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 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 metricId,
+ System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetMetricWithHttpMessagesAsync(metricId, timespan, interval, aggregation, segment, top, orderby, filter, customHeaders, cancellationToken);
+ 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
+
+ #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(
+ System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.Traces, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.Traces, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.CustomEvents, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.CustomEvents, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.PageViews, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.PageViews, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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 GetEventsWithHttpMessagesAsync(EventType.BrowserTimings, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.BrowserTimings, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.Requests, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.Requests, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.Dependencies, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.Dependencies, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?), 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 GetEventsWithHttpMessagesAsync(EventType.Exceptions, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.Exceptions, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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.
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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 GetEventsWithHttpMessagesAsync(EventType.AvailabilityResults, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.AvailabilityResults, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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 GetEventsWithHttpMessagesAsync(EventType.PerformanceCounters, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.PerformanceCounters, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ ///
+ ///
+ /// 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(System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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 GetEventsWithHttpMessagesAsync(EventType.CustomMetrics, timespan, filter, search, orderby, select,
+ skip, top, format, count, apply, customHeaders, cancellationToken);
+ 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ Dictionary> customHeaders = null,
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ var realResult = await GetEventWithHttpMessagesAsync(EventType.CustomMetrics, eventId, timespan, customHeaders,
+ cancellationToken);
+ 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
+ }
+}
diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClientExtensions.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClientExtensions.cs
new file mode 100644
index 0000000000000..33468fc3e442e
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/ApplicationInsightsDataClientExtensions.cs
@@ -0,0 +1,2359 @@
+using Microsoft.Azure.ApplicationInsights.Models;
+using System.Collections.Generic;
+using System.Threading;
+using System.Threading.Tasks;
+
+namespace Microsoft.Azure.ApplicationInsights
+{
+ public static partial class ApplicationInsightsDataClientExtensions
+ {
+ #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 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 IApplicationInsightsDataClient operations, string metricId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ IList aggregation = default(IList), int? top = default(int?),
+ string orderby = default(string), string filter = default(string))
+ {
+ return operations.GetMetricSummaryAsync(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 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 IApplicationInsightsDataClient operations, string metricId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations,
+ string metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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(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 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 IApplicationInsightsDataClient operations,
+ string metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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(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 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 IApplicationInsightsDataClient operations,
+ string metricId, System.TimeSpan? timespan = 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.GetSegmentedMetricAsync(metricId, timespan, 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 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 cancellation token.
+ ///
+ public static async Task GetSegmentedMetricAsync(this IApplicationInsightsDataClient operations,
+ string metricId, System.TimeSpan? timespan = 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.GetSegmentedMetricWithHttpMessagesAsync(metricId, timespan, 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 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 MetricsIntervaledSegmentedResult GetIntervaledSegmentedMetric(
+ this IApplicationInsightsDataClient operations, string metricId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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
+ .GetIntervaledSegmentedMetricAsync(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 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 GetIntervaledSegmentedMetricAsync(
+ this IApplicationInsightsDataClient operations, string metricId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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.GetIntervaledSegmentedMetricWithHttpMessagesAsync(metricId, timespan,
+ interval, aggregation, segment, top, orderby, filter, null, cancellationToken).ConfigureAwait(false))
+ {
+ return result.Body;
+ }
+ }
+
+ #endregion
+
+ #region Event Extensions
+
+ ///
+ /// Execute OData query for trace events
+ ///
+ ///
+ /// Executes an OData query for trace events
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations,
+ System.TimeSpan? timespan = default(System.TimeSpan?), 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations,
+ string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetTraceEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetTraceEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetCustomEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetCustomEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetPageViewEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetPageViewEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetBrowserTimingEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetBrowserTimingEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations,
+ string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetRequestEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetRequestEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetDependencyEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetDependencyEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetExceptionEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetExceptionEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetAvailabilityResultEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetAvailabilityResultEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetPerformanceCounterEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetPerformanceCounterEventWithHttpMessagesAsync(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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.
+ ///
+ ///
+ /// 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 IApplicationInsightsDataClient operations, System.TimeSpan? timespan = default(System.TimeSpan?),
+ 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(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?))
+ {
+ return operations.GetCustomMetricEventAsync(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 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 IApplicationInsightsDataClient operations, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?),
+ CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var result = await operations.GetCustomMetricEventWithHttpMessagesAsync(eventId, timespan, null, cancellationToken).ConfigureAwait(false))
+ {
+ return result.Body;
+ }
+ }
+
+ #endregion
+ }
+}
diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/CustomDelegatingHandler.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/CustomDelegatingHandler.cs
new file mode 100644
index 0000000000000..2dfac8f58c2a4
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/CustomDelegatingHandler.cs
@@ -0,0 +1,35 @@
+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
+{
+ 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);
+
+ return response;
+ }
+ }
+}
diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/IApplicationInsightsDataClient.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/IApplicationInsightsDataClient.cs
new file mode 100644
index 0000000000000..6ae29bae74712
--- /dev/null
+++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/IApplicationInsightsDataClient.cs
@@ -0,0 +1,1043 @@
+using Microsoft.Azure.ApplicationInsights.Models;
+using System.Collections.Generic;
+using System.Threading;
+using System.Threading.Tasks;
+using Microsoft.Rest;
+
+namespace Microsoft.Azure.ApplicationInsights
+{
+ 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; }
+
+ #region Metric Extensions
+
+ ///
+ /// Retrieve summary metric data
+ ///
+ ///
+ /// Gets summary metric values for a single metric
+ ///
+ ///
+ /// 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 metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 metricId, System.TimeSpan? timespan = 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 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 metricId, System.TimeSpan? timespan = default(System.TimeSpan?), 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));
+
+ #endregion
+
+ #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.
+ ///
+ Task>> GetTraceEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for custom events
+ ///
+ ///
+ /// Executes an OData query for custom 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.
+ ///
+ Task>> GetCustomEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for page view events
+ ///
+ ///
+ /// Executes an OData query for page view 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.
+ ///
+ Task>> GetPageViewEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for browser timing events
+ ///
+ ///
+ /// Executes an OData query for browser timing 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.
+ ///
+ Task>> GetBrowserTimingEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for request events
+ ///
+ ///
+ /// Executes an OData query for request 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.
+ ///
+ Task>> GetRequestEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for dependency events
+ ///
+ ///
+ /// Executes an OData query for dependency 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.
+ ///
+ Task>> GetDependencyEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+
+ ///
+ /// Execute OData query for exception events
+ ///
+ ///
+ /// Executes an OData query for exception 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.
+ ///
+ Task>> GetExceptionEventsWithHttpMessagesAsync(System.TimeSpan? timespan = default(System.TimeSpan?), 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 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 eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary