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> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// 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. + /// + 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)); + + /// + /// 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. + /// + Task>> GetAvailabilityResultEventWithHttpMessagesAsync(string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// 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. + /// + 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)); + + /// + /// 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. + /// + Task>> GetPerformanceCounterEventWithHttpMessagesAsync(string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// 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. + /// + 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)); + + /// + /// 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. + /// + Task>> GetCustomMetricEventWithHttpMessagesAsync(string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ApiPreferences.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ApiPreferences.cs new file mode 100644 index 0000000000000..8715cab4c189f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ApiPreferences.cs @@ -0,0 +1,39 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public class ApiPreferences + { + /// + /// See https://dev.applicationinsights.io/documentation/Using-the-API/RequestOptions + /// + public bool IncludeRender { get; set; } = false; + + /// + /// See https://dev.applicationinsights.io/documentation/Using-the-API/RequestOptions + /// + public bool IncludeStatistics { get; set; } = false; + + /// + /// Puts an upper bound on the amount of time the server will spend processing the query. See: https://dev.applicationinsights.io/documentation/Using-the-API/Timeouts + /// + public int Wait { get; set; } = int.MinValue; + + public override string ToString() + { + var pref = "response-v1=true"; + if (IncludeRender) + { + pref += ",include-render=true"; + } + if (IncludeStatistics) + { + pref += ",include-statistics=true"; + } + if (Wait != int.MinValue) + { + pref += $",wait={Wait}"; + } + + return pref; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseMetricInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseMetricInfo.cs new file mode 100644 index 0000000000000..319810d7a5705 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseMetricInfo.cs @@ -0,0 +1,84 @@ +using Newtonsoft.Json.Linq; +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public abstract class BaseMetricInfo + { + internal abstract IDictionary GetAdditionalProperties(); + + public string MetricId { get; private set; } = null; + public Dictionary MetricValues { get; set; } = new Dictionary(); + + [OnDeserialized] + internal void InitMetricFields(StreamingContext context) + { + var additionalProperties = GetAdditionalProperties(); + + if (additionalProperties != null) + { + foreach (var additionalProp in additionalProperties) + { + if (additionalProp.Value is object) + { + var dict = additionalProp.Value as JObject; + if (dict == null) continue; + + MetricId = additionalProp.Key; + + foreach (var prop in dict.Properties()) + { + MetricValues.Add(prop.Name, prop.Value.Value()); + } + } + } + } + } + + private float? GetAggregatedValue(string aggregation) + { + if (MetricValues.TryGetValue(aggregation, out var value)) + { + return value; + } + else + { + return null; + } + } + + public float? GetSum() + { + return GetAggregatedValue("sum"); + } + + public float? GetAverage() + { + return GetAggregatedValue("avg"); + } + + public float? GetMin() + { + return GetAggregatedValue("min"); + } + + public float? GetMax() + { + return GetAggregatedValue("max"); + } + + public int? GetCount() + { + var count = GetAggregatedValue("count"); + if (count != null) + { + return (int) count; + } + else + { + return null; + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseSegmentInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseSegmentInfo.cs new file mode 100644 index 0000000000000..e08e8321cff5a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/BaseSegmentInfo.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights.Models; +using Newtonsoft.Json.Linq; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public abstract class BaseSegmentInfo : BaseMetricInfo + { + public string SegmentId { get; private set; } + public string SegmentValue { get; private set; } + + [OnDeserialized] + internal void InitSegmentFields(StreamingContext context) + { + var additionalProperties = GetAdditionalProperties(); + + if (additionalProperties != null) + { + foreach (var additionalProp in additionalProperties) + { + if (additionalProp.Value is string) + { + SegmentId = additionalProp.Key; + SegmentValue = additionalProp.Value as string; + } + } + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorDetail.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorDetail.cs new file mode 100644 index 0000000000000..ac29def4a079a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorDetail.cs @@ -0,0 +1,16 @@ +using System.Text; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class ErrorDetail + { + internal void PrettyPrint(StringBuilder sb, string indentation) + { + sb.AppendLine($"{indentation}Code={Code}, Message={Message}, Target={Target}, Value={Value}"); + if (Resources != null && Resources.Count > 0) + { + sb.AppendLine($"{indentation} Resources={string.Join(",", Resources)}"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorInfo.cs new file mode 100644 index 0000000000000..ceaea3d537556 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorInfo.cs @@ -0,0 +1,24 @@ +using System.Text; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class ErrorInfo + { + internal void PrettyPrint(StringBuilder sb, string indentation = "") + { + sb.AppendLine($"{indentation}Code={Code}, Message={Message}"); + if (Details != null) + { + foreach (var detail in Details) + { + detail.PrettyPrint(sb, $"{indentation} "); + } + } + + if (Innererror != null) + { + Innererror.PrettyPrint(sb, $"{indentation} "); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponse.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponse.cs new file mode 100644 index 0000000000000..47bcf06c1547a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponse.cs @@ -0,0 +1,20 @@ +using System.Text; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class ErrorResponse + { + public override string ToString() + { + var sb = new StringBuilder(); + sb.AppendLine(base.ToString()); + + if (Error != null) + { + Error.PrettyPrint(sb); + } + + return sb.ToString(); + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponseException.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponseException.cs new file mode 100644 index 0000000000000..59d1aaa6b01e3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/ErrorResponseException.cs @@ -0,0 +1,12 @@ +using Microsoft.Rest; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class ErrorResponseException : RestException + { + public override string ToString() + { + return Body != null ? Body.ToString() : Response.Content; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsResults.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsResults.cs new file mode 100644 index 0000000000000..3e6cd5d81e4c0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsResults.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public class EventsResults : EventsResults where T : EventsResultData + { + /// + /// Typed version of parent's Value. + /// + public new IList Value + { + get { return base.Value.OfType().ToList(); } + internal set { base.Value = value.OfType().ToList(); } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsTraceResults.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsTraceResults.cs new file mode 100644 index 0000000000000..19662fb20d4b8 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/EventsTraceResults.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using Newtonsoft.Json; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// A trace events query result. + /// + public class EventsTraceResults : EventsResults + { + /// + /// Gets or sets contents of the events query result. + /// + [JsonProperty(PropertyName = "value")] + public new IList Value { get; set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/IMetricData.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/IMetricData.cs new file mode 100644 index 0000000000000..bc0816baaf20c --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/IMetricData.cs @@ -0,0 +1,11 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public interface IMetricData + { + float? Sum { get; } + float? Average { get; } + float? Min { get; } + float? Max { get; } + int? Count { get; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsBaseSegmentInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsBaseSegmentInfo.cs new file mode 100644 index 0000000000000..bd8a1a1d3d59f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsBaseSegmentInfo.cs @@ -0,0 +1,18 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// Contains fields common between nested segmented data and segmented metric data. + /// + public interface IMetricsBaseSegmentInfo + { + /// + /// The name of the segment. + /// + string SegmentId { get; } + + /// + /// The value of the segment. + /// + string SegmentValue { get; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledData.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledData.cs new file mode 100644 index 0000000000000..850eb0260dc52 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledData.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// An intervaled metric result data. + /// + public class MetricsIntervaledData : IMetricData + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// Gets sum of the metric (if requested). + /// + public float? Sum { get; internal set; } + + /// + /// Gets average of the metric (if requested). + /// + public float? Average { get; internal set; } + + /// + /// Gets minof the metric (if requested). + /// + public float? Min { get; internal set; } + + /// + /// Gets max of the metric (if requested). + /// + public float? Max { get; internal set; } + + /// + /// Gets count of the metric (if requested). + /// + public int? Count { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledResult.cs new file mode 100644 index 0000000000000..7d25181cce242 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledResult.cs @@ -0,0 +1,30 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using System.Collections.Generic; + + /// + /// An intervaled metric result data. + /// + public class MetricsIntervaledResult + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// The interval used to segment the data. + /// + public System.TimeSpan? Interval { get; internal set; } + + /// + /// The intervals of data. + /// + public IList Intervals { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledSegmentedResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledSegmentedResult.cs new file mode 100644 index 0000000000000..9c3c1640f66ca --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsIntervaledSegmentedResult.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// An intervaled and segmented metric result. + /// + public class MetricsIntervaledSegmentedResult + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// The interval used to segment the data. + /// + public System.TimeSpan? Interval { get; internal set; } + + /// + /// The intervals of data. + /// + public IList Intervals { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsNestedSegment.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsNestedSegment.cs new file mode 100644 index 0000000000000..091bb4d612c42 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsNestedSegment.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// A nested segment. + /// + public class MetricsNestedSegment : IMetricsBaseSegmentInfo + { + /// + /// The name of the segment. + /// + public string SegmentId { get; internal set; } + + /// + /// The value of the segment. + /// + public string SegmentValue { get; internal set; } + + /// + /// The segments of data + /// + public IList Segments { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsResultInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsResultInfo.cs new file mode 100644 index 0000000000000..47f0fd7516a54 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsResultInfo.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class MetricsResultInfo : BaseMetricInfo + { + internal override IDictionary GetAdditionalProperties() + { + return AdditionalProperties; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentInfo.cs new file mode 100644 index 0000000000000..e264cda9a4ee1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentInfo.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + public partial class MetricsSegmentInfo : BaseSegmentInfo + { + internal override IDictionary GetAdditionalProperties() + { + return AdditionalProperties; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedData.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedData.cs new file mode 100644 index 0000000000000..a5bceaa80306d --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedData.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// The metric values for a segment. + /// + public class MetricsSegmentedData : IMetricsBaseSegmentInfo, IMetricData + { + /// + /// The name of the segment. + /// + public string SegmentId { get; internal set; } + + /// + /// The value of the segment. + /// + public string SegmentValue { get; internal set; } + + /// + /// Gets sum of the metric (if requested). + /// + public float? Sum { get; internal set; } + + /// + /// Gets average of the metric (if requested). + /// + public float? Average { get; internal set; } + + /// + /// Gets minof the metric (if requested). + /// + public float? Min { get; internal set; } + + /// + /// Gets max of the metric (if requested). + /// + public float? Max { get; internal set; } + + /// + /// Gets count of the metric (if requested). + /// + public int? Count { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedIntervalData.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedIntervalData.cs new file mode 100644 index 0000000000000..acda0080e9064 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedIntervalData.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// A segment of intervaled data. + /// + public class MetricsSegmentedIntervalData + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// The segments of data + /// + public IList Segments { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedResult.cs new file mode 100644 index 0000000000000..44e4f7d1c6b8d --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSegmentedResult.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// A segmented metric result data. + /// + public class MetricsSegmentedResult + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// The segments of data + /// + public IList Segments { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSummaryResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSummaryResult.cs new file mode 100644 index 0000000000000..9f798e9432a97 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/MetricsSummaryResult.cs @@ -0,0 +1,43 @@ +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// A metric summary result. + /// + public class MetricsSummaryResult : IMetricData + { + /// + /// Gets start time of the metric. + /// + public System.DateTime? Start { get; internal set; } + + /// + /// Gets start time of the metric. + /// + public System.DateTime? End { get; internal set; } + + /// + /// Gets sum of the metric (if requested). + /// + public float? Sum { get; internal set; } + + /// + /// Gets average of the metric (if requested). + /// + public float? Average { get; internal set; } + + /// + /// Gets minof the metric (if requested). + /// + public float? Min { get; internal set; } + + /// + /// Gets max of the metric (if requested). + /// + public float? Max { get; internal set; } + + /// + /// Gets count of the metric (if requested). + /// + public int? Count { get; internal set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/QueryResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/QueryResult.cs new file mode 100644 index 0000000000000..7c10a39a0b104 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Customized/Models/QueryResult.cs @@ -0,0 +1,35 @@ +using Newtonsoft.Json; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + /// + /// The query response. This currently only supports the thinned query + /// response format. + /// + public partial class QueryResults + { + /// + /// Enumerates over all rows in all tables. + /// + [JsonProperty(PropertyName = "results")] + public IEnumerable> Results + { + get + { + foreach (var table in Tables) + { + foreach (var row in table.Rows) + { + yield return table.Columns.Zip(row, (column, cell) => new { column.Name, cell }) + .ToDictionary(entry => entry.Name, entry => entry.cell); + } + } + } + } + + public IDictionary Render { get; set; } + public IDictionary Statistics { get; set; } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClient.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClient.cs new file mode 100644 index 0000000000000..af509a87c7936 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClient.cs @@ -0,0 +1,1789 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Composite Swagger for Application Insights Data Client + /// + public partial class ApplicationInsightsDataClient : ServiceClient, IApplicationInsightsDataClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// ID of the application. This is Application ID from the API Access settings + /// blade in the Azure portal. + /// + public string AppId { get; set; } + + /// + /// Subscription credentials which uniquely identify client subscription. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ApplicationInsightsDataClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ApplicationInsightsDataClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ApplicationInsightsDataClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ApplicationInsightsDataClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ApplicationInsightsDataClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ApplicationInsightsDataClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ApplicationInsightsDataClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ApplicationInsightsDataClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Subscription credentials which uniquely identify client subscription. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ApplicationInsightsDataClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + BaseUri = new System.Uri("https://api.applicationinsights.io/v1"); + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); + CustomInitialize(); + } + /// + /// Retrieve metric data + /// + /// + /// Gets data 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetMetricWithHttpMessagesAsync(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)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + if (metricId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "metricId"); + } + if (aggregation != null) + { + if (aggregation.Count < 1) + { + throw new ValidationException(ValidationRules.MinItems, "aggregation", 1); + } + } + if (segment != null) + { + if (segment.Count < 1) + { + throw new ValidationException(ValidationRules.MinItems, "segment", 1); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("metricId", metricId); + tracingParameters.Add("timespan", timespan); + tracingParameters.Add("interval", interval); + tracingParameters.Add("aggregation", aggregation); + tracingParameters.Add("segment", segment); + tracingParameters.Add("top", top); + tracingParameters.Add("orderby", orderby); + tracingParameters.Add("filter", filter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMetric", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/metrics/{metricId}").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + _url = _url.Replace("{metricId}", System.Uri.EscapeDataString(metricId)); + List _queryParameters = new List(); + if (timespan != null) + { + _queryParameters.Add(string.Format("timespan={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timespan, SerializationSettings).Trim('"')))); + } + if (interval != null) + { + _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(interval, SerializationSettings).Trim('"')))); + } + if (aggregation != null) + { + _queryParameters.Add(string.Format("aggregation={0}", System.Uri.EscapeDataString(string.Join(",", aggregation)))); + } + if (segment != null) + { + _queryParameters.Add(string.Format("segment={0}", System.Uri.EscapeDataString(string.Join(",", segment)))); + } + if (top != null) + { + _queryParameters.Add(string.Format("top={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(top, SerializationSettings).Trim('"')))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("orderby={0}", System.Uri.EscapeDataString(orderby))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("filter={0}", System.Uri.EscapeDataString(filter))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve metric data + /// + /// + /// Gets metric values for multiple metrics + /// + /// + /// The batched metrics query. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> GetMetricsWithHttpMessagesAsync(IList body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + if (body == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "body"); + } + if (body != null) + { + foreach (var element in body) + { + if (element != null) + { + element.Validate(); + } + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("body", body); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMetrics", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/metrics").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(body != null) + { + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve metric metatadata + /// + /// + /// Gets metadata describing the available metrics + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetMetricsMetadataWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMetricsMetadata", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/metrics/metadata").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Execute OData query + /// + /// + /// Executes an OData query for events + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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 + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetEventsWithHttpMessagesAsync(EventType eventType, 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)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("eventType", eventType); + tracingParameters.Add("timespan", timespan); + tracingParameters.Add("filter", filter); + tracingParameters.Add("search", search); + tracingParameters.Add("orderby", orderby); + tracingParameters.Add("select", select); + tracingParameters.Add("skip", skip); + tracingParameters.Add("top", top); + tracingParameters.Add("format", format); + tracingParameters.Add("count", count); + tracingParameters.Add("apply", apply); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEvents", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/events/{eventType}").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + _url = _url.Replace("{eventType}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(eventType, SerializationSettings).Trim('"'))); + List _queryParameters = new List(); + if (timespan != null) + { + _queryParameters.Add(string.Format("timespan={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timespan, SerializationSettings).Trim('"')))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (search != null) + { + _queryParameters.Add(string.Format("$search={0}", System.Uri.EscapeDataString(search))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } + if (select != null) + { + _queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select))); + } + if (skip != null) + { + _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(skip, SerializationSettings).Trim('"')))); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(top, SerializationSettings).Trim('"')))); + } + if (format != null) + { + _queryParameters.Add(string.Format("$format={0}", System.Uri.EscapeDataString(format))); + } + if (count != null) + { + _queryParameters.Add(string.Format("$count={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(count, SerializationSettings).Trim('"')))); + } + if (apply != null) + { + _queryParameters.Add(string.Format("$apply={0}", System.Uri.EscapeDataString(apply))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get an event + /// + /// + /// Gets the data for a single event + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetEventWithHttpMessagesAsync(EventType eventType, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + if (eventId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "eventId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("eventType", eventType); + tracingParameters.Add("timespan", timespan); + tracingParameters.Add("eventId", eventId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEvent", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/events/{eventType}/{eventId}").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + _url = _url.Replace("{eventType}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(eventType, SerializationSettings).Trim('"'))); + _url = _url.Replace("{eventId}", System.Uri.EscapeDataString(eventId)); + List _queryParameters = new List(); + if (timespan != null) + { + _queryParameters.Add(string.Format("timespan={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timespan, SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get OData metadata + /// + /// + /// Gets OData EDMX metadata describing the event data model + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetEventsMetadataODataWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetEventsMetadataOData", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/events/$metadata").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Execute an Analytics query + /// + /// + /// Executes an Analytics query for data. + /// [Here](/documentation/2-Using-the-API/Query) is an example for using POST + /// with an Analytics query. + /// + /// + /// The query to execute. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// A list of applications that are included in the query. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> QueryWithHttpMessagesAsync(string query, System.TimeSpan? timespan = default(System.TimeSpan?), System.TimeSpan? timespan1 = default(System.TimeSpan?), IList applications = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + if (query == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "query"); + } + QueryBody body = new QueryBody(); + if (query != null || timespan1 != null || applications != null) + { + body.Query = query; + body.Timespan = timespan1; + body.Applications = applications; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("timespan", timespan); + tracingParameters.Add("body", body); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Query", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/query").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + List _queryParameters = new List(); + if (timespan != null) + { + _queryParameters.Add(string.Format("timespan={0}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(timespan, SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(body != null) + { + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get Analytics query metadata + /// + /// + /// Gets Analytics query schema describing the data model + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetQuerySchemaWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (AppId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.AppId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetQuerySchema", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apps/{appId}/query/schema").ToString(); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(AppId)); + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClientExtensions.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClientExtensions.cs new file mode 100644 index 0000000000000..baeec2ae6fa83 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/ApplicationInsightsDataClientExtensions.cs @@ -0,0 +1,581 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights +{ + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ApplicationInsightsDataClient. + /// + public static partial class ApplicationInsightsDataClientExtensions + { + /// + /// Retrieve metric data + /// + /// + /// Gets data 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 MetricsResult GetMetric(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.GetMetricAsync(metricId, timespan, interval, aggregation, segment, top, orderby, filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieve metric data + /// + /// + /// Gets data 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 GetMetricAsync(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.GetMetricWithHttpMessagesAsync(metricId, timespan, interval, aggregation, segment, top, orderby, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve metric data + /// + /// + /// Gets metric values for multiple metrics + /// + /// + /// The operations group for this extension method. + /// + /// + /// The batched metrics query. + /// + public static IList GetMetrics(this IApplicationInsightsDataClient operations, IList body) + { + return operations.GetMetricsAsync(body).GetAwaiter().GetResult(); + } + + /// + /// Retrieve metric data + /// + /// + /// Gets metric values for multiple metrics + /// + /// + /// The operations group for this extension method. + /// + /// + /// The batched metrics query. + /// + /// + /// The cancellation token. + /// + public static async Task> GetMetricsAsync(this IApplicationInsightsDataClient operations, IList body, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetMetricsWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve metric metatadata + /// + /// + /// Gets metadata describing the available metrics + /// + /// + /// The operations group for this extension method. + /// + public static object GetMetricsMetadata(this IApplicationInsightsDataClient operations) + { + return operations.GetMetricsMetadataAsync().GetAwaiter().GetResult(); + } + + /// + /// Retrieve metric metatadata + /// + /// + /// Gets metadata describing the available metrics + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task GetMetricsMetadataAsync(this IApplicationInsightsDataClient operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetMetricsMetadataWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Execute OData query + /// + /// + /// Executes an OData query for events + /// + /// + /// The operations group for this extension method. + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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 GetEvents(this IApplicationInsightsDataClient operations, EventType eventType, 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.GetEventsAsync(eventType, timespan, filter, search, orderby, select, skip, top, format, count, apply).GetAwaiter().GetResult(); + } + + /// + /// Execute OData query + /// + /// + /// Executes an OData query for events + /// + /// + /// The operations group for this extension method. + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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 GetEventsAsync(this IApplicationInsightsDataClient operations, EventType eventType, 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.GetEventsWithHttpMessagesAsync(eventType, timespan, filter, search, orderby, select, skip, top, format, count, apply, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get an event + /// + /// + /// Gets the data for a single event + /// + /// + /// The operations group for this extension method. + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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 GetEvent(this IApplicationInsightsDataClient operations, EventType eventType, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?)) + { + return operations.GetEventAsync(eventType, eventId, timespan).GetAwaiter().GetResult(); + } + + /// + /// Get an event + /// + /// + /// Gets the data for a single event + /// + /// + /// The operations group for this extension method. + /// + /// + /// The type of events to query; either a standard event type (`traces`, + /// `customEvents`, `pageViews`, `requests`, `dependencies`, `exceptions`, + /// `availabilityResults`) or `$all` to query across all event types. Possible + /// values include: '$all', 'traces', 'customEvents', 'pageViews', + /// 'browserTimings', 'requests', 'dependencies', 'exceptions', + /// 'availabilityResults', 'performanceCounters', 'customMetrics' + /// + /// + /// 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 GetEventAsync(this IApplicationInsightsDataClient operations, EventType eventType, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetEventWithHttpMessagesAsync(eventType, eventId, timespan, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get OData metadata + /// + /// + /// Gets OData EDMX metadata describing the event data model + /// + /// + /// The operations group for this extension method. + /// + public static object GetEventsMetadataOData(this IApplicationInsightsDataClient operations) + { + return operations.GetEventsMetadataODataAsync().GetAwaiter().GetResult(); + } + + /// + /// Get OData metadata + /// + /// + /// Gets OData EDMX metadata describing the event data model + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task GetEventsMetadataODataAsync(this IApplicationInsightsDataClient operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetEventsMetadataODataWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Execute an Analytics query + /// + /// + /// Executes an Analytics query for data. + /// [Here](/documentation/2-Using-the-API/Query) is an example for using POST + /// with an Analytics query. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The query to execute. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// A list of applications that are included in the query. + /// + public static QueryResults Query(this IApplicationInsightsDataClient operations, string query, System.TimeSpan? timespan = default(System.TimeSpan?), System.TimeSpan? timespan1 = default(System.TimeSpan?), IList applications = default(IList)) + { + return operations.QueryAsync(query, timespan, timespan1, applications).GetAwaiter().GetResult(); + } + + /// + /// Execute an Analytics query + /// + /// + /// Executes an Analytics query for data. + /// [Here](/documentation/2-Using-the-API/Query) is an example for using POST + /// with an Analytics query. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The query to execute. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 time + /// period value. This timespan is applied in addition to any that are + /// specified in the query expression. + /// + /// + /// A list of applications that are included in the query. + /// + /// + /// The cancellation token. + /// + public static async Task QueryAsync(this IApplicationInsightsDataClient operations, string query, System.TimeSpan? timespan = default(System.TimeSpan?), System.TimeSpan? timespan1 = default(System.TimeSpan?), IList applications = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.QueryWithHttpMessagesAsync(query, timespan, timespan1, applications, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get Analytics query metadata + /// + /// + /// Gets Analytics query schema describing the data model + /// + /// + /// The operations group for this extension method. + /// + public static QueryResults GetQuerySchema(this IApplicationInsightsDataClient operations) + { + return operations.GetQuerySchemaAsync().GetAwaiter().GetResult(); + } + + /// + /// Get Analytics query metadata + /// + /// + /// Gets Analytics query schema describing the data model + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task GetQuerySchemaAsync(this IApplicationInsightsDataClient operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetQuerySchemaWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/IApplicationInsightsDataClient.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/IApplicationInsightsDataClient.cs new file mode 100644 index 0000000000000..a4b00ad823414 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/IApplicationInsightsDataClient.cs @@ -0,0 +1,315 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights +{ + using Microsoft.Rest; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Composite Swagger for Application Insights Data Client + /// + public partial interface IApplicationInsightsDataClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// ID of the application. This is Application ID from the API Access + /// settings blade in the Azure portal. + /// + string AppId { get; set; } + + /// + /// Subscription credentials which uniquely identify client + /// subscription. + /// + ServiceClientCredentials Credentials { get; } + + + /// + /// Retrieve metric data + /// + /// + /// Gets data 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> GetMetricWithHttpMessagesAsync(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 multiple metrics + /// + /// + /// The batched metrics query. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> GetMetricsWithHttpMessagesAsync(IList body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Retrieve metric metatadata + /// + /// + /// Gets metadata describing the available metrics + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> GetMetricsMetadataWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Execute OData query + /// + /// + /// Executes an OData query for events + /// + /// + /// The type of events to query; either a standard event type + /// (`traces`, `customEvents`, `pageViews`, `requests`, `dependencies`, + /// `exceptions`, `availabilityResults`) or `$all` to query across all + /// event types. Possible values include: '$all', 'traces', + /// 'customEvents', 'pageViews', 'browserTimings', 'requests', + /// 'dependencies', 'exceptions', 'availabilityResults', + /// 'performanceCounters', 'customMetrics' + /// + /// + /// 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> GetEventsWithHttpMessagesAsync(EventType eventType, 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 event + /// + /// + /// Gets the data for a single event + /// + /// + /// The type of events to query; either a standard event type + /// (`traces`, `customEvents`, `pageViews`, `requests`, `dependencies`, + /// `exceptions`, `availabilityResults`) or `$all` to query across all + /// event types. Possible values include: '$all', 'traces', + /// 'customEvents', 'pageViews', 'browserTimings', 'requests', + /// 'dependencies', 'exceptions', 'availabilityResults', + /// 'performanceCounters', 'customMetrics' + /// + /// + /// 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> GetEventWithHttpMessagesAsync(EventType eventType, string eventId, System.TimeSpan? timespan = default(System.TimeSpan?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Get OData metadata + /// + /// + /// Gets OData EDMX metadata describing the event data model + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> GetEventsMetadataODataWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Execute an Analytics query + /// + /// + /// Executes an Analytics query for data. + /// [Here](/documentation/2-Using-the-API/Query) is an example for + /// using POST with an Analytics query. + /// + /// + /// The query to execute. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 + /// time period value. This timespan is applied in addition to any + /// that are specified in the query expression. + /// + /// + /// Optional. The timespan over which to query data. This is an ISO8601 + /// time period value. This timespan is applied in addition to any + /// that are specified in the query expression. + /// + /// + /// A list of applications that are included in the query. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> QueryWithHttpMessagesAsync(string query, System.TimeSpan? timespan = default(System.TimeSpan?), System.TimeSpan? timespan1 = default(System.TimeSpan?), IList applications = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Get Analytics query metadata + /// + /// + /// Gets Analytics query schema describing the data model + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> GetQuerySchemaWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Column.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Column.cs new file mode 100644 index 0000000000000..003af69ad3bca --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Column.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A table column. + /// + /// + /// A column in a table. + /// + public partial class Column + { + /// + /// Initializes a new instance of the Column class. + /// + public Column() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Column class. + /// + /// The name of this column. + /// The data type of this column. + public Column(string name = default(string), string type = default(string)) + { + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of this column. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the data type of this column. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorDetail.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorDetail.cs new file mode 100644 index 0000000000000..e99394964e216 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorDetail.cs @@ -0,0 +1,115 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Error details. + /// + public partial class ErrorDetail + { + /// + /// Initializes a new instance of the ErrorDetail class. + /// + public ErrorDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorDetail class. + /// + /// The error's code. + /// A human readable error message. + /// Indicates which property in the request is + /// responsible for the error. + /// Indicates which value in 'target' is + /// responsible for the error. + /// Indicates resources which were responsible + /// for the error. + public ErrorDetail(string code, string message, string target = default(string), string value = default(string), IList resources = default(IList), object additionalProperties = default(object)) + { + Code = code; + Message = message; + Target = target; + Value = value; + Resources = resources; + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error's code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets a human readable error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets indicates which property in the request is responsible + /// for the error. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + /// + /// Gets or sets indicates which value in 'target' is responsible for + /// the error. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Gets or sets indicates resources which were responsible for the + /// error. + /// + [JsonProperty(PropertyName = "resources")] + public IList Resources { get; set; } + + /// + /// + [JsonProperty(PropertyName = "additionalProperties")] + public object AdditionalProperties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Code == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Code"); + } + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorInfo.cs new file mode 100644 index 0000000000000..b7cb09e00f32f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorInfo.cs @@ -0,0 +1,115 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The code and message for an error. + /// + public partial class ErrorInfo + { + /// + /// Initializes a new instance of the ErrorInfo class. + /// + public ErrorInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorInfo class. + /// + /// A machine readable error code. + /// A human readable error message. + /// error details. + /// Inner error details if they exist. + public ErrorInfo(string code, string message, IList details = default(IList), ErrorInfo innererror = default(ErrorInfo), object additionalProperties = default(object)) + { + Code = code; + Message = message; + Details = details; + Innererror = innererror; + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a machine readable error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// Gets or sets a human readable error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets error details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; set; } + + /// + /// Gets or sets inner error details if they exist. + /// + [JsonProperty(PropertyName = "innererror")] + public ErrorInfo Innererror { get; set; } + + /// + /// + [JsonProperty(PropertyName = "additionalProperties")] + public object AdditionalProperties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Code == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Code"); + } + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + if (Details != null) + { + foreach (var element in Details) + { + if (element != null) + { + element.Validate(); + } + } + } + if (Innererror != null) + { + Innererror.Validate(); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponse.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponse.cs new file mode 100644 index 0000000000000..9522d58998812 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponse.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error details. + /// + /// + /// Contains details when the response code indicates an error. + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// The error details. + public ErrorResponse(ErrorInfo error) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error details. + /// + [JsonProperty(PropertyName = "error")] + public ErrorInfo Error { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Error == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Error"); + } + if (Error != null) + { + Error.Validate(); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponseException.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponseException.cs new file mode 100644 index 0000000000000..96da9f292071f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/ErrorResponseException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorResponse + /// information. + /// + public partial class ErrorResponseException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventType.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventType.cs new file mode 100644 index 0000000000000..00b88b3c257bf --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventType.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for EventType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum EventType + { + [EnumMember(Value = "$all")] + All, + [EnumMember(Value = "traces")] + Traces, + [EnumMember(Value = "customEvents")] + CustomEvents, + [EnumMember(Value = "pageViews")] + PageViews, + [EnumMember(Value = "browserTimings")] + BrowserTimings, + [EnumMember(Value = "requests")] + Requests, + [EnumMember(Value = "dependencies")] + Dependencies, + [EnumMember(Value = "exceptions")] + Exceptions, + [EnumMember(Value = "availabilityResults")] + AvailabilityResults, + [EnumMember(Value = "performanceCounters")] + PerformanceCounters, + [EnumMember(Value = "customMetrics")] + CustomMetrics + } + internal static class EventTypeEnumExtension + { + internal static string ToSerializedValue(this EventType? value) + { + return value == null ? null : ((EventType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this EventType value) + { + switch( value ) + { + case EventType.All: + return "$all"; + case EventType.Traces: + return "traces"; + case EventType.CustomEvents: + return "customEvents"; + case EventType.PageViews: + return "pageViews"; + case EventType.BrowserTimings: + return "browserTimings"; + case EventType.Requests: + return "requests"; + case EventType.Dependencies: + return "dependencies"; + case EventType.Exceptions: + return "exceptions"; + case EventType.AvailabilityResults: + return "availabilityResults"; + case EventType.PerformanceCounters: + return "performanceCounters"; + case EventType.CustomMetrics: + return "customMetrics"; + } + return null; + } + + internal static EventType? ParseEventType(this string value) + { + switch( value ) + { + case "$all": + return EventType.All; + case "traces": + return EventType.Traces; + case "customEvents": + return EventType.CustomEvents; + case "pageViews": + return EventType.PageViews; + case "browserTimings": + return EventType.BrowserTimings; + case "requests": + return EventType.Requests; + case "dependencies": + return EventType.Dependencies; + case "exceptions": + return EventType.Exceptions; + case "availabilityResults": + return EventType.AvailabilityResults; + case "performanceCounters": + return EventType.PerformanceCounters; + case "customMetrics": + return EventType.CustomMetrics; + } + return null; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAiInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAiInfo.cs new file mode 100644 index 0000000000000..a8e6707620e2f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAiInfo.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// AI related application info for an event result + /// + public partial class EventsAiInfo + { + /// + /// Initializes a new instance of the EventsAiInfo class. + /// + public EventsAiInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsAiInfo class. + /// + /// iKey of the app + /// Name of the application + /// ID of the application + /// SDK version of the application + public EventsAiInfo(string iKey = default(string), string appName = default(string), string appId = default(string), string sdkVersion = default(string)) + { + IKey = iKey; + AppName = appName; + AppId = appId; + SdkVersion = sdkVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets iKey of the app + /// + [JsonProperty(PropertyName = "iKey")] + public string IKey { get; set; } + + /// + /// Gets or sets name of the application + /// + [JsonProperty(PropertyName = "appName")] + public string AppName { get; set; } + + /// + /// Gets or sets ID of the application + /// + [JsonProperty(PropertyName = "appId")] + public string AppId { get; set; } + + /// + /// Gets or sets SDK version of the application + /// + [JsonProperty(PropertyName = "sdkVersion")] + public string SdkVersion { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsApplicationInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsApplicationInfo.cs new file mode 100644 index 0000000000000..186164485ad8c --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsApplicationInfo.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Application info for an event result + /// + public partial class EventsApplicationInfo + { + /// + /// Initializes a new instance of the EventsApplicationInfo class. + /// + public EventsApplicationInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsApplicationInfo class. + /// + /// Version of the application + public EventsApplicationInfo(string version = default(string)) + { + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets version of the application + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultInfo.cs new file mode 100644 index 0000000000000..3dec6b58c2577 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultInfo.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The availability result info + /// + public partial class EventsAvailabilityResultInfo + { + /// + /// Initializes a new instance of the EventsAvailabilityResultInfo + /// class. + /// + public EventsAvailabilityResultInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsAvailabilityResultInfo + /// class. + /// + /// The name of the availability result + /// Indicates if the availability result was + /// successful + /// The duration of the availability + /// result + /// The performance bucket of the + /// availability result + /// The message of the availability + /// result + /// The location of the availability + /// result + /// The ID of the availability result + /// The size of the availability result + public EventsAvailabilityResultInfo(string name = default(string), string success = default(string), long? duration = default(long?), string performanceBucket = default(string), string message = default(string), string location = default(string), string id = default(string), string size = default(string)) + { + Name = name; + Success = success; + Duration = duration; + PerformanceBucket = performanceBucket; + Message = message; + Location = location; + Id = id; + Size = size; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the availability result + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets indicates if the availability result was successful + /// + [JsonProperty(PropertyName = "success")] + public string Success { get; set; } + + /// + /// Gets or sets the duration of the availability result + /// + [JsonProperty(PropertyName = "duration")] + public long? Duration { get; set; } + + /// + /// Gets or sets the performance bucket of the availability result + /// + [JsonProperty(PropertyName = "performanceBucket")] + public string PerformanceBucket { get; set; } + + /// + /// Gets or sets the message of the availability result + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the location of the availability result + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the ID of the availability result + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the size of the availability result + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultResult.cs new file mode 100644 index 0000000000000..5d0dd11545815 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsAvailabilityResultResult.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An availability result result + /// + [Newtonsoft.Json.JsonObject("availabilityResult")] + public partial class EventsAvailabilityResultResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsAvailabilityResultResult + /// class. + /// + public EventsAvailabilityResultResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsAvailabilityResultResult + /// class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsAvailabilityResultResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsAvailabilityResultInfo availabilityResult = default(EventsAvailabilityResultInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + AvailabilityResult = availabilityResult; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "availabilityResult")] + public EventsAvailabilityResultInfo AvailabilityResult { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingInfo.cs new file mode 100644 index 0000000000000..672d4bcebc88d --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingInfo.cs @@ -0,0 +1,127 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The browser timing information + /// + public partial class EventsBrowserTimingInfo + { + /// + /// Initializes a new instance of the EventsBrowserTimingInfo class. + /// + public EventsBrowserTimingInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsBrowserTimingInfo class. + /// + /// The path of the URL + /// The host of the URL + /// The name of the page + /// The url of the page + /// The total duration of the load + /// The performance bucket of the + /// load + /// The network duration of the + /// load + /// The send duration of the load + /// The receive duration of the + /// load + /// The processing duration of the + /// load + public EventsBrowserTimingInfo(string urlPath = default(string), string urlHost = default(string), string name = default(string), string url = default(string), long? totalDuration = default(long?), string performanceBucket = default(string), long? networkDuration = default(long?), long? sendDuration = default(long?), long? receiveDuration = default(long?), long? processingDuration = default(long?)) + { + UrlPath = urlPath; + UrlHost = urlHost; + Name = name; + Url = url; + TotalDuration = totalDuration; + PerformanceBucket = performanceBucket; + NetworkDuration = networkDuration; + SendDuration = sendDuration; + ReceiveDuration = receiveDuration; + ProcessingDuration = processingDuration; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path of the URL + /// + [JsonProperty(PropertyName = "urlPath")] + public string UrlPath { get; set; } + + /// + /// Gets or sets the host of the URL + /// + [JsonProperty(PropertyName = "urlHost")] + public string UrlHost { get; set; } + + /// + /// Gets or sets the name of the page + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the url of the page + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets the total duration of the load + /// + [JsonProperty(PropertyName = "totalDuration")] + public long? TotalDuration { get; set; } + + /// + /// Gets or sets the performance bucket of the load + /// + [JsonProperty(PropertyName = "performanceBucket")] + public string PerformanceBucket { get; set; } + + /// + /// Gets or sets the network duration of the load + /// + [JsonProperty(PropertyName = "networkDuration")] + public long? NetworkDuration { get; set; } + + /// + /// Gets or sets the send duration of the load + /// + [JsonProperty(PropertyName = "sendDuration")] + public long? SendDuration { get; set; } + + /// + /// Gets or sets the receive duration of the load + /// + [JsonProperty(PropertyName = "receiveDuration")] + public long? ReceiveDuration { get; set; } + + /// + /// Gets or sets the processing duration of the load + /// + [JsonProperty(PropertyName = "processingDuration")] + public long? ProcessingDuration { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingResult.cs new file mode 100644 index 0000000000000..dcbbb379e5906 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsBrowserTimingResult.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A browser timing result + /// + [Newtonsoft.Json.JsonObject("browserTiming")] + public partial class EventsBrowserTimingResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsBrowserTimingResult class. + /// + public EventsBrowserTimingResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsBrowserTimingResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsBrowserTimingResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsBrowserTimingInfo browserTiming = default(EventsBrowserTimingInfo), EventsClientPerformanceInfo clientPerformance = default(EventsClientPerformanceInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + BrowserTiming = browserTiming; + ClientPerformance = clientPerformance; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "browserTiming")] + public EventsBrowserTimingInfo BrowserTiming { get; set; } + + /// + /// + [JsonProperty(PropertyName = "clientPerformance")] + public EventsClientPerformanceInfo ClientPerformance { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientInfo.cs new file mode 100644 index 0000000000000..1e9be63bf1569 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientInfo.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Client info for an event result + /// + public partial class EventsClientInfo + { + /// + /// Initializes a new instance of the EventsClientInfo class. + /// + public EventsClientInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsClientInfo class. + /// + /// Model of the client + /// Operating system of the client + /// Type of the client + /// Browser of the client + /// IP address of the client + /// City of the client + /// State or province of the + /// client + /// Country or region of the + /// client + public EventsClientInfo(string model = default(string), string os = default(string), string type = default(string), string browser = default(string), string ip = default(string), string city = default(string), string stateOrProvince = default(string), string countryOrRegion = default(string)) + { + Model = model; + Os = os; + Type = type; + Browser = browser; + Ip = ip; + City = city; + StateOrProvince = stateOrProvince; + CountryOrRegion = countryOrRegion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets model of the client + /// + [JsonProperty(PropertyName = "model")] + public string Model { get; set; } + + /// + /// Gets or sets operating system of the client + /// + [JsonProperty(PropertyName = "os")] + public string Os { get; set; } + + /// + /// Gets or sets type of the client + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets browser of the client + /// + [JsonProperty(PropertyName = "browser")] + public string Browser { get; set; } + + /// + /// Gets or sets IP address of the client + /// + [JsonProperty(PropertyName = "ip")] + public string Ip { get; set; } + + /// + /// Gets or sets city of the client + /// + [JsonProperty(PropertyName = "city")] + public string City { get; set; } + + /// + /// Gets or sets state or province of the client + /// + [JsonProperty(PropertyName = "stateOrProvince")] + public string StateOrProvince { get; set; } + + /// + /// Gets or sets country or region of the client + /// + [JsonProperty(PropertyName = "countryOrRegion")] + public string CountryOrRegion { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientPerformanceInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientPerformanceInfo.cs new file mode 100644 index 0000000000000..137521d77788a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsClientPerformanceInfo.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Client performance information + /// + public partial class EventsClientPerformanceInfo + { + /// + /// Initializes a new instance of the EventsClientPerformanceInfo + /// class. + /// + public EventsClientPerformanceInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsClientPerformanceInfo + /// class. + /// + /// The name of the client performance + public EventsClientPerformanceInfo(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the client performance + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCloudInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCloudInfo.cs new file mode 100644 index 0000000000000..5e28c8f9346cf --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCloudInfo.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cloud info for an event result + /// + public partial class EventsCloudInfo + { + /// + /// Initializes a new instance of the EventsCloudInfo class. + /// + public EventsCloudInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsCloudInfo class. + /// + /// Role name of the cloud + /// Role instance of the cloud + public EventsCloudInfo(string roleName = default(string), string roleInstance = default(string)) + { + RoleName = roleName; + RoleInstance = roleInstance; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets role name of the cloud + /// + [JsonProperty(PropertyName = "roleName")] + public string RoleName { get; set; } + + /// + /// Gets or sets role instance of the cloud + /// + [JsonProperty(PropertyName = "roleInstance")] + public string RoleInstance { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventInfo.cs new file mode 100644 index 0000000000000..e0c386c333403 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventInfo.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The custom event information + /// + public partial class EventsCustomEventInfo + { + /// + /// Initializes a new instance of the EventsCustomEventInfo class. + /// + public EventsCustomEventInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsCustomEventInfo class. + /// + /// The name of the custom event + public EventsCustomEventInfo(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the custom event + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventResult.cs new file mode 100644 index 0000000000000..7a1e769a9bbda --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomEventResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A custom event result + /// + [Newtonsoft.Json.JsonObject("customEvent")] + public partial class EventsCustomEventResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsCustomEventResult class. + /// + public EventsCustomEventResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsCustomEventResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsCustomEventResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsCustomEventInfo customEvent = default(EventsCustomEventInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + CustomEvent = customEvent; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "customEvent")] + public EventsCustomEventInfo CustomEvent { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricInfo.cs new file mode 100644 index 0000000000000..4f410b16b871b --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricInfo.cs @@ -0,0 +1,102 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The custom metric info + /// + public partial class EventsCustomMetricInfo + { + /// + /// Initializes a new instance of the EventsCustomMetricInfo class. + /// + public EventsCustomMetricInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsCustomMetricInfo class. + /// + /// The name of the custom metric + /// The value of the custom metric + /// The sum of the custom metric + /// The count of the custom metric + /// The minimum value of the custom + /// metric + /// The maximum value of the custom + /// metric + /// The standard deviation of the custom + /// metric + public EventsCustomMetricInfo(string name = default(string), double? value = default(double?), double? valueSum = default(double?), double? valueCount = default(double?), double? valueMin = default(double?), double? valueMax = default(double?), double? valueStdDev = default(double?)) + { + Name = name; + Value = value; + ValueSum = valueSum; + ValueCount = valueCount; + ValueMin = valueMin; + ValueMax = valueMax; + ValueStdDev = valueStdDev; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the custom metric + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the value of the custom metric + /// + [JsonProperty(PropertyName = "value")] + public double? Value { get; set; } + + /// + /// Gets or sets the sum of the custom metric + /// + [JsonProperty(PropertyName = "valueSum")] + public double? ValueSum { get; set; } + + /// + /// Gets or sets the count of the custom metric + /// + [JsonProperty(PropertyName = "valueCount")] + public double? ValueCount { get; set; } + + /// + /// Gets or sets the minimum value of the custom metric + /// + [JsonProperty(PropertyName = "valueMin")] + public double? ValueMin { get; set; } + + /// + /// Gets or sets the maximum value of the custom metric + /// + [JsonProperty(PropertyName = "valueMax")] + public double? ValueMax { get; set; } + + /// + /// Gets or sets the standard deviation of the custom metric + /// + [JsonProperty(PropertyName = "valueStdDev")] + public double? ValueStdDev { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricResult.cs new file mode 100644 index 0000000000000..58e22352a05ff --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsCustomMetricResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A custom metric result + /// + [Newtonsoft.Json.JsonObject("customMetric")] + public partial class EventsCustomMetricResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsCustomMetricResult class. + /// + public EventsCustomMetricResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsCustomMetricResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsCustomMetricResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsCustomMetricInfo customMetric = default(EventsCustomMetricInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + CustomMetric = customMetric; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "customMetric")] + public EventsCustomMetricInfo CustomMetric { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyInfo.cs new file mode 100644 index 0000000000000..79933243c30b3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyInfo.cs @@ -0,0 +1,117 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The dependency info + /// + public partial class EventsDependencyInfo + { + /// + /// Initializes a new instance of the EventsDependencyInfo class. + /// + public EventsDependencyInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsDependencyInfo class. + /// + /// The target of the dependency + /// The data of the dependency + /// Indicates if the dependency was + /// successful + /// The duration of the dependency + /// The performance bucket of the + /// dependency + /// The result code of the dependency + /// The type of the dependency + /// The name of the dependency + /// The ID of the dependency + public EventsDependencyInfo(string target = default(string), string data = default(string), string success = default(string), long? duration = default(long?), string performanceBucket = default(string), string resultCode = default(string), string type = default(string), string name = default(string), string id = default(string)) + { + Target = target; + Data = data; + Success = success; + Duration = duration; + PerformanceBucket = performanceBucket; + ResultCode = resultCode; + Type = type; + Name = name; + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the target of the dependency + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; set; } + + /// + /// Gets or sets the data of the dependency + /// + [JsonProperty(PropertyName = "data")] + public string Data { get; set; } + + /// + /// Gets or sets indicates if the dependency was successful + /// + [JsonProperty(PropertyName = "success")] + public string Success { get; set; } + + /// + /// Gets or sets the duration of the dependency + /// + [JsonProperty(PropertyName = "duration")] + public long? Duration { get; set; } + + /// + /// Gets or sets the performance bucket of the dependency + /// + [JsonProperty(PropertyName = "performanceBucket")] + public string PerformanceBucket { get; set; } + + /// + /// Gets or sets the result code of the dependency + /// + [JsonProperty(PropertyName = "resultCode")] + public string ResultCode { get; set; } + + /// + /// Gets or sets the type of the dependency + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the name of the dependency + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the ID of the dependency + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyResult.cs new file mode 100644 index 0000000000000..89016c46bc2ec --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsDependencyResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A dependency result + /// + [Newtonsoft.Json.JsonObject("dependency")] + public partial class EventsDependencyResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsDependencyResult class. + /// + public EventsDependencyResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsDependencyResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsDependencyResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsDependencyInfo dependency = default(EventsDependencyInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + Dependency = dependency; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "dependency")] + public EventsDependencyInfo Dependency { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetail.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetail.cs new file mode 100644 index 0000000000000..c7656164d75e4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetail.cs @@ -0,0 +1,94 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Exception details + /// + public partial class EventsExceptionDetail + { + /// + /// Initializes a new instance of the EventsExceptionDetail class. + /// + public EventsExceptionDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsExceptionDetail class. + /// + /// The severity level of the exception + /// detail + /// The outer ID of the exception detail + /// The message of the exception detail + /// The type of the exception detail + /// The ID of the exception detail + /// The parsed stack + public EventsExceptionDetail(string severityLevel = default(string), string outerId = default(string), string message = default(string), string type = default(string), string id = default(string), IList parsedStack = default(IList)) + { + SeverityLevel = severityLevel; + OuterId = outerId; + Message = message; + Type = type; + Id = id; + ParsedStack = parsedStack; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the severity level of the exception detail + /// + [JsonProperty(PropertyName = "severityLevel")] + public string SeverityLevel { get; set; } + + /// + /// Gets or sets the outer ID of the exception detail + /// + [JsonProperty(PropertyName = "outerId")] + public string OuterId { get; set; } + + /// + /// Gets or sets the message of the exception detail + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the type of the exception detail + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the ID of the exception detail + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the parsed stack + /// + [JsonProperty(PropertyName = "parsedStack")] + public IList ParsedStack { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetailsParsedStack.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetailsParsedStack.cs new file mode 100644 index 0000000000000..5304482a80a84 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionDetailsParsedStack.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A parsed stack entry + /// + public partial class EventsExceptionDetailsParsedStack + { + /// + /// Initializes a new instance of the EventsExceptionDetailsParsedStack + /// class. + /// + public EventsExceptionDetailsParsedStack() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsExceptionDetailsParsedStack + /// class. + /// + /// The assembly of the stack entry + /// The method of the stack entry + /// The level of the stack entry + /// The line of the stack entry + public EventsExceptionDetailsParsedStack(string assembly = default(string), string method = default(string), long? level = default(long?), long? line = default(long?)) + { + Assembly = assembly; + Method = method; + Level = level; + Line = line; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the assembly of the stack entry + /// + [JsonProperty(PropertyName = "assembly")] + public string Assembly { get; set; } + + /// + /// Gets or sets the method of the stack entry + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Gets or sets the level of the stack entry + /// + [JsonProperty(PropertyName = "level")] + public long? Level { get; set; } + + /// + /// Gets or sets the line of the stack entry + /// + [JsonProperty(PropertyName = "line")] + public long? Line { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionInfo.cs new file mode 100644 index 0000000000000..9c00441286b80 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionInfo.cs @@ -0,0 +1,182 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The exception info + /// + public partial class EventsExceptionInfo + { + /// + /// Initializes a new instance of the EventsExceptionInfo class. + /// + public EventsExceptionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsExceptionInfo class. + /// + /// The severity level of the + /// exception + /// The problem ID of the exception + /// Indicates where the exception was handled + /// at + /// The assembly which threw the + /// exception + /// The method that threw the exception + /// The message of the exception + /// The type of the exception + /// The outer type of the exception + /// The outer method of the exception + /// The outer assmebly of the + /// exception + /// The outer message of the + /// exception + /// The inner most type of the + /// exception + /// The inner most message of the + /// exception + /// The inner most method of the + /// exception + /// The inner most assembly of the + /// exception + /// The details of the exception + public EventsExceptionInfo(int? severityLevel = default(int?), string problemId = default(string), string handledAt = default(string), string assembly = default(string), string method = default(string), string message = default(string), string type = default(string), string outerType = default(string), string outerMethod = default(string), string outerAssembly = default(string), string outerMessage = default(string), string innermostType = default(string), string innermostMessage = default(string), string innermostMethod = default(string), string innermostAssembly = default(string), IList details = default(IList)) + { + SeverityLevel = severityLevel; + ProblemId = problemId; + HandledAt = handledAt; + Assembly = assembly; + Method = method; + Message = message; + Type = type; + OuterType = outerType; + OuterMethod = outerMethod; + OuterAssembly = outerAssembly; + OuterMessage = outerMessage; + InnermostType = innermostType; + InnermostMessage = innermostMessage; + InnermostMethod = innermostMethod; + InnermostAssembly = innermostAssembly; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the severity level of the exception + /// + [JsonProperty(PropertyName = "severityLevel")] + public int? SeverityLevel { get; set; } + + /// + /// Gets or sets the problem ID of the exception + /// + [JsonProperty(PropertyName = "problemId")] + public string ProblemId { get; set; } + + /// + /// Gets or sets indicates where the exception was handled at + /// + [JsonProperty(PropertyName = "handledAt")] + public string HandledAt { get; set; } + + /// + /// Gets or sets the assembly which threw the exception + /// + [JsonProperty(PropertyName = "assembly")] + public string Assembly { get; set; } + + /// + /// Gets or sets the method that threw the exception + /// + [JsonProperty(PropertyName = "method")] + public string Method { get; set; } + + /// + /// Gets or sets the message of the exception + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the type of the exception + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the outer type of the exception + /// + [JsonProperty(PropertyName = "outerType")] + public string OuterType { get; set; } + + /// + /// Gets or sets the outer method of the exception + /// + [JsonProperty(PropertyName = "outerMethod")] + public string OuterMethod { get; set; } + + /// + /// Gets or sets the outer assmebly of the exception + /// + [JsonProperty(PropertyName = "outerAssembly")] + public string OuterAssembly { get; set; } + + /// + /// Gets or sets the outer message of the exception + /// + [JsonProperty(PropertyName = "outerMessage")] + public string OuterMessage { get; set; } + + /// + /// Gets or sets the inner most type of the exception + /// + [JsonProperty(PropertyName = "innermostType")] + public string InnermostType { get; set; } + + /// + /// Gets or sets the inner most message of the exception + /// + [JsonProperty(PropertyName = "innermostMessage")] + public string InnermostMessage { get; set; } + + /// + /// Gets or sets the inner most method of the exception + /// + [JsonProperty(PropertyName = "innermostMethod")] + public string InnermostMethod { get; set; } + + /// + /// Gets or sets the inner most assembly of the exception + /// + [JsonProperty(PropertyName = "innermostAssembly")] + public string InnermostAssembly { get; set; } + + /// + /// Gets or sets the details of the exception + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionResult.cs new file mode 100644 index 0000000000000..daeaf52551599 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsExceptionResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// An exception result + /// + [Newtonsoft.Json.JsonObject("exception")] + public partial class EventsExceptionResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsExceptionResult class. + /// + public EventsExceptionResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsExceptionResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsExceptionResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsExceptionInfo exception = default(EventsExceptionInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + Exception = exception; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "exception")] + public EventsExceptionInfo Exception { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsOperationInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsOperationInfo.cs new file mode 100644 index 0000000000000..eaaeae717d4e9 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsOperationInfo.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation info for an event result + /// + public partial class EventsOperationInfo + { + /// + /// Initializes a new instance of the EventsOperationInfo class. + /// + public EventsOperationInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsOperationInfo class. + /// + /// Name of the operation + /// ID of the operation + /// Parent ID of the operation + /// Synthetic source of the + /// operation + public EventsOperationInfo(string name = default(string), string id = default(string), string parentId = default(string), string syntheticSource = default(string)) + { + Name = name; + Id = id; + ParentId = parentId; + SyntheticSource = syntheticSource; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the operation + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets ID of the operation + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets parent ID of the operation + /// + [JsonProperty(PropertyName = "parentId")] + public string ParentId { get; set; } + + /// + /// Gets or sets synthetic source of the operation + /// + [JsonProperty(PropertyName = "syntheticSource")] + public string SyntheticSource { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewInfo.cs new file mode 100644 index 0000000000000..4b58a09bc4274 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewInfo.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The page view information + /// + public partial class EventsPageViewInfo + { + /// + /// Initializes a new instance of the EventsPageViewInfo class. + /// + public EventsPageViewInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsPageViewInfo class. + /// + /// The name of the page + /// The URL of the page + /// The duration of the page view + /// The performance bucket of the page + /// view + public EventsPageViewInfo(string name = default(string), string url = default(string), string duration = default(string), string performanceBucket = default(string)) + { + Name = name; + Url = url; + Duration = duration; + PerformanceBucket = performanceBucket; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the page + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the URL of the page + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets the duration of the page view + /// + [JsonProperty(PropertyName = "duration")] + public string Duration { get; set; } + + /// + /// Gets or sets the performance bucket of the page view + /// + [JsonProperty(PropertyName = "performanceBucket")] + public string PerformanceBucket { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewResult.cs new file mode 100644 index 0000000000000..610a0e1b98f91 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPageViewResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A page view result + /// + [Newtonsoft.Json.JsonObject("pageView")] + public partial class EventsPageViewResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsPageViewResult class. + /// + public EventsPageViewResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsPageViewResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsPageViewResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsPageViewInfo pageView = default(EventsPageViewInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + PageView = pageView; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "pageView")] + public EventsPageViewInfo PageView { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterInfo.cs new file mode 100644 index 0000000000000..dfba97fe1f67a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterInfo.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The performance counter info + /// + public partial class EventsPerformanceCounterInfo + { + /// + /// Initializes a new instance of the EventsPerformanceCounterInfo + /// class. + /// + public EventsPerformanceCounterInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsPerformanceCounterInfo + /// class. + /// + /// The value of the performance counter + /// The name of the performance counter + /// The category of the performance + /// counter + /// The counter of the performance + /// counter + /// The instance name of the performance + /// counter + /// The instance of the performance + /// counter + public EventsPerformanceCounterInfo(long? value = default(long?), string name = default(string), string category = default(string), string counter = default(string), string instanceName = default(string), string instance = default(string)) + { + Value = value; + Name = name; + Category = category; + Counter = counter; + InstanceName = instanceName; + Instance = instance; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the value of the performance counter + /// + [JsonProperty(PropertyName = "value")] + public long? Value { get; set; } + + /// + /// Gets or sets the name of the performance counter + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the category of the performance counter + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the counter of the performance counter + /// + [JsonProperty(PropertyName = "counter")] + public string Counter { get; set; } + + /// + /// Gets or sets the instance name of the performance counter + /// + [JsonProperty(PropertyName = "instanceName")] + public string InstanceName { get; set; } + + /// + /// Gets or sets the instance of the performance counter + /// + [JsonProperty(PropertyName = "instance")] + public string Instance { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterResult.cs new file mode 100644 index 0000000000000..a85cdcd760ddd --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsPerformanceCounterResult.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A performance counter result + /// + [Newtonsoft.Json.JsonObject("performanceCounter")] + public partial class EventsPerformanceCounterResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsPerformanceCounterResult + /// class. + /// + public EventsPerformanceCounterResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsPerformanceCounterResult + /// class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsPerformanceCounterResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsPerformanceCounterInfo performanceCounter = default(EventsPerformanceCounterInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + PerformanceCounter = performanceCounter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "performanceCounter")] + public EventsPerformanceCounterInfo PerformanceCounter { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestInfo.cs new file mode 100644 index 0000000000000..7d13a5e59d41b --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestInfo.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The request info + /// + public partial class EventsRequestInfo + { + /// + /// Initializes a new instance of the EventsRequestInfo class. + /// + public EventsRequestInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsRequestInfo class. + /// + /// The name of the request + /// The URL of the request + /// Indicates if the request was + /// successful + /// The duration of the request + /// The performance bucket of the + /// request + /// The result code of the request + /// The source of the request + /// The ID of the request + public EventsRequestInfo(string name = default(string), string url = default(string), string success = default(string), double? duration = default(double?), string performanceBucket = default(string), string resultCode = default(string), string source = default(string), string id = default(string)) + { + Name = name; + Url = url; + Success = success; + Duration = duration; + PerformanceBucket = performanceBucket; + ResultCode = resultCode; + Source = source; + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the request + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the URL of the request + /// + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// Gets or sets indicates if the request was successful + /// + [JsonProperty(PropertyName = "success")] + public string Success { get; set; } + + /// + /// Gets or sets the duration of the request + /// + [JsonProperty(PropertyName = "duration")] + public double? Duration { get; set; } + + /// + /// Gets or sets the performance bucket of the request + /// + [JsonProperty(PropertyName = "performanceBucket")] + public string PerformanceBucket { get; set; } + + /// + /// Gets or sets the result code of the request + /// + [JsonProperty(PropertyName = "resultCode")] + public string ResultCode { get; set; } + + /// + /// Gets or sets the source of the request + /// + [JsonProperty(PropertyName = "source")] + public string Source { get; set; } + + /// + /// Gets or sets the ID of the request + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestResult.cs new file mode 100644 index 0000000000000..77ce911a5779b --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsRequestResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A request result + /// + [Newtonsoft.Json.JsonObject("request")] + public partial class EventsRequestResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsRequestResult class. + /// + public EventsRequestResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsRequestResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsRequestResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsRequestInfo request = default(EventsRequestInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + Request = request; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "request")] + public EventsRequestInfo Request { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResult.cs new file mode 100644 index 0000000000000..0a545c4a1cce0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResult.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An event query result. + /// + public partial class EventsResult + { + /// + /// Initializes a new instance of the EventsResult class. + /// + public EventsResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsResult class. + /// + /// OData messages for this response. + public EventsResult(IList aimessages = default(IList), EventsResultData value = default(EventsResultData)) + { + Aimessages = aimessages; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets oData messages for this response. + /// + [JsonProperty(PropertyName = "@ai.messages")] + public IList Aimessages { get; set; } + + /// + /// + [JsonProperty(PropertyName = "value")] + public EventsResultData Value { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultData.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultData.cs new file mode 100644 index 0000000000000..e97f6b751ab4d --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultData.cs @@ -0,0 +1,142 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Events query result data. + /// + [Newtonsoft.Json.JsonObject("eventsResultData")] + public partial class EventsResultData + { + /// + /// Initializes a new instance of the EventsResultData class. + /// + public EventsResultData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsResultData class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsResultData(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo)) + { + Id = id; + Count = count; + Timestamp = timestamp; + CustomDimensions = customDimensions; + CustomMeasurements = customMeasurements; + Operation = operation; + Session = session; + User = user; + Cloud = cloud; + Ai = ai; + Application = application; + Client = client; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unique ID for this event. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets count of the event + /// + [JsonProperty(PropertyName = "count")] + public long? Count { get; set; } + + /// + /// Gets or sets timestamp of the event + /// + [JsonProperty(PropertyName = "timestamp")] + public System.DateTime? Timestamp { get; set; } + + /// + /// Gets or sets custom dimensions of the event + /// + [JsonProperty(PropertyName = "customDimensions")] + public EventsResultDataCustomDimensions CustomDimensions { get; set; } + + /// + /// Gets or sets custom measurements of the event + /// + [JsonProperty(PropertyName = "customMeasurements")] + public EventsResultDataCustomMeasurements CustomMeasurements { get; set; } + + /// + /// Gets or sets operation info of the event + /// + [JsonProperty(PropertyName = "operation")] + public EventsOperationInfo Operation { get; set; } + + /// + /// Gets or sets session info of the event + /// + [JsonProperty(PropertyName = "session")] + public EventsSessionInfo Session { get; set; } + + /// + /// Gets or sets user info of the event + /// + [JsonProperty(PropertyName = "user")] + public EventsUserInfo User { get; set; } + + /// + /// Gets or sets cloud info of the event + /// + [JsonProperty(PropertyName = "cloud")] + public EventsCloudInfo Cloud { get; set; } + + /// + /// Gets or sets AI info of the event + /// + [JsonProperty(PropertyName = "ai")] + public EventsAiInfo Ai { get; set; } + + /// + /// Gets or sets application info of the event + /// + [JsonProperty(PropertyName = "application")] + public EventsApplicationInfo Application { get; set; } + + /// + /// Gets or sets client info of the event + /// + [JsonProperty(PropertyName = "client")] + public EventsClientInfo Client { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomDimensions.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomDimensions.cs new file mode 100644 index 0000000000000..09129bf432bec --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomDimensions.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Custom dimensions of the event + /// + public partial class EventsResultDataCustomDimensions + { + /// + /// Initializes a new instance of the EventsResultDataCustomDimensions + /// class. + /// + public EventsResultDataCustomDimensions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsResultDataCustomDimensions + /// class. + /// + public EventsResultDataCustomDimensions(object additionalProperties = default(object)) + { + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "additionalProperties")] + public object AdditionalProperties { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomMeasurements.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomMeasurements.cs new file mode 100644 index 0000000000000..4e84e546267ff --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResultDataCustomMeasurements.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Custom measurements of the event + /// + public partial class EventsResultDataCustomMeasurements + { + /// + /// Initializes a new instance of the + /// EventsResultDataCustomMeasurements class. + /// + public EventsResultDataCustomMeasurements() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// EventsResultDataCustomMeasurements class. + /// + public EventsResultDataCustomMeasurements(object additionalProperties = default(object)) + { + AdditionalProperties = additionalProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "additionalProperties")] + public object AdditionalProperties { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResults.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResults.cs new file mode 100644 index 0000000000000..4611be608e9e0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsResults.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// An events query result. + /// + public partial class EventsResults + { + /// + /// Initializes a new instance of the EventsResults class. + /// + public EventsResults() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsResults class. + /// + /// OData context metadata endpoint for this + /// response + /// OData messages for this response. + /// Contents of the events query result. + public EventsResults(string odatacontext = default(string), IList aimessages = default(IList), IList value = default(IList)) + { + Odatacontext = odatacontext; + Aimessages = aimessages; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets oData context metadata endpoint for this response + /// + [JsonProperty(PropertyName = "@odata.context")] + public string Odatacontext { get; set; } + + /// + /// Gets or sets oData messages for this response. + /// + [JsonProperty(PropertyName = "@ai.messages")] + public IList Aimessages { get; set; } + + /// + /// Gets or sets contents of the events query result. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsSessionInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsSessionInfo.cs new file mode 100644 index 0000000000000..0df23dd277df0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsSessionInfo.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Session info for an event result + /// + public partial class EventsSessionInfo + { + /// + /// Initializes a new instance of the EventsSessionInfo class. + /// + public EventsSessionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsSessionInfo class. + /// + /// ID of the session + public EventsSessionInfo(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the session + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceInfo.cs new file mode 100644 index 0000000000000..30e1e7e4ce743 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceInfo.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The trace information + /// + public partial class EventsTraceInfo + { + /// + /// Initializes a new instance of the EventsTraceInfo class. + /// + public EventsTraceInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsTraceInfo class. + /// + /// The trace message + /// The trace severity level + public EventsTraceInfo(string message = default(string), int? severityLevel = default(int?)) + { + Message = message; + SeverityLevel = severityLevel; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the trace message + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the trace severity level + /// + [JsonProperty(PropertyName = "severityLevel")] + public int? SeverityLevel { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceResult.cs new file mode 100644 index 0000000000000..40424ab0e1dc3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsTraceResult.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A trace result + /// + [Newtonsoft.Json.JsonObject("trace")] + public partial class EventsTraceResult : EventsResultData + { + /// + /// Initializes a new instance of the EventsTraceResult class. + /// + public EventsTraceResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsTraceResult class. + /// + /// The unique ID for this event. + /// Count of the event + /// Timestamp of the event + /// Custom dimensions of the + /// event + /// Custom measurements of the + /// event + /// Operation info of the event + /// Session info of the event + /// User info of the event + /// Cloud info of the event + /// AI info of the event + /// Application info of the event + /// Client info of the event + public EventsTraceResult(string id = default(string), long? count = default(long?), System.DateTime? timestamp = default(System.DateTime?), EventsResultDataCustomDimensions customDimensions = default(EventsResultDataCustomDimensions), EventsResultDataCustomMeasurements customMeasurements = default(EventsResultDataCustomMeasurements), EventsOperationInfo operation = default(EventsOperationInfo), EventsSessionInfo session = default(EventsSessionInfo), EventsUserInfo user = default(EventsUserInfo), EventsCloudInfo cloud = default(EventsCloudInfo), EventsAiInfo ai = default(EventsAiInfo), EventsApplicationInfo application = default(EventsApplicationInfo), EventsClientInfo client = default(EventsClientInfo), EventsTraceInfo trace = default(EventsTraceInfo)) + : base(id, count, timestamp, customDimensions, customMeasurements, operation, session, user, cloud, ai, application, client) + { + Trace = trace; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "trace")] + public EventsTraceInfo Trace { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsUserInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsUserInfo.cs new file mode 100644 index 0000000000000..545b9e9594077 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/EventsUserInfo.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// User info for an event result + /// + public partial class EventsUserInfo + { + /// + /// Initializes a new instance of the EventsUserInfo class. + /// + public EventsUserInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EventsUserInfo class. + /// + /// ID of the user + /// Account ID of the user + /// Authenticated ID of the user + public EventsUserInfo(string id = default(string), string accountId = default(string), string authenticatedId = default(string)) + { + Id = id; + AccountId = accountId; + AuthenticatedId = authenticatedId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets ID of the user + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets account ID of the user + /// + [JsonProperty(PropertyName = "accountId")] + public string AccountId { get; set; } + + /// + /// Gets or sets authenticated ID of the user + /// + [JsonProperty(PropertyName = "authenticatedId")] + public string AuthenticatedId { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchema.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchema.cs new file mode 100644 index 0000000000000..2f20b66c66f4c --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchema.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A metric request + /// + public partial class MetricsPostBodySchema + { + /// + /// Initializes a new instance of the MetricsPostBodySchema class. + /// + public MetricsPostBodySchema() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsPostBodySchema class. + /// + /// An identifier for this query. Must be unique + /// within the post body of the request. This identifier will be the + /// 'id' property of the response object representing this + /// query. + /// The parameters for a single metrics + /// query + public MetricsPostBodySchema(string id, MetricsPostBodySchemaParameters parameters) + { + Id = id; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets an identifier for this query. Must be unique within + /// the post body of the request. This identifier will be the 'id' + /// property of the response object representing this query. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the parameters for a single metrics query + /// + [JsonProperty(PropertyName = "parameters")] + public MetricsPostBodySchemaParameters Parameters { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + if (Parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Parameters"); + } + if (Parameters != null) + { + Parameters.Validate(); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchemaParameters.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchemaParameters.cs new file mode 100644 index 0000000000000..25be79daadbeb --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsPostBodySchemaParameters.cs @@ -0,0 +1,149 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The parameters for a single metrics query + /// + public partial class MetricsPostBodySchemaParameters + { + /// + /// Initializes a new instance of the MetricsPostBodySchemaParameters + /// class. + /// + public MetricsPostBodySchemaParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsPostBodySchemaParameters + /// class. + /// + /// 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' + public MetricsPostBodySchemaParameters(string metricId, System.TimeSpan? timespan = default(System.TimeSpan?), IList aggregation = default(IList), System.TimeSpan? interval = default(System.TimeSpan?), IList segment = default(IList), int? top = default(int?), string orderby = default(string), string filter = default(string)) + { + MetricId = metricId; + Timespan = timespan; + Aggregation = aggregation; + Interval = interval; + Segment = segment; + Top = top; + Orderby = orderby; + Filter = filter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets 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' + /// + [JsonProperty(PropertyName = "metricId")] + public string MetricId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "timespan")] + public System.TimeSpan? Timespan { get; set; } + + /// + /// + [JsonProperty(PropertyName = "aggregation")] + public IList Aggregation { get; set; } + + /// + /// + [JsonProperty(PropertyName = "interval")] + public System.TimeSpan? Interval { get; set; } + + /// + /// + [JsonProperty(PropertyName = "segment")] + public IList Segment { get; set; } + + /// + /// + [JsonProperty(PropertyName = "top")] + public int? Top { get; set; } + + /// + /// + [JsonProperty(PropertyName = "orderby")] + public string Orderby { get; set; } + + /// + /// + [JsonProperty(PropertyName = "filter")] + public string Filter { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (MetricId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MetricId"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResult.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResult.cs new file mode 100644 index 0000000000000..fb21b8dd47ac9 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResult.cs @@ -0,0 +1,49 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A metric result. + /// + public partial class MetricsResult + { + /// + /// Initializes a new instance of the MetricsResult class. + /// + public MetricsResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsResult class. + /// + public MetricsResult(MetricsResultInfo value = default(MetricsResultInfo)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "value")] + public MetricsResultInfo Value { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultInfo.cs new file mode 100644 index 0000000000000..bd3afb1b73ec8 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultInfo.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A metric result data. + /// + public partial class MetricsResultInfo + { + /// + /// Initializes a new instance of the MetricsResultInfo class. + /// + public MetricsResultInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsResultInfo class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Start time of the metric. + /// Start time of the metric. + /// The interval used to segment the metric + /// data. + /// Segmented metric data (if + /// segmented). + public MetricsResultInfo(IDictionary additionalProperties = default(IDictionary), System.DateTime? start = default(System.DateTime?), System.DateTime? end = default(System.DateTime?), System.TimeSpan? interval = default(System.TimeSpan?), IList segments = default(IList)) + { + AdditionalProperties = additionalProperties; + Start = start; + End = end; + Interval = interval; + Segments = segments; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets start time of the metric. + /// + [JsonProperty(PropertyName = "start")] + public System.DateTime? Start { get; set; } + + /// + /// Gets or sets start time of the metric. + /// + [JsonProperty(PropertyName = "end")] + public System.DateTime? End { get; set; } + + /// + /// Gets or sets the interval used to segment the metric data. + /// + [JsonProperty(PropertyName = "interval")] + public System.TimeSpan? Interval { get; set; } + + /// + /// Gets or sets segmented metric data (if segmented). + /// + [JsonProperty(PropertyName = "segments")] + public IList Segments { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultsItem.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultsItem.cs new file mode 100644 index 0000000000000..da14e92825ed7 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsResultsItem.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + public partial class MetricsResultsItem + { + /// + /// Initializes a new instance of the MetricsResultsItem class. + /// + public MetricsResultsItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsResultsItem class. + /// + /// The specified ID for this metric. + /// The HTTP status code of this metric + /// query. + /// The results of this metric query. + public MetricsResultsItem(string id, int status, MetricsResult body) + { + Id = id; + Status = status; + Body = body; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the specified ID for this metric. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the HTTP status code of this metric query. + /// + [JsonProperty(PropertyName = "status")] + public int Status { get; set; } + + /// + /// Gets or sets the results of this metric query. + /// + [JsonProperty(PropertyName = "body")] + public MetricsResult Body { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + if (Body == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Body"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsSegmentInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsSegmentInfo.cs new file mode 100644 index 0000000000000..9ffa4861d266d --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/MetricsSegmentInfo.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A metric segment + /// + public partial class MetricsSegmentInfo + { + /// + /// Initializes a new instance of the MetricsSegmentInfo class. + /// + public MetricsSegmentInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricsSegmentInfo class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// Start time of the metric segment (only when an + /// interval was specified). + /// Start time of the metric segment (only when an + /// interval was specified). + /// Segmented metric data (if further + /// segmented). + public MetricsSegmentInfo(IDictionary additionalProperties = default(IDictionary), System.DateTime? start = default(System.DateTime?), System.DateTime? end = default(System.DateTime?), IList segments = default(IList)) + { + AdditionalProperties = additionalProperties; + Start = start; + End = end; + Segments = segments; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets start time of the metric segment (only when an + /// interval was specified). + /// + [JsonProperty(PropertyName = "start")] + public System.DateTime? Start { get; set; } + + /// + /// Gets or sets start time of the metric segment (only when an + /// interval was specified). + /// + [JsonProperty(PropertyName = "end")] + public System.DateTime? End { get; set; } + + /// + /// Gets or sets segmented metric data (if further segmented). + /// + [JsonProperty(PropertyName = "segments")] + public IList Segments { get; set; } + + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryBody.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryBody.cs new file mode 100644 index 0000000000000..8f4174c19c4a3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryBody.cs @@ -0,0 +1,89 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Query request body + /// + public partial class QueryBody + { + /// + /// Initializes a new instance of the QueryBody class. + /// + public QueryBody() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QueryBody class. + /// + /// The query to execute. + /// Optional. The timespan over which to query + /// data. This is an ISO8601 time period value. This timespan is + /// applied in addition to any that are specified in the query + /// expression. + /// A list of applications that are included + /// in the query. + public QueryBody(string query, System.TimeSpan? timespan = default(System.TimeSpan?), IList applications = default(IList)) + { + Query = query; + Timespan = timespan; + Applications = applications; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the query to execute. + /// + [JsonProperty(PropertyName = "query")] + public string Query { get; set; } + + /// + /// Gets or sets optional. The timespan over which to query data. This + /// is an ISO8601 time period value. This timespan is applied in + /// addition to any that are specified in the query expression. + /// + [JsonProperty(PropertyName = "timespan")] + public System.TimeSpan? Timespan { get; set; } + + /// + /// Gets or sets a list of applications that are included in the query. + /// + [JsonProperty(PropertyName = "applications")] + public IList Applications { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Query == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Query"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryResults.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryResults.cs new file mode 100644 index 0000000000000..c3c53f66b0fc3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/QueryResults.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A query response. + /// + /// + /// Contains the tables, columns & rows resulting from a query. + /// + public partial class QueryResults + { + /// + /// Initializes a new instance of the QueryResults class. + /// + public QueryResults() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the QueryResults class. + /// + /// The list of tables, columns and rows. + public QueryResults(IList tables) + { + Tables = tables; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of tables, columns and rows. + /// + [JsonProperty(PropertyName = "tables")] + public IList
Tables { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Tables == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Tables"); + } + if (Tables != null) + { + foreach (var element in Tables) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Table.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Table.cs new file mode 100644 index 0000000000000..9684f65517ce2 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/Models/Table.cs @@ -0,0 +1,94 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.ApplicationInsights.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A query response table. + /// + /// + /// Contains the columns and rows for one table in a query response. + /// + public partial class Table + { + /// + /// Initializes a new instance of the Table class. + /// + public Table() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Table class. + /// + /// The name of the table. + /// The list of columns in this table. + /// The resulting rows from this query. + public Table(string name, IList columns, IList> rows) + { + Name = name; + Columns = columns; + Rows = rows; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the table. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the list of columns in this table. + /// + [JsonProperty(PropertyName = "columns")] + public IList Columns { get; set; } + + /// + /// Gets or sets the resulting rows from this query. + /// + [JsonProperty(PropertyName = "rows")] + public IList> Rows { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Columns == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Columns"); + } + if (Rows == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Rows"); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/SdkInfo_ApplicationInsightsDataClient.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/SdkInfo_ApplicationInsightsDataClient.cs new file mode 100644 index 0000000000000..37505b95aae69 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Generated/SdkInfo_ApplicationInsightsDataClient.cs @@ -0,0 +1,25 @@ + +using System; +using System.Collections.Generic; +using System.Linq; + +internal static partial class SdkInfo +{ + public static IEnumerable> ApiInfo_ApplicationInsightsDataClient + { + get + { + return new Tuple[] + { + new Tuple("ApplicationInsightsDataClient", "GetEvent", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetEvents", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetEventsMetadataOData", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetMetric", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetMetrics", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetMetricsMetadata", "v1"), + new Tuple("ApplicationInsightsDataClient", "GetQuerySchema", "v1"), + new Tuple("ApplicationInsightsDataClient", "Query", "v1"), + }.AsEnumerable(); + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Microsoft.Azure.ApplicationInsights.csproj b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Microsoft.Azure.ApplicationInsights.csproj new file mode 100644 index 0000000000000..144a3e0ed46b7 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Microsoft.Azure.ApplicationInsights.csproj @@ -0,0 +1,22 @@ + + + + + + + Microsoft Azure Application Insights Data Library + 0.9.0.0-preview + Microsoft.Azure.ApplicationInsights + Microsoft.Azure.ApplicationInsights + Management.ApplicationInsights; + This is a preview release of the Application Insights Data SDK. + + + net452;netstandard1.4 + Microsoft.Azure.ApplicationInsights + + + + + + diff --git a/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Properties/AssemblyInfo.cs b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..4175b33eae5cc --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/Properties/AssemblyInfo.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Application Insights Data Library")] +[assembly: AssemblyDescription("Provides Microsoft Azure Application Insights Data operations.")] + +[assembly: AssemblyVersion("0.9.0.0")] +[assembly: AssemblyFileVersion("0.9.0.0")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/generate.cmd similarity index 62% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd rename to src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/generate.cmd index 5f5d9191cb9e9..cebdaa53f9c01 100644 --- a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/generate.cmd +++ b/src/SDKs/ApplicationInsights/DataPlane/ApplicationInsights/generate.cmd @@ -4,4 +4,4 @@ :: @echo off -call %~dp0..\..\..\..\tools\generate.cmd applicationinsights/resource-manager %* +call %~dp0..\..\..\..\..\tools\generate.cmd applicationinsights/data-plane %* diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/Data.ApplicationInsights.Tests.csproj b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/Data.ApplicationInsights.Tests.csproj new file mode 100644 index 0000000000000..171198410563b --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/Data.ApplicationInsights.Tests.csproj @@ -0,0 +1,21 @@ + + + + Data.ApplicationInsights.Tests + Data.ApplicationInsights.Tests Class library + Data.ApplicationInsights.Tests + 1.0.0-preview + netcoreapp1.1 + + + + PreserveNewest + + + + + + + + + diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/DataPlaneTestBase.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/DataPlaneTestBase.cs new file mode 100644 index 0000000000000..6ff7c9816009c --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/DataPlaneTestBase.cs @@ -0,0 +1,23 @@ +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; + +namespace Data.ApplicationInsights.Tests +{ + public abstract class DataPlaneTestBase + { + protected const string DefaultAppId = "DEMO_APP"; + protected const string DefaultApiKey = "DEMO_KEY"; + + protected ApplicationInsightsDataClient GetClient(MockContext ctx, string appId = DefaultAppId, string apiKey = DefaultApiKey) + { + var credentials = new ApiKeyClientCredentials(apiKey); + var client = new ApplicationInsightsDataClient(credentials, HttpMockServer.CreateInstance()); + client.AppId = appId; + client.BaseUri = new Uri("https://api.applicationinsights.io/v1"); + + return client; + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsExtensionTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsExtensionTests.cs new file mode 100644 index 0000000000000..aab429ea531e0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsExtensionTests.cs @@ -0,0 +1,221 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Data.ApplicationInsights.Tests.Events; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Newtonsoft.Json; +using Xunit; + +namespace Data.ApplicationInsights.Tests.ScenarioTests.Events +{ + public class EventsExtensionTests : EventsTestBase + { + [Theory] + [MemberData(nameof(TraceData))] + [MemberData(nameof(CustomEventsData))] + [MemberData(nameof(PageViewsData))] + [MemberData(nameof(BrowserTimingsData))] + [MemberData(nameof(RequestsData))] + [MemberData(nameof(DependenciesData))] + [MemberData(nameof(ExceptionsData))] + [MemberData(nameof(AvailabilityResultsData))] + [MemberData(nameof(PerformanceCountersData))] + [MemberData(nameof(CustomMetricsData))] + public async Task GetEventsAsync(EventType eventType, MultiQueryAsync multiQueryAsync, SingleQueryAsync singleQueryAsync, + object unused1, object unused2) where T : EventsResultData + { + using (var ctx = MockContext.Start(GetType().FullName, $"GetEvents.{eventType}")) + { + var timespan = new TimeSpan(12, 0, 0); + var top = 10; + + var client = GetClient(ctx); + var events = await multiQueryAsync(client, timespan, top); + + Assert.NotNull(events); + Assert.NotNull(events.Value); + Assert.True(events.Value.Count > 0); + Assert.True(events.Value.Count <= top); + + foreach (var e in events.Value) + { + AssertEvent(e, eventType); + } + + Assert.True(!string.IsNullOrEmpty(events.Value[0].Id)); + + var evnt = await singleQueryAsync(client, events.Value[0].Id, timespan); + + Assert.NotNull(evnt); + Assert.NotNull(evnt.Value); + Assert.True(evnt.Value.Count == 1); + + Assert.Equal(JsonConvert.SerializeObject(evnt.Value[0]), + JsonConvert.SerializeObject(events.Value[0])); + } + } + + [Theory] + [MemberData(nameof(TraceData))] + [MemberData(nameof(CustomEventsData))] + [MemberData(nameof(PageViewsData))] + [MemberData(nameof(BrowserTimingsData))] + [MemberData(nameof(RequestsData))] + [MemberData(nameof(DependenciesData))] + [MemberData(nameof(ExceptionsData))] + [MemberData(nameof(AvailabilityResultsData))] + [MemberData(nameof(PerformanceCountersData))] + [MemberData(nameof(CustomMetricsData))] + public void GetEvents(EventType eventType, object unused1, object unused2, + MultiQuery multiQuery, SingleQuery singleQuery) where T : EventsResultData + { + using (var ctx = MockContext.Start(GetType().FullName, $"GetEvents.{eventType}")) + { + var timespan = new TimeSpan(12, 0, 0); + var top = 10; + + var client = GetClient(ctx); + var events = multiQuery(client, timespan, top); + + Assert.NotNull(events); + Assert.NotNull(events.Value); + Assert.True(events.Value.Count > 0); + Assert.True(events.Value.Count <= top); + + foreach (var e in events.Value) + { + AssertEvent(e, eventType); + } + + Assert.True(!string.IsNullOrEmpty(events.Value[0].Id)); + + var evnt = singleQuery(client, events.Value[0].Id, timespan); + + Assert.NotNull(evnt); + Assert.NotNull(evnt.Value); + Assert.True(evnt.Value.Count == 1); + + Assert.Equal(JsonConvert.SerializeObject(evnt.Value[0]), + JsonConvert.SerializeObject(events.Value[0])); + } + } + + public delegate Task> MultiQueryAsync(ApplicationInsightsDataClient client, System.TimeSpan? timespan, int top) where T : EventsResultData; + public delegate Task> SingleQueryAsync(ApplicationInsightsDataClient client, string id, System.TimeSpan? timespan) where T : EventsResultData; + + public delegate EventsResults MultiQuery(ApplicationInsightsDataClient client, System.TimeSpan? timespan, int top) where T : EventsResultData; + public delegate EventsResults SingleQuery(ApplicationInsightsDataClient client, string id, System.TimeSpan? timespan) where T : EventsResultData; + + private static readonly object[] TraceParams = new object[] + { + EventType.Traces, + new MultiQueryAsync(async (client, timespan, top) => await client.GetTraceEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetTraceEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetTraceEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetTraceEvent(id, timespan)), + }; + + private static readonly object[] CustomEventsParams = new object[] + { + EventType.CustomEvents, + new MultiQueryAsync(async (client, timespan, top) => await client.GetCustomEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetCustomEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetCustomEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetCustomEvent(id, timespan)), + }; + + private static readonly object[] PageViewsParams = new object[] + { + EventType.PageViews, + new MultiQueryAsync(async (client, timespan, top) => await client.GetPageViewEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetPageViewEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetPageViewEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetPageViewEvent(id, timespan)), + }; + + private static readonly object[] BrowserTimingsParams = new object[] + { + EventType.BrowserTimings, + new MultiQueryAsync(async (client, timespan, top) => await client.GetBrowserTimingEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetBrowserTimingEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetBrowserTimingEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetBrowserTimingEvent(id, timespan)), + }; + + private static readonly object[] RequestsParams = new object[] + { + EventType.Requests, + new MultiQueryAsync(async (client, timespan, top) => await client.GetRequestEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetRequestEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetRequestEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetRequestEvent(id, timespan)), + }; + + private static readonly object[] DependenciesParams = new object[] + { + EventType.Dependencies, + new MultiQueryAsync(async (client, timespan, top) => await client.GetDependencyEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetDependencyEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetDependencyEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetDependencyEvent(id, timespan)), + }; + + private static readonly object[] ExceptionsParams = new object[] + { + EventType.Exceptions, + new MultiQueryAsync(async (client, timespan, top) => await client.GetExceptionEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetExceptionEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetExceptionEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetExceptionEvent(id, timespan)), + }; + + private static readonly object[] AvailabilityResultsParams = new object[] + { + EventType.AvailabilityResults, + new MultiQueryAsync(async (client, timespan, top) => await client.GetAvailabilityResultEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetAvailabilityResultEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetAvailabilityResultEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetAvailabilityResultEvent(id, timespan)), + }; + + private static readonly object[] PerformanceCountersParams = new object[] + { + EventType.PerformanceCounters, + new MultiQueryAsync(async (client, timespan, top) => await client.GetPerformanceCounterEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetPerformanceCounterEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetPerformanceCounterEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetPerformanceCounterEvent(id, timespan)), + }; + + private static readonly object[] CustomMetricsParams = new object[] + { + EventType.CustomMetrics, + new MultiQueryAsync(async (client, timespan, top) => await client.GetCustomMetricEventsAsync(timespan, top: top)), + new SingleQueryAsync(async (client, id, timespan) => await client.GetCustomMetricEventAsync(id, timespan)), + new MultiQuery((client, timespan, top) => client.GetCustomMetricEvents(timespan, top: top)), + new SingleQuery((client, id, timespan) => client.GetCustomMetricEvent(id, timespan)), + }; + + public static IEnumerable TraceData { get { yield return TraceParams; } } + + public static IEnumerable CustomEventsData { get { yield return CustomEventsParams; } } + + public static IEnumerable PageViewsData { get { yield return PageViewsParams; } } + + public static IEnumerable BrowserTimingsData { get { yield return BrowserTimingsParams; } } + + public static IEnumerable RequestsData { get { yield return RequestsParams; } } + + public static IEnumerable DependenciesData { get { yield return DependenciesParams; } } + + public static IEnumerable ExceptionsData { get { yield return ExceptionsParams; } } + + public static IEnumerable AvailabilityResultsData { get { yield return AvailabilityResultsParams; } } + + public static IEnumerable PerformanceCountersData { get { yield return PerformanceCountersParams; } } + + public static IEnumerable CustomMetricsData { get { yield return CustomMetricsParams; } } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTestBase.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTestBase.cs new file mode 100644 index 0000000000000..4701540b46708 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTestBase.cs @@ -0,0 +1,255 @@ +using System.Collections.Generic; +using Microsoft.Azure.ApplicationInsights.Models; +using Newtonsoft.Json; +using Xunit; + +namespace Data.ApplicationInsights.Tests.Events +{ + public class EventsTestBase : DataPlaneTestBase + { + protected EventType? GetEventType(EventsResultData evnt) + { + if (evnt is EventsTraceResult) return EventType.Traces; + else if (evnt is EventsCustomEventResult) return EventType.CustomEvents; + else if (evnt is EventsPageViewResult) return EventType.PageViews; + else if (evnt is EventsBrowserTimingResult) return EventType.BrowserTimings; + else if (evnt is EventsRequestResult) return EventType.Requests; + else if (evnt is EventsDependencyResult) return EventType.Dependencies; + else if (evnt is EventsExceptionResult) return EventType.Exceptions; + else if (evnt is EventsAvailabilityResultResult) return EventType.AvailabilityResults; + else if (evnt is EventsPerformanceCounterResult) return EventType.PerformanceCounters; + else if (evnt is EventsCustomMetricResult) return EventType.CustomMetrics; + + return null; + } + + protected void AssertEvent(EventsResultData evnt, EventType expectedType) + { + Assert.NotNull(evnt); + Assert.True(!string.IsNullOrEmpty(evnt.Id)); + + if (expectedType != EventType.PerformanceCounters && expectedType != EventType.CustomMetrics) + { + Assert.True(evnt.Count > 0); + } + + Assert.NotNull(evnt.Timestamp); + // CustomDimensions & CustomMeasurements can be null + + // Operation + if (expectedType != EventType.CustomEvents && expectedType != EventType.PageViews && + expectedType != EventType.BrowserTimings && expectedType != EventType.AvailabilityResults && + expectedType != EventType.Exceptions && expectedType != EventType.CustomMetrics && + expectedType != EventType.PerformanceCounters) + { + Assert.NotNull(evnt.Operation); + Assert.False(string.IsNullOrWhiteSpace(evnt.Operation.Id)); + Assert.False(string.IsNullOrWhiteSpace(evnt.Operation.ParentId)); + // Name & SyntheticSource can be null + } + + // Session + Assert.NotNull(evnt.Session); + // Id can be null + + // User + Assert.NotNull(evnt.User); + // Id, AccountId & AuthenticatedId can be null + + // Cloud + Assert.NotNull(evnt.Cloud); + // RoleName & RoleInstance can be null + + // AI + Assert.NotNull(evnt.Ai); + Assert.False(string.IsNullOrWhiteSpace(evnt.Ai.IKey)); + Assert.False(string.IsNullOrWhiteSpace(evnt.Ai.AppName)); + Assert.False(string.IsNullOrWhiteSpace(evnt.Ai.AppId)); + // SdkVersion can be null + + // Application + Assert.NotNull(evnt.Application); + // Version can be null + + // Client + Assert.NotNull(evnt.Client); + Assert.False(string.IsNullOrWhiteSpace(evnt.Client.Type)); + Assert.False(string.IsNullOrWhiteSpace(evnt.Client.Ip)); + // All other client fields can be empty + + switch (expectedType) + { + case EventType.Traces: + VerifyTrace(evnt); + break; + case EventType.CustomEvents: + VerifyCustomEvent(evnt); + break; + case EventType.PageViews: + VerifyPageView(evnt); + break; + case EventType.BrowserTimings: + VerifyBrowserTiming(evnt); + break; + case EventType.Requests: + VerifyRequest(evnt); + break; + case EventType.Dependencies: + VerifyDependency(evnt); + break; + case EventType.Exceptions: + VerifyException(evnt); + break; + case EventType.AvailabilityResults: + VerifyAvailabilityResult(evnt); + break; + case EventType.PerformanceCounters: + VerifyPerformanceCounter(evnt); + break; + case EventType.CustomMetrics: + VerifyCustomMetric(evnt); + break; + default: + Assert.True(false, $"Don't have verification method for EventType {evnt.GetType()}"); + break; + } + } + + protected void VerifyTrace(EventsResultData evnt) + { + Assert.True(evnt is EventsTraceResult); + var trace = evnt as EventsTraceResult; + Assert.NotNull(trace.Trace); + Assert.False(string.IsNullOrWhiteSpace(trace.Trace.Message)); + Assert.True(trace.Trace.SeverityLevel >= 0 && trace.Trace.SeverityLevel <= 5); + } + + protected void VerifyCustomEvent(EventsResultData evnt) + { + Assert.True(evnt is EventsCustomEventResult); + var customEvent = evnt as EventsCustomEventResult; + Assert.NotNull(customEvent.CustomEvent); + Assert.False(string.IsNullOrWhiteSpace(customEvent.CustomEvent.Name)); + } + + protected void VerifyPageView(EventsResultData evnt) + { + Assert.True(evnt is EventsPageViewResult); + var pageView = evnt as EventsPageViewResult; + Assert.NotNull(pageView.PageView); + Assert.False(string.IsNullOrWhiteSpace(pageView.PageView.Name)); + // All other page view fields can be null + } + + protected void VerifyBrowserTiming(EventsResultData evnt) + { + Assert.True(evnt is EventsBrowserTimingResult); + var browserTiming = evnt as EventsBrowserTimingResult; + + Assert.NotNull(browserTiming.BrowserTiming); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.BrowserTiming.UrlPath)); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.BrowserTiming.UrlHost)); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.BrowserTiming.Name)); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.BrowserTiming.Url)); + Assert.True(browserTiming.BrowserTiming.TotalDuration >= 0); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.BrowserTiming.PerformanceBucket)); + Assert.True(browserTiming.BrowserTiming.NetworkDuration >= 0); + Assert.True(browserTiming.BrowserTiming.SendDuration >= 0); + Assert.True(browserTiming.BrowserTiming.ReceiveDuration >= 0); + Assert.True(browserTiming.BrowserTiming.ProcessingDuration >= 0); + + Assert.NotNull(browserTiming.ClientPerformance); + Assert.False(string.IsNullOrWhiteSpace(browserTiming.ClientPerformance.Name)); + } + + protected void VerifyRequest(EventsResultData evnt) + { + Assert.True(evnt is EventsRequestResult); + var request = evnt as EventsRequestResult; + Assert.NotNull(request.Request); + Assert.False(string.IsNullOrWhiteSpace(request.Request.Name)); + Assert.False(string.IsNullOrWhiteSpace(request.Request.Url)); + Assert.False(string.IsNullOrWhiteSpace(request.Request.Success)); + Assert.True(request.Request.Duration >= 0); + Assert.False(string.IsNullOrWhiteSpace(request.Request.PerformanceBucket)); + Assert.False(string.IsNullOrWhiteSpace(request.Request.ResultCode)); + Assert.False(string.IsNullOrWhiteSpace(request.Request.Id)); + // Source can be null + } + + protected void VerifyDependency(EventsResultData evnt) + { + Assert.True(evnt is EventsDependencyResult); + var dependency = evnt as EventsDependencyResult; + Assert.NotNull(dependency.Dependency); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Target)); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Data)); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Success)); + Assert.True(dependency.Dependency.Duration >= 0); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.PerformanceBucket)); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Type)); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Name)); + Assert.False(string.IsNullOrWhiteSpace(dependency.Dependency.Id)); + // ResultCode can be null + } + + protected void VerifyException(EventsResultData evnt) + { + Assert.True(evnt is EventsExceptionResult); + var exception = evnt as EventsExceptionResult; + Assert.NotNull(exception.Exception); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.ProblemId)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Assembly)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Type)); + Assert.NotNull(exception.Exception.Details); + Assert.True(exception.Exception.Details.Count >= 0); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].Id)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].OuterId)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].Type)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].Message)); + Assert.NotNull(exception.Exception.Details[0].ParsedStack); + Assert.True(exception.Exception.Details[0].ParsedStack.Count >= 0); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].ParsedStack[0].Assembly)); + Assert.False(string.IsNullOrWhiteSpace(exception.Exception.Details[0].ParsedStack[0].Method)); + Assert.True(exception.Exception.Details[0].ParsedStack[0].Level >= 0); + Assert.True(exception.Exception.Details[0].ParsedStack[0].Line >= 0); + // SeverityLevel, HandledAt, Message, Outer* & Inner* can be null + } + + protected void VerifyAvailabilityResult(EventsResultData evnt) + { + Assert.True(evnt is EventsAvailabilityResultResult); + var availabilityResult = evnt as EventsAvailabilityResultResult; + Assert.NotNull(availabilityResult.AvailabilityResult); + Assert.False(string.IsNullOrWhiteSpace(availabilityResult.AvailabilityResult.Name)); + Assert.False(string.IsNullOrWhiteSpace(availabilityResult.AvailabilityResult.Success)); + Assert.True(availabilityResult.AvailabilityResult.Duration >= 0); + Assert.False(string.IsNullOrWhiteSpace(availabilityResult.AvailabilityResult.Message)); + Assert.False(string.IsNullOrWhiteSpace(availabilityResult.AvailabilityResult.Location)); + Assert.False(string.IsNullOrWhiteSpace(availabilityResult.AvailabilityResult.Id)); + // PerformanceBucket & Size can be null + } + + protected void VerifyPerformanceCounter(EventsResultData evnt) + { + Assert.True(evnt is EventsPerformanceCounterResult); + var customEvent = evnt as EventsPerformanceCounterResult; + Assert.NotNull(customEvent.PerformanceCounter); + // Value can be any int value + Assert.False(string.IsNullOrWhiteSpace(customEvent.PerformanceCounter.Name)); + Assert.False(string.IsNullOrWhiteSpace(customEvent.PerformanceCounter.Category)); + Assert.False(string.IsNullOrWhiteSpace(customEvent.PerformanceCounter.Counter)); + Assert.False(string.IsNullOrWhiteSpace(customEvent.PerformanceCounter.Instance)); + // InstanceName can be null + } + + protected void VerifyCustomMetric(EventsResultData evnt) + { + Assert.True(evnt is EventsCustomMetricResult); + var customEvent = evnt as EventsCustomMetricResult; + Assert.NotNull(customEvent.CustomMetric); + Assert.False(string.IsNullOrWhiteSpace(customEvent.CustomMetric.Name)); + // The other values can be any int value + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTests.cs new file mode 100644 index 0000000000000..d6769632f85e4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/EventsTests.cs @@ -0,0 +1,74 @@ +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Threading.Tasks; +using Xunit; + +namespace Data.ApplicationInsights.Tests.Events +{ + public class EventsTests : EventsTestBase + { + private const int TopCount = 10; + private readonly TimeSpan Timespan = new TimeSpan(1, 0, 0, 0); + + [Fact] + public async Task GetAllEvents() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var client = GetClient(ctx); + var events = await client.GetEventsAsync(EventType.All, timespan: Timespan, top: TopCount); + + Assert.NotNull(events); + Assert.NotNull(events.Value); + Assert.True(events.Value.Count <= TopCount); + + foreach (var evnt in events.Value) + { + var eventType = GetEventType(evnt); + if (!eventType.HasValue) continue; // This means there is a new type that we don't support here yet + AssertEvent(evnt, eventType.Value); + } + } + } + + [Theory] + [InlineData(EventType.Traces)] + [InlineData(EventType.CustomEvents)] + [InlineData(EventType.PageViews)] + [InlineData(EventType.BrowserTimings)] + [InlineData(EventType.Requests)] + [InlineData(EventType.Dependencies)] + [InlineData(EventType.Exceptions)] + [InlineData(EventType.AvailabilityResults)] + [InlineData(EventType.PerformanceCounters)] + [InlineData(EventType.CustomMetrics)] + public async Task GetEventsByType(EventType eventType) + { + using (var ctx = MockContext.Start(GetType().FullName, $"GetEventsByType.{eventType}")) + { + var client = GetClient(ctx); + var traces = await client.GetEventsAsync(eventType, timespan: Timespan, top: TopCount); + + Assert.NotNull(traces); + Assert.NotNull(traces.Value); + Assert.True(traces.Value.Count <= TopCount); + + var evnt = traces.Value[0]; + + AssertEvent(evnt, eventType); + + traces = await client.GetEventAsync(eventType, evnt.Id); + + Assert.NotNull(traces); + Assert.NotNull(traces.Value); + Assert.Equal(1, traces.Value.Count); + + evnt = traces.Value[0]; + + AssertEvent(evnt, eventType); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/TraceEventsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/TraceEventsTests.cs new file mode 100644 index 0000000000000..7dd15f93e5a8e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Events/TraceEventsTests.cs @@ -0,0 +1,47 @@ +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Newtonsoft.Json; +using Xunit; +using System; + +namespace Data.ApplicationInsights.Tests.Events +{ + public class TraceEventsTests : EventsTestBase + { + [Fact] + public async Task GetTraceEvents() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var timespan = new TimeSpan(12, 0, 0); + var top = 10; + + var client = GetClient(ctx); + var events = await client.GetTraceEventsAsync(timespan, top: top); + + Assert.NotNull(events); + Assert.NotNull(events.Value); + Assert.True(events.Value.Count > 0); + Assert.True(events.Value.Count <= top); + + foreach (var e in events.Value) + { + AssertEvent(e, EventType.Traces); + } + + Assert.True(!string.IsNullOrEmpty(events.Value[0].Id)); + + var evnt = await client.GetTraceEventAsync(events.Value[0].Id, timespan); + + Assert.NotNull(evnt); + Assert.NotNull(evnt.Value); + Assert.True(evnt.Value.Count == 1); + + Assert.Equal(JsonConvert.SerializeObject(evnt.Value[0]), + JsonConvert.SerializeObject(events.Value[0])); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledMetricsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledMetricsTests.cs new file mode 100644 index 0000000000000..944510faea98e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledMetricsTests.cs @@ -0,0 +1,57 @@ +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; +using System; + +namespace Data.ApplicationInsights.Tests.Metrics +{ + public class IntervaledMetricsTests : MetricsTestBase + { + [Fact] + public async Task GetIntervaledMetrics() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledMetricAsync(metricId, timespan, interval, aggregation); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + AssertMetrics(inter, true, false, false, false, false); + } + } + } + + [Fact] + public async Task GetIntervaledMetrics_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg", "count", "max", "min", "sum" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledMetricAsync(metricId, timespan, interval, aggregation); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + AssertMetrics(inter, true, true, true, true, true); + } + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledSegmentedMetricsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledSegmentedMetricsTests.cs new file mode 100644 index 0000000000000..6cc9f8cc648d4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/IntervaledSegmentedMetricsTests.cs @@ -0,0 +1,166 @@ +using System; +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace Data.ApplicationInsights.Tests.Metrics +{ + public class IntervaledSegmentedMetricsTests : MetricsTestBase + { + [Fact] + public async Task GetIntervaledSegmentedMetrics() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg" }; + var segments = new[] { "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledSegmentedMetricAsync(metricId, timespan, interval, aggregation, segments); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + Assert.True(inter.Segments.Count > 0); + + foreach (var segment in inter.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment.GetType()); + var seg = segment as MetricsSegmentedData; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + AssertMetrics(seg, true, false, false, false, false); + } + } + } + } + + [Fact(Skip = "true")] // This API call is failing with a 500 for some reason + public async Task GetIntervaledSegmentedMetrics_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg", "count", "max", "min", "sum" }; + var segments = new[] { "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledSegmentedMetricAsync(metricId, timespan, interval, aggregation, segments); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + Assert.True(inter.Segments.Count > 0); + + foreach (var segment in inter.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment.GetType()); + var seg = segment as MetricsSegmentedData; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + AssertMetrics(seg, true, true, true, true, true); + } + } + } + } + + [Fact] + public async Task GetIntervaledMultiSegmentedMetrics() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg" }; + var segments = new[] { "request/name", "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledSegmentedMetricAsync(metricId, timespan, interval, aggregation, segments); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + Assert.True(inter.Segments.Count > 0); + + foreach (var segment in inter.Segments) + { + Assert.Equal(typeof(MetricsNestedSegment), segment.GetType()); + var seg = segment as MetricsNestedSegment; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + + foreach (var segment2 in seg.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment2.GetType()); + var seg2 = segment2 as MetricsSegmentedData; + Assert.NotNull(seg2); + Assert.Equal(segments[1], seg2.SegmentId); + Assert.NotNull(seg2.SegmentValue); + AssertMetrics(seg2, true, false, false, false, false); + } + } + } + } + } + + [Fact(Skip = "true")] // This API call is failing with a 500 for some reason + public async Task GetIntervaledMultiSegmentedMetrics_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var interval = new TimeSpan(1, 0, 0); + var aggregation = new[] { "avg", "count", "max", "min", "sum" }; + var segments = new[] { "request/name", "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetIntervaledSegmentedMetricAsync(metricId, timespan, interval, aggregation, segments); + + Assert.Equal(interval, metric.Interval); + Assert.Equal(13, metric.Intervals.Count); // Actually 13 because of time rounding, I suppose + + foreach (var inter in metric.Intervals) + { + Assert.True(inter.Segments.Count > 0); + + foreach (var segment in inter.Segments) + { + Assert.Equal(typeof(MetricsNestedSegment), segment.GetType()); + var seg = segment as MetricsNestedSegment; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + + foreach (var segment2 in seg.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment2.GetType()); + var seg2 = segment2 as MetricsSegmentedData; + Assert.NotNull(seg2); + Assert.Equal(segments[1], seg2.SegmentId); + Assert.NotNull(seg2.SegmentValue); + AssertMetrics(seg2, true, true, true, true, true); + } + } + } + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/MetricTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/MetricTests.cs new file mode 100644 index 0000000000000..b7433b106277e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/MetricTests.cs @@ -0,0 +1,99 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace Data.ApplicationInsights.Tests.Metrics +{ + public class MetricTests : MetricsTestBase + { + [Theory] + [MemberData(nameof(AggregatedMetric))] + [MemberData(nameof(AggregatedIntervalMetric))] + [MemberData(nameof(AggregatedSegmentMetric))] + [MemberData(nameof(AggregatedIntervalSegmentMetric))] + [MemberData(nameof(AggregatedIntervalMultiSegmentMetric))] + public async Task GetMetrics(MetricsPostBodySchema metric, bool hasInterval, bool isSegmented) + { + using (var ctx = MockContext.Start(GetType().FullName, $"GetMetrics.{metric.Id}")) + { + var metricRequest = new List + { + metric + }; + + var client = GetClient(ctx); + var metrics = await client.GetMetricsAsync(metricRequest); + + Assert.NotNull(metrics); + Assert.Equal(1, metrics.Count); + + VerifyMetric(metric, metrics[0], hasInterval, isSegmented); + } + } + + private void VerifyMetric(MetricsPostBodySchema expected, MetricsResultsItem actual, bool hasInterval = false, bool isSegmented = false) + { + Assert.Equal(expected.Id, actual.Id); + Assert.Equal(200, actual.Status); + + string metricId = null; + Dictionary metricValues = null; + + var segmentInfo = new List>(); + + metricId = actual.Body.Value.MetricId; + metricValues = actual.Body.Value.MetricValues; + + MetricsSegmentInfo info = actual.Body.Value.Segments != null ? actual.Body.Value.Segments[0] : null; + while (info != null) + { + metricId = info.MetricId; + metricValues = info.MetricValues; + + if (info.SegmentId != null) + { + segmentInfo.Add(new KeyValuePair(info.SegmentId, info.SegmentValue)); + } + + info = info.Segments != null ? info.Segments[0] : null; + } + + // Check that the interval field is set appropriately + if (hasInterval) + { + Assert.NotNull(actual.Body.Value.Interval); + } + else + { + Assert.Null(actual.Body.Value.Interval); + } + + // Check that the segmentation fields are set appropriately + if (!isSegmented) + { + Assert.Empty(segmentInfo); + } + else + { + for (var i=0; i AggregatedMetric + { + get + { + yield return AggregatedMetricData; + } + } + + public static IEnumerable AggregatedIntervalMetric + { + get + { + yield return AggregatedIntervalMetricData; + } + } + + public static IEnumerable AggregatedSegmentMetric + { + get + { + yield return AggregatedSegmentMetricData; + } + } + + public static IEnumerable AggregatedIntervalSegmentMetric + { + get + { + yield return AggregatedIntervalSegmentMetricData; + } + } + + public static IEnumerable AggregatedIntervalMultiSegmentMetric + { + get + { + yield return AggregatedIntervalMultiSegmentMetricData; + } + } + + protected void AssertMetrics(IMetricData metric, bool hasAverage, bool hasCount, bool hasMax, bool hasMin, bool hasSum) + { + Assert.Equal(hasAverage, metric.Average.HasValue); + Assert.Equal(hasCount, metric.Count.HasValue); + Assert.Equal(hasMax, metric.Max.HasValue); + Assert.Equal(hasMin, metric.Min.HasValue); + Assert.Equal(hasSum, metric.Sum.HasValue); + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SegmentedMetricsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SegmentedMetricsTests.cs new file mode 100644 index 0000000000000..aa3bd16fc5611 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SegmentedMetricsTests.cs @@ -0,0 +1,138 @@ +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; +using System; + +namespace Data.ApplicationInsights.Tests.Metrics +{ + public class SegmentedMetricsTests : MetricsTestBase + { + [Fact] + public async Task GetSegmentedMetrics() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var aggregation = new[] { "avg" }; + var segments = new[] { "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetSegmentedMetricAsync(metricId, timespan, aggregation, segments); + + Assert.True(metric.Segments.Count > 0); + + foreach (var segment in metric.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment.GetType()); + var seg = segment as MetricsSegmentedData; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + AssertMetrics(seg, true, false, false, false, false); + } + } + } + + [Fact] + public async Task GetSegmentedMetrics_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var aggregation = new[] { "avg", "count", "max", "min", "sum" }; + var segments = new[] { "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetSegmentedMetricAsync(metricId, timespan, aggregation, segments); + + Assert.True(metric.Segments.Count > 0); + + foreach (var segment in metric.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment.GetType()); + var seg = segment as MetricsSegmentedData; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + AssertMetrics(seg, true, true, true, true, true); + } + } + } + + [Fact] + public async Task GetMultiSegmentedMetrics() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var aggregation = new[] { "avg" }; + var segments = new[] { "request/name", "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetSegmentedMetricAsync(metricId, timespan, aggregation, segments); + + Assert.True(metric.Segments.Count > 0); + + foreach (var segment in metric.Segments) + { + Assert.Equal(typeof(MetricsNestedSegment), segment.GetType()); + var seg = segment as MetricsNestedSegment; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + + foreach (var segment2 in seg.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment2.GetType()); + var seg2 = segment2 as MetricsSegmentedData; + Assert.NotNull(seg2); + Assert.Equal(segments[1], seg2.SegmentId); + Assert.NotNull(seg2.SegmentValue); + AssertMetrics(seg2, true, false, false, false, false); + } + } + } + } + + [Fact(Skip = "true")] // This API call is failing with a 500 for some reason + public async Task GetMultiSegmentedMetrics_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new TimeSpan(12, 0, 0); + var aggregation = new[] { "avg", "count", "max", "min", "sum" }; + var segments = new[] { "request/name", "request/resultCode" }; + + var client = GetClient(ctx); + var metric = await client.GetSegmentedMetricAsync(metricId, timespan, aggregation, segments); + + Assert.True(metric.Segments.Count > 0); + + foreach (var segment in metric.Segments) + { + Assert.Equal(typeof(MetricsNestedSegment), segment.GetType()); + var seg = segment as MetricsNestedSegment; + Assert.NotNull(seg); + Assert.Equal(segments[0], seg.SegmentId); + Assert.NotNull(seg.SegmentValue); + + foreach (var segment2 in seg.Segments) + { + Assert.Equal(typeof(MetricsSegmentedData), segment2.GetType()); + var seg2 = segment2 as MetricsSegmentedData; + Assert.NotNull(seg2); + Assert.Equal(segments[1], seg2.SegmentId); + Assert.NotNull(seg2.SegmentValue); + AssertMetrics(seg2, true, true, true, true, true); + } + } + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SummaryMetricsTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SummaryMetricsTests.cs new file mode 100644 index 0000000000000..acba948a4a080 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/Metrics/SummaryMetricsTests.cs @@ -0,0 +1,42 @@ +using System.Threading.Tasks; +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using Xunit; + +namespace Data.ApplicationInsights.Tests.Metrics +{ + public class SummaryMetricsTests : MetricsTestBase + { + [Fact] + public async Task GetSummaryMetric() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new System.TimeSpan(12, 0, 0); + var aggregation = new[] {"avg"}; + + var client = GetClient(ctx); + var metric = await client.GetMetricSummaryAsync(metricId, timespan, aggregation); + + AssertMetrics(metric, true, false, false, false, false); + } + } + + [Fact] + public async Task GetSummaryMetric_AllAggregations() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var metricId = "requests/duration"; + var timespan = new System.TimeSpan(12, 0, 0); + var aggregation = new[] { "avg", "count", "min", "max", "sum" }; + + var client = GetClient(ctx); + var metric = await client.GetMetricSummaryAsync(metricId, timespan, aggregation); + + AssertMetrics(metric, true, true, true, true, true); + } + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/QueryTests.cs b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/QueryTests.cs new file mode 100644 index 0000000000000..3bbddf2064d64 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/ScenarioTests/QueryTests.cs @@ -0,0 +1,116 @@ +using Microsoft.Azure.ApplicationInsights; +using Microsoft.Azure.ApplicationInsights.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Xunit; + +namespace Data.ApplicationInsights.Tests +{ + public class QueryTests : DataPlaneTestBase + { + delegate Task> ExecuteQuery(ApplicationInsightsDataClient client); + + private const int TakeCount = 25; + private readonly string SimpleQuery = $"union * | take {TakeCount}"; + private readonly TimeSpan PastHourTimespan = new TimeSpan(1, 0, 0); + + [Fact] + public async Task CanExecuteSimplePostQuery_DemoWorkspace() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + await ExecuteAndVerify(async (client) => await client.QueryWithHttpMessagesAsync(SimpleQuery), ctx: ctx); + } + } + + [Fact] + public async Task CanExecutePostQueryWithTimespan_DemoWorkspace() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + await ExecuteAndVerify(async (client) => await client.QueryWithHttpMessagesAsync(SimpleQuery, PastHourTimespan), ctx: ctx); + } + } + + [Fact] + public async Task GetsExceptionWithSyntaxError() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var client = GetClient(ctx: ctx); + var badQuery = "union * | foobar"; + + try + { + await client.QueryWithHttpMessagesAsync(badQuery, PastHourTimespan); + Assert.True(false, "An exception should have been thrown."); + } + catch (ErrorResponseException e) + { + Assert.Equal(System.Net.HttpStatusCode.BadRequest, e.Response.StatusCode); + Assert.Equal("BadArgumentError", e.Body.Error.Code); + Assert.Equal("SyntaxError", e.Body.Error.Innererror.Code); + } + catch (Exception e) + { + Assert.True(false, $"Expected an {nameof(ErrorResponseException)} but got a {e.GetType().Name}: {e.Message}"); + } + } + } + + [Fact] + public async Task GetsExceptionWithShortWait() + { + using (var ctx = MockContext.Start(GetType().FullName)) + { + var client = GetClient(ctx); + client.Preferences.Wait = 1; + + var longQuery = "union * | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp"; + + try + { + var result = await client.QueryWithHttpMessagesAsync(longQuery, customHeaders: new Dictionary> { { "Cache-Control", new List { "no-cache" } } }); + Assert.True(false, "An exception should have been thrown."); + } + catch (ErrorResponseException e) + { + Assert.Equal(System.Net.HttpStatusCode.GatewayTimeout, e.Response.StatusCode); + Assert.Equal("GatewayTimeout", e.Body.Error.Code); + Assert.Equal("GatewayTimeout", e.Body.Error.Innererror.Code); + } + catch (Exception e) + { + Assert.True(false, $"Expected an {nameof(ErrorResponseException)} but got a {e.GetType().Name}: {e.Message}"); + } + } + } + + private async Task ExecuteAndVerify(ExecuteQuery runQuery, MockContext ctx, string appId = DefaultAppId, string apiKey = DefaultApiKey) + { + var client = GetClient(ctx, appId, apiKey); + client.Preferences.IncludeStatistics = true; + client.Preferences.IncludeRender = true; + + client.AppId = appId; + + var response = await runQuery.Invoke(client); + + Assert.Equal(System.Net.HttpStatusCode.OK, response.Response.StatusCode); + Assert.Equal("OK", response.Response.ReasonPhrase); + Assert.True(response.Body.Tables.Count > 0, "Table count isn't greater than 0"); + Assert.False(String.IsNullOrWhiteSpace(response.Body.Tables[0].Name), "Table name was null/empty"); + Assert.True(response.Body.Tables[0].Columns.Count > 1, "Column count isn't greater than 1"); + Assert.True(response.Body.Tables[0].Rows.Count > 1, "Row count isn't greater than 1"); + + var resultArray = response.Body.Tables[0].Rows; + Assert.NotNull(resultArray); + Assert.Equal(TakeCount, resultArray.Count); + + Assert.NotNull(response.Body.Statistics); + Assert.NotNull(response.Body.Render); + } + } +} diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetAllEvents.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetAllEvents.json new file mode 100644 index 0000000000000..49cdf594b49a5 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetAllEvents.json @@ -0,0 +1,71 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/%24all?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzLyUyNGFsbD90aW1lc3Bhbj1QMUQmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "0ad2810e-5ce5-4c1b-be82-1104b70ade60" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#Collection(Edm.EntityType)\",\r\n \"value\": [\r\n {\r\n \"id\": \"71cc0c07-c4b2-11e7-a91f-5bf3105ea323\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:27:04.251Z\",\r\n \"availabilityResult\": {\r\n \"id\": \"18d1e035-d69e-46b3-8c9a-612630ce446e\",\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 56,\r\n \"performanceBucket\": \"\",\r\n \"message\": \"Passed\",\r\n \"location\": \"US : CA-San Jose\",\r\n \"size\": null\r\n },\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"\",\r\n \"id\": \"\",\r\n \"parentId\": \"\",\r\n \"syntheticSource\": \"\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"7cc68fe2-c4b2-11e7-80d6-358c94948698\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:59.745Z\",\r\n \"availabilityResult\": {\r\n \"id\": \"77eba573-82b1-4cfb-8f48-5ee278b38f23\",\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 402,\r\n \"performanceBucket\": \"\",\r\n \"message\": \"Passed\",\r\n \"location\": \"US : IL-Chicago\",\r\n \"size\": null\r\n },\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"\",\r\n \"id\": \"\",\r\n \"parentId\": \"\",\r\n \"syntheticSource\": \"\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"23.96.249.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f4e-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:58.153Z\",\r\n \"trace\": {\r\n \"severityLevel\": 0,\r\n \"message\": \"New Request Received\"\r\n },\r\n \"customDimensions\": \"\",\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"UbMRN5wKsdA=\",\r\n \"parentId\": \"|UbMRN5wKsdA=.bbc126df_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"77eba573-82b1-4cfb-8f48-5ee278b38f23\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_77eba573-82b1-4cfb-8f48-5ee278b38f23\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"23.96.249.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f55-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:58.153Z\",\r\n \"request\": {\r\n \"id\": \"|UbMRN5wKsdA=.bbc126df_\",\r\n \"urlPath\": \"/Reports\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 4.6432,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": \"\"\r\n },\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"UbMRN5wKsdA=\",\r\n \"parentId\": \"UbMRN5wKsdA=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"77eba573-82b1-4cfb-8f48-5ee278b38f23\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_77eba573-82b1-4cfb-8f48-5ee278b38f23\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"23.96.249.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"69ed9505-c4b2-11e7-a12a-b343f5899796\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:48.297Z\",\r\n \"availabilityResult\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 1428,\r\n \"performanceBucket\": \"\",\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 11/08/2017 18:26:49 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : IL-Chicago\",\r\n \"size\": null\r\n },\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"\",\r\n \"id\": \"\",\r\n \"parentId\": \"\",\r\n \"syntheticSource\": \"\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f52-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.822Z\",\r\n \"dependency\": {\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_5.\",\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\"\r\n },\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f51-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.67Z\",\r\n \"dependency\": {\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_4.\",\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber()\",\r\n \"success\": \"False\",\r\n \"duration\": 154,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\"\r\n },\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f50-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.377Z\",\r\n \"dependency\": {\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_3.\",\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/Tables()\",\r\n \"success\": \"False\",\r\n \"duration\": 288,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/Tables\"\r\n },\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f54-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.314Z\",\r\n \"request\": {\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"urlPath\": \"/Customers/Details/8469\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"GET Customers/Details\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469\",\r\n \"success\": \"False\",\r\n \"duration\": 1247.7841,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"resultCode\": \"500\",\r\n \"source\": \"\"\r\n },\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"0dUhKQBZ35o=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f4d-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.314Z\",\r\n \"trace\": {\r\n \"severityLevel\": 0,\r\n \"message\": \"New Request Received\"\r\n },\r\n \"customDimensions\": \"\",\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:01 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.ebe944b6-c48f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.AvailabilityResults.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.AvailabilityResults.json new file mode 100644 index 0000000000000..02059b3b149ac --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.AvailabilityResults.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHM/dGltZXNwYW49UDFEJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "5c560613-1ff8-4a26-91af-9df8b720bf6e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"4aa3a1f6-c4b2-11e7-ae99-c78cae69dbe8\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:51.47Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1438,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2dcfb7f7-c4b2-11e7-bc23-f358c6c66f97\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:12.414Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1835,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"FR : Paris\",\r\n \"id\": \"b51974ca-142d-436d-a622-0e53758f98fc\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"2a728370-c4b2-11e7-8e7d-ddfad00f9c3c\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:02.481Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 707,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : VA-Ashburn\",\r\n \"id\": \"a9e1f7e6-885d-4b88-a489-009bff2511a3\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.168.8.0\",\r\n \"city\": \"Boydton\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"21f29c23-c4b2-11e7-aa86-75a6bdc5d89b\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:44.682Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 817,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 11/08/2017 18:24:45 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : VA-Ashburn\",\r\n \"id\": \"d43019a9-c81e-4c93-8545-d6320fdb54c8\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"1c2ad01e-c4b2-11e7-8914-23bab23936ba\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:30.983Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 1520,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 11/08/2017 18:24:32 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"1800395a-c4b2-11e7-ae0b-bd02611ff945\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:15.188Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1945,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"SG : Singapore\",\r\n \"id\": \"90641a2a-4b5a-4489-9f87-3af859d4bf84\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"ec047506-c4b1-11e7-987d-3939968673e0\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:23:14.324Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Employee Create\",\r\n \"success\": \"0\",\r\n \"duration\": 259,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 404 - NotFound') occured at 11/08/2017 18:23:14 (UTC) for Uri 'http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create', step #1 with the error ''404 - NotFound' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"FR : Paris\",\r\n \"id\": \"96723b01-c12f-4364-a314-6e2683edd223\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"e204a4b2-c4b1-11e7-8bb1-517185e57447\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:23:11.294Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 768,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : CA-San Jose\",\r\n \"id\": \"7b5f6a6f-d73b-453f-8236-4753009b9caa\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"d48941c9-c4b1-11e7-9727-7f2290a0bf79\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:22:36.144Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1035,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : IL-Chicago\",\r\n \"id\": \"0df5e854-5bbe-48b8-9764-02b75dc64382\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"d4bcae31-c4b1-11e7-b66a-792140b8dc33\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:22:23.703Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 2231,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"RU : Moscow\",\r\n \"id\": \"1be3cb61-0c81-482a-a398-9626137161b9\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.82.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.9a8afd1f-c4a4-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults/4aa3a1f6-c4b2-11e7-ae99-c78cae69dbe8", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHMvNGFhM2ExZjYtYzRiMi0xMWU3LWFlOTktYzc4Y2FlNjlkYmU4", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "71f26a30-1534-4c28-9fea-aab27413ee5d" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/availabilityResults/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"4aa3a1f6-c4b2-11e7-ae99-c78cae69dbe8\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:51.47Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1438,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:40 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.8992e5a4-c476-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.BrowserTimings.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.BrowserTimings.json new file mode 100644 index 0000000000000..cc55ec3c376a3 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.BrowserTimings.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzP3RpbWVzcGFuPVAxRCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "98b1fcc6-920b-4124-94c4-7cf8eb41ce20" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"a2a54102-c4a0-11e7-9423-e52844548012\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:46.387Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 289,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 171,\r\n \"receiveDuration\": 40,\r\n \"processingDuration\": 76\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"Uz0UO\",\r\n \"parentId\": \"Uz0UO\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"a1b69b42-c4a0-11e7-9423-e52844548012\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:44.79Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Customers\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers\",\r\n \"totalDuration\": 528,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 304,\r\n \"receiveDuration\": 204,\r\n \"processingDuration\": 17\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers\",\r\n \"id\": \"AS7KR\",\r\n \"parentId\": \"AS7KR\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Customers\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"a0e9ae52-c4a0-11e7-b686-9788c0e0b34b\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:43.52Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 278,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 168,\r\n \"receiveDuration\": 3,\r\n \"processingDuration\": 105\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"eHt4K\",\r\n \"parentId\": \"eHt4K\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9d8ceec2-c4a0-11e7-b944-b5c11e6c4f9f\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:37.879Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 285,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 174,\r\n \"receiveDuration\": 2,\r\n \"processingDuration\": 107\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"lGgxs\",\r\n \"parentId\": \"lGgxs\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9cbd90d2-c4a0-11e7-b944-b5c11e6c4f9f\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:36.541Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Customers\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers\",\r\n \"totalDuration\": 461,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 261,\r\n \"receiveDuration\": 180,\r\n \"processingDuration\": 18\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers\",\r\n \"id\": \"snETS\",\r\n \"parentId\": \"snETS\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Customers\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"98c5c9c2-c4a0-11e7-aac9-65e675241eef\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:29.899Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 283,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 170,\r\n \"receiveDuration\": 2,\r\n \"processingDuration\": 108\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"DzCTC\",\r\n \"parentId\": \"DzCTC\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"88bc4222-c4a0-11e7-b686-9788c0e0b34b\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:03.033Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 284,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 178,\r\n \"receiveDuration\": 37,\r\n \"processingDuration\": 67\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"eyeHe\",\r\n \"parentId\": \"eyeHe\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"86441632-c4a0-11e7-b944-b5c11e6c4f9f\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:18:58.448Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Customers\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers\",\r\n \"totalDuration\": 447,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 242,\r\n \"receiveDuration\": 190,\r\n \"processingDuration\": 12\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers\",\r\n \"id\": \"LMajg\",\r\n \"parentId\": \"LMajg\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Customers\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"7facc512-c4a0-11e7-82e6-0fae6c4aae4c\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:18:44.604Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/\",\r\n \"totalDuration\": 7770,\r\n \"performanceBucket\": \"7sec-15sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 411,\r\n \"receiveDuration\": 173,\r\n \"processingDuration\": 6999\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/\",\r\n \"id\": \"XjbCM\",\r\n \"parentId\": \"XjbCM\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"d27b9c92-c49f-11e7-b0a6-f3e6ec5a56a4\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:13:57.613Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Employees\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Employees\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees\",\r\n \"totalDuration\": 948,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"networkDuration\": 152,\r\n \"sendDuration\": 556,\r\n \"receiveDuration\": 123,\r\n \"processingDuration\": 117\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Employees\",\r\n \"id\": \"s+y16\",\r\n \"parentId\": \"s+y16\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"gi1fS\"\r\n },\r\n \"user\": {\r\n \"id\": \"STqcV\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Employees\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Chrome 61.0\",\r\n \"ip\": \"154.51.133.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:13 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.8bbb55d0-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings/a2a54102-c4a0-11e7-9423-e52844548012", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzL2EyYTU0MTAyLWM0YTAtMTFlNy05NDIzLWU1Mjg0NDU0ODAxMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "4e336b70-952f-46c9-8991-cebe9ecf5226" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/browserTimings/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"a2a54102-c4a0-11e7-9423-e52844548012\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T16:19:46.387Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers/Create\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers/Create\",\r\n \"totalDuration\": 289,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 171,\r\n \"receiveDuration\": 40,\r\n \"processingDuration\": 76\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers/Create\",\r\n \"id\": \"Uz0UO\",\r\n \"parentId\": \"Uz0UO\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"PxoHN\"\r\n },\r\n \"user\": {\r\n \"id\": \"UCYW1\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Create\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"201.6.230.0\",\r\n \"city\": \"São Paulo\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.97ea3b51-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomEvents.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomEvents.json new file mode 100644 index 0000000000000..b52e419811913 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomEvents.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cz90aW1lc3Bhbj1QMUQmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "3db3e310-c799-4aea-8ade-502207c931fd" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"73b44920-c4b1-11e7-b2d9-eb336d9acb09\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"kFgbo\",\r\n \"parentId\": \"kFgbo\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"MNwCD\"\r\n },\r\n \"user\": {\r\n \"id\": \"hwO00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"73b02a70-c4b1-11e7-b8d0-9d8a20825f7f\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"kMJZS\",\r\n \"parentId\": \"kMJZS\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"IEGDs\"\r\n },\r\n \"user\": {\r\n \"id\": \"fSJ00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"73cade61-c4b1-11e7-8a33-3b957926b281\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"1RnRv\",\r\n \"parentId\": \"1RnRv\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"aWbX+\"\r\n },\r\n \"user\": {\r\n \"id\": \"erE00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked My Tickets Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"73f2d8c0-c4b1-11e7-b46c-6bd14f7dad56\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"PLPl4\",\r\n \"parentId\": \"PLPl4\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"aTvuy\"\r\n },\r\n \"user\": {\r\n \"id\": \"dJB00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.0\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"7401cce0-c4b1-11e7-bc65-5705d5a90e79\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"UAmxN\",\r\n \"parentId\": \"UAmxN\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"V/w/t\"\r\n },\r\n \"user\": {\r\n \"id\": \"hlA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Close Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"7393c8d0-c4b1-11e7-87fe-f5f743a0f0c1\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"wc9Of\",\r\n \"parentId\": \"wc9Of\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Fgfvr\"\r\n },\r\n \"user\": {\r\n \"id\": \"c4D00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.49.100.0\",\r\n \"city\": \"Nantes\",\r\n \"stateOrProvince\": \"Loire-Atlantique\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"73b867d0-c4b1-11e7-bc94-7bc86a6c6cfb\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"c22Sk\",\r\n \"parentId\": \"c22Sk\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"07kLk\"\r\n },\r\n \"user\": {\r\n \"id\": \"dIA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"73808ef1-c4b1-11e7-8cf7-21db31126fd0\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"RwikF\",\r\n \"parentId\": \"RwikF\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"FBrcw\"\r\n },\r\n \"user\": {\r\n \"id\": \"cNA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.49.100.0\",\r\n \"city\": \"Nantes\",\r\n \"stateOrProvince\": \"Loire-Atlantique\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"73d9d280-c4b1-11e7-b710-973c45fc3a94\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"KpPpw\",\r\n \"parentId\": \"KpPpw\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"dp7IB\"\r\n },\r\n \"user\": {\r\n \"id\": \"h8G00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"73be8250-c4b1-11e7-a6b7-a969e2545394\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"0TWWK\",\r\n \"parentId\": \"0TWWK\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"YLZQJ\"\r\n },\r\n \"user\": {\r\n \"id\": \"gJC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Close Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:06 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.8bbb55d0-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents/73b44920-c4b1-11e7-b2d9-eb336d9acb09", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cy83M2I0NDkyMC1jNGIxLTExZTctYjJkOS1lYjMzNmQ5YWNiMDk=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "0f39cc06-a300-478b-bc23-bea918fd5e7e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customEvents/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"73b44920-c4b1-11e7-b2d9-eb336d9acb09\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"kFgbo\",\r\n \"parentId\": \"kFgbo\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"MNwCD\"\r\n },\r\n \"user\": {\r\n \"id\": \"hwO00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "936" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:13 GMT" + ], + "Via": [ + "1.1 draft-ai-green.97ea3b51-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomMetrics.json new file mode 100644 index 0000000000000..e4c8a0af6e085 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.CustomMetrics.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3M/dGltZXNwYW49UDFEJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "77fb2d5f-684a-4de2-884b-18dce258305a" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"56d80576-c4b2-11e7-9e39-0f9dc2c0405c\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:26:31.187Z\",\r\n \"customMetric\": {\r\n \"value\": 0.75,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 0.75,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.75,\r\n \"valueMax\": 0.75,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"dd6db720-c4b1-11e7-b2d9-eb336d9acb09\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:23:06.3Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"dd3df490-c4b1-11e7-b640-2fe5591f49f4\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:23:06.128Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"dc83f360-c4b1-11e7-945c-11832f8e1383\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:23:04.909Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a48f9c20-c4b1-11e7-b640-2fe5591f49f4\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:21:31.202Z\",\r\n \"customMetric\": {\r\n \"value\": 0.75,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 0.75,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.75,\r\n \"valueMax\": 0.75,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2a483440-c4b1-11e7-abe6-49e3b8c8047a\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:18:06.216Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2a5cf4c1-c4b1-11e7-bec2-e9987d170617\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:18:06.107Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"293871f0-c4b1-11e7-aef7-3f3513639129\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:18:04.825Z\",\r\n \"customMetric\": {\r\n \"value\": 2,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 2,\r\n \"valueCount\": 1,\r\n \"valueMin\": 2,\r\n \"valueMax\": 2,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"f1b13460-c4b0-11e7-b640-2fe5591f49f4\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:16:31.147Z\",\r\n \"customMetric\": {\r\n \"value\": 0.75,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 0.75,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.75,\r\n \"valueMax\": 0.75,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"7804d401-c4b0-11e7-aa98-a18caffada02\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:13:06.775Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:27:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.35dc9025-c47e-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics/56d80576-c4b2-11e7-9e39-0f9dc2c0405c", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3MvNTZkODA1NzYtYzRiMi0xMWU3LTllMzktMGY5ZGMyYzA0MDVj", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "d4c04d58-35b0-4b79-a941-8126dbce1ebd" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customMetrics/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"56d80576-c4b2-11e7-9e39-0f9dc2c0405c\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2017-11-08T18:26:31.187Z\",\r\n \"customMetric\": {\r\n \"value\": 0.75,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 0.75,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.75,\r\n \"valueMax\": 0.75,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "998" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:27:46 GMT" + ], + "Via": [ + "1.1 draft-ai-green.ebe944b6-c48f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Dependencies.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Dependencies.json new file mode 100644 index 0000000000000..0e1dd88a9d903 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Dependencies.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcz90aW1lc3Bhbj1QMUQmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "c13e4e15-76bb-4e7f-b44f-a9d031712a06" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"6b477f52-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.822Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f51-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.67Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber()\",\r\n \"success\": \"False\",\r\n \"duration\": 154,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f50-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.377Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/Tables()\",\r\n \"success\": \"False\",\r\n \"duration\": 288,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/Tables\",\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6b477f4f-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.314Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT TOP (2) \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[FirstName] AS [FirstName], \\r\\n [Extent1].[LastName] AS [LastName], \\r\\n [Extent1].[Address_Street] AS [Address_Street], \\r\\n [Extent1].[Address_City] AS [Address_City], \\r\\n [Extent1].[Address_State] AS [Address_State], \\r\\n [Extent1].[Address_Zip] AS [Address_Zip]\\r\\n FROM [dbo].[Customers] AS [Extent1]\\r\\n WHERE [Extent1].[ID] = @p0\",\r\n \"success\": \"True\",\r\n \"duration\": 55,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_2.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124e-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:51.02Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[Title] AS [Title], \\r\\n [Extent1].[Description] AS [Description], \\r\\n [Extent1].[Status] AS [Status], \\r\\n [Extent1].[StatusValue] AS [StatusValue], \\r\\n [Extent1].[EscalationLevel] AS [EscalationLevel], \\r\\n [Extent1].[Opened] AS [Opened], \\r\\n [Extent1].[Closed] AS [Closed], \\r\\n [Extent1].[CustomerID] AS [CustomerID], \\r\\n [Extent1].[CreatedByID] AS [CreatedByID], \\r\\n [Extent1].[AssignedToID] AS [AssignedToID], \\r\\n [Extent2].[ID] AS [ID1], \\r\\n [Extent2].[FirstName] AS [FirstName], \\r\\n [Extent2].[LastName] AS [LastName], \\r\\n [Extent2].[Address_Street] AS [Address_Street], \\r\\n [Extent2].[Address_City] AS [Address_City], \\r\\n [Extent2].[Address_State] AS [Address_State], \\r\\n [Extent2].[Address_Zip] AS [Address_Zip], \\r\\n [Extent3].[ID] AS [ID2], \\r\\n [Extent3].[FirstName] AS [FirstName1], \\r\\n [Extent3].[LastName] AS [LastName1], \\r\\n [Extent3].[Address_Street] AS [Address_Street1], \\r\\n [Extent3].[Address_City] AS [Address_City1], \\r\\n [Extent3].[Address_State] AS [Address_State1], \\r\\n [Extent3].[Address_Zip] AS [Address_Zip1], \\r\\n [Extent3].[Identity] AS [Identity], \\r\\n [Extent3].[ServiceAreas] AS [ServiceAreas], \\r\\n [Extent4].[ID] AS [ID3], \\r\\n [Extent4].[FirstName] AS [FirstName2], \\r\\n [Extent4].[LastName] AS [LastName2], \\r\\n [Extent4].[Address_Street] AS [Address_Street2], \\r\\n [Extent4].[Address_City] AS [Address_City2], \\r\\n [Extent4].[Address_State] AS [Address_State2], \\r\\n [Extent4].[Address_Zip] AS [Address_Zip2], \\r\\n [Extent4].[Identity] AS [Identity1], \\r\\n [Extent4].[ServiceAreas] AS [ServiceAreas1]\\r\\n FROM [dbo].[ServiceTickets] AS [Extent1]\\r\\n LEFT OUTER JOIN [dbo].[Customers] AS [Extent2] ON [Extent1].[CustomerID] = [Extent2].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent3] ON [Extent1].[CreatedByID] = [Extent3].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent4] ON [Extent1].[AssignedToID] = [Extent4].[ID]\",\r\n \"success\": \"True\",\r\n \"duration\": 64,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_9.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124d-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.958Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages?numofmessages=1\",\r\n \"success\": \"True\",\r\n \"duration\": 52,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_7.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124c-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.848Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages\",\r\n \"success\": \"True\",\r\n \"duration\": 116,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_6.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124b-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.802Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber\",\r\n \"success\": \"True\",\r\n \"duration\": 47,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"204\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"PUT fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124a-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.739Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber?restype=container&comp=list&delimiter=%2F\",\r\n \"success\": \"True\",\r\n \"duration\": 51,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"GET fabrikamaccount\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"47841249-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.63Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\",\r\n \"Blob\": \"fabrikam.txt\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber/fabrikam.txt\",\r\n \"success\": \"True\",\r\n \"duration\": 110,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"PUT fabrikamaccount\",\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:41 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.b6c14a90-c4a8-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies/6b477f52-c4b2-11e7-a140-1d8ea2c47f2e", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcy82YjQ3N2Y1Mi1jNGIyLTExZTctYTE0MC0xZDhlYTJjNDdmMmU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "140ec406-582a-45bf-8289-b580311506f2" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/dependencies/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"6b477f52-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:46.822Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"0dUhKQBZ35o=\",\r\n \"parentId\": \"|0dUhKQBZ35o=.bbc126de_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"34f4b005-5a40-4524-a9d2-221d022fd8e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_34f4b005-5a40-4524-a9d2-221d022fd8e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.4.1-1362\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|0dUhKQBZ35o=.bbc126de_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.4fd29fd6-c40a-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Exceptions.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Exceptions.json new file mode 100644 index 0000000000000..14aad9bf1a2a4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Exceptions.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnM/dGltZXNwYW49UDFEJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "24f80e98-c7fb-4309-835f-ded96f50d3b0" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175b-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"13485803\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"|IDJZzKQkY1Q=.9b74e86a_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"193388dd-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:44.351Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"18769111\",\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_qabkbm2a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 37,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"sUAXeHd0xjw=\",\r\n \"parentId\": \"|sUAXeHd0xjw=.bbc126d9_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d43019a9-c81e-4c93-8545-d6320fdb54c8\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_d43019a9-c81e-4c93-8545-d6320fdb54c8\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"193388dc-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:31.032Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"63876043\",\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_qabkbm2a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 37,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"/kIx4AP98xg=\",\r\n \"parentId\": \"|/kIx4AP98xg=.bbc126d6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"ec360c3c-c4b1-11e7-8824-89ba633af284\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:23:14.295Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"30533405\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"CIvAleKSqdk=\",\r\n \"parentId\": \"|CIvAleKSqdk=.9b74e869_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"96723b01-c12f-4364-a314-6e2683edd223\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_96723b01-c12f-4364-a314-6e2683edd223\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"cf5e51de-c4b1-11e7-b919-cd661d988ff4\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:22:16.409Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"17082036\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"5+lN+Kt/iQ8=\",\r\n \"parentId\": \"|5+lN+Kt/iQ8=.9b74e868_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"93af0852-f395-4f6a-87f6-ab7045ac680a\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_93af0852-f395-4f6a-87f6-ab7045ac680a\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.150.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"b7d27ce1-c4b1-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:21:45.152Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"51101319\",\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_qabkbm2a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 37,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"h1NeEf150/k=\",\r\n \"parentId\": \"|h1NeEf150/k=.bbc126d1_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"146c56b0-2d72-4103-8a5e-f2590437481b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_146c56b0-2d72-4103-8a5e-f2590437481b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.171.141.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"71086302-c4b1-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:19:58.5Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"42969113\",\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_qabkbm2a, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 37,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"j/hOcd6BODo=\",\r\n \"parentId\": \"|j/hOcd6BODo=.bbc126cd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"ccc58165-939a-4500-93d1-3d820b2ee1f0\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_ccc58165-939a-4500-93d1-3d820b2ee1f0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"6e766d83-c4b1-11e7-b919-cd661d988ff4\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:19:30.084Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"49458267\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"p999cH5j9DU=\",\r\n \"parentId\": \"|p999cH5j9DU=.9b74e867_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"2cd49269-84f3-4c75-87ce-55899fb9b6da\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_2cd49269-84f3-4c75-87ce-55899fb9b6da\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.171.57.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"54cdfa11-c4b1-11e7-9810-31d3c4aab866\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:18:47.053Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"64264417\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"JA32SpoX/VI=\",\r\n \"parentId\": \"|JA32SpoX/VI=.9b74e866_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b388e67c-2ce7-471b-ad83-c502b0b5fc4c\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_b388e67c-2ce7-471b-ad83-c502b0b5fc4c\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.82.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"1bda5b4b-c4b1-11e7-9810-31d3c4aab866\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:17:29.545Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"17062561\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"UujLSpVsKq8=\",\r\n \"parentId\": \"|UujLSpVsKq8=.9b74e865_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"43396fa4-cee2-479d-9d69-d1bca5041ebd\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_43396fa4-cee2-479d-9d69-d1bca5041ebd\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.92e11ccd-c49f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions/5f15175b-c4b2-11e7-90a6-31967fcd8bd2", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnMvNWYxNTE3NWItYzRiMi0xMWU3LTkwYTYtMzE5NjdmY2Q4YmQy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "c67a1510-5e02-4edd-9324-42a09922c758" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/exceptions/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175b-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"13485803\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"|IDJZzKQkY1Q=.9b74e86a_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:01 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.8992e5a4-c476-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PageViews.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PageViews.json new file mode 100644 index 0000000000000..5f32182b64901 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PageViews.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cz90aW1lc3Bhbj1QMUQmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "f64b06fc-984f-45ff-bafa-a38bc1bd47f7" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"73d62900-c4b1-11e7-b62d-7364f6736f57\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"yBEoi\",\r\n \"parentId\": \"yBEoi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"3p8tX\"\r\n },\r\n \"user\": {\r\n \"id\": \"hnC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"73bd97f0-c4b1-11e7-8234-27f8725203c4\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"pJMNR\",\r\n \"parentId\": \"pJMNR\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"acCl7\"\r\n },\r\n \"user\": {\r\n \"id\": \"dgE00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"73b5f6d1-c4b1-11e7-bc94-7bc86a6c6cfb\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"lwu3Z\",\r\n \"parentId\": \"lwu3Z\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"2y9AY\"\r\n },\r\n \"user\": {\r\n \"id\": \"grC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"73bc5f71-c4b1-11e7-9367-55d94b327b54\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"Z+xv4\",\r\n \"parentId\": \"Z+xv4\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"y/kAe\"\r\n },\r\n \"user\": {\r\n \"id\": \"eAG00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"73d62901-c4b1-11e7-b62d-7364f6736f57\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"j9l1O\",\r\n \"parentId\": \"j9l1O\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"vjcl4\"\r\n },\r\n \"user\": {\r\n \"id\": \"h6O00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"73be8250-c4b1-11e7-9384-11d6ea06afa8\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"KNr2P\",\r\n \"parentId\": \"KNr2P\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"9Se1j\"\r\n },\r\n \"user\": {\r\n \"id\": \"dlI00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"73f48670-c4b1-11e7-b6cd-5912785b9b14\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"75ftc\",\r\n \"parentId\": \"75ftc\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Dn11B\"\r\n },\r\n \"user\": {\r\n \"id\": \"hXH00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"73a83b30-c4b1-11e7-8e66-69b5a20a9fe8\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"tZLY6\",\r\n \"parentId\": \"tZLY6\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"lAXg\"\r\n },\r\n \"user\": {\r\n \"id\": \"gbE00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"73cade62-c4b1-11e7-8a33-3b957926b281\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"jDvir\",\r\n \"parentId\": \"jDvir\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"QcVvr\"\r\n },\r\n \"user\": {\r\n \"id\": \"g5D00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"7394da41-c4b1-11e7-848c-0f800b961f72\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"HPVRp\",\r\n \"parentId\": \"HPVRp\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"EM0m5\"\r\n },\r\n \"user\": {\r\n \"id\": \"dLA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.5\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:21 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.4fd29fd6-c40a-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews/73d62900-c4b1-11e7-b62d-7364f6736f57", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cy83M2Q2MjkwMC1jNGIxLTExZTctYjYyZC03MzY0ZjY3MzZmNTc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "dc8f3d87-8169-4ef0-b29e-6d60be0bac81" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/pageViews/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"73d62900-c4b1-11e7-b62d-7364f6736f57\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:20:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"yBEoi\",\r\n \"parentId\": \"yBEoi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"3p8tX\"\r\n },\r\n \"user\": {\r\n \"id\": \"hnC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "953" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:25 GMT" + ], + "Via": [ + "1.1 draft-ai-green.eee6f457-c48f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PerformanceCounters.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PerformanceCounters.json new file mode 100644 index 0000000000000..b35f1ba42337b --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.PerformanceCounters.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnM/dGltZXNwYW49UDFEJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "b4a32687-5446-4c55-ae1e-99b17f9e9ac4" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f151752-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"% Processor Time\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151753-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"% Processor Time Normalized\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time Normalized\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151754-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests/Sec\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests/Sec\",\r\n \"instanceName\": \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n \"instance\": \"_LM_W3SVC_1_ROOT_FabrikamProd\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151755-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"# of Exceps Thrown / sec\",\r\n \"category\": \".NET CLR Exceptions\",\r\n \"counter\": \"# of Exceps Thrown / sec\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151756-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Request Execution Time\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Request Execution Time\",\r\n \"instanceName\": \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n \"instance\": \"_LM_W3SVC_1_ROOT_FabrikamProd\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151757-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 192770048,\r\n \"name\": \"Private Bytes\",\r\n \"category\": \"Process\",\r\n \"counter\": \"Private Bytes\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151759-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests In Application Queue\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests In Application Queue\",\r\n \"instanceName\": \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n \"instance\": \"_LM_W3SVC_1_ROOT_FabrikamProd\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151758-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 8784.6123046875,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151750-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 1993256960,\r\n \"name\": \"Available Bytes\",\r\n \"category\": \"Memory\",\r\n \"counter\": \"Available Bytes\",\r\n \"instanceName\": \"\",\r\n \"instance\": \"\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f151751-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 5.29925298690796,\r\n \"name\": \"% Processor Time\",\r\n \"category\": \"Processor\",\r\n \"counter\": \"% Processor Time\",\r\n \"instanceName\": \"_Total\",\r\n \"instance\": \"_Total\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.9a8afd1f-c4a4-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters/5f151752-c4b2-11e7-90a6-31967fcd8bd2", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnMvNWYxNTE3NTItYzRiMi0xMWU3LTkwYTYtMzE5NjdmY2Q4YmQy", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "4942177c-b2ae-4eb7-8b66-180775dfe3ef" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/performanceCounters/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f151752-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2017-11-08T18:26:13.772Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"% Processor Time\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time\",\r\n \"instanceName\": \"w3wp\",\r\n \"instance\": \"w3wp\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"nouL737Vc+k=\",\r\n \"parentId\": \"|nouL737Vc+k=.9b74e6ce_\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"pc:2.4.1-1362\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1010" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:21 GMT" + ], + "Via": [ + "1.1 draft-ai-green.9a8afd1f-c4a4-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Requests.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Requests.json new file mode 100644 index 0000000000000..c2d8efa803964 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Requests.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzP3RpbWVzcGFuPVAxRCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "b32dffa9-19c0-48ff-aa92-4ce627851738" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175c-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"IDJZzKQkY1Q=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 2.87,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|IDJZzKQkY1Q=.9b74e86a_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"47841250-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.473Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"PI4k4P069O0=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 629.1148,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|PI4k4P069O0=.bbc126dd_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784124f-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:49.597Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"8j22pwwFlH8=\",\r\n \"parentId\": \"8j22pwwFlH8=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b6af0eaa-a601-41c9-9867-332c9794d9e9\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_b6af0eaa-a601-41c9-9867-332c9794d9e9\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 697.085,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|8j22pwwFlH8=.bbc126dc_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.158.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"2b0218f2-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:11.433Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"qxWoMeb5RJY=\",\r\n \"parentId\": \"qxWoMeb5RJY=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b51974ca-142d-436d-a622-0e53758f98fc\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_b51974ca-142d-436d-a622-0e53758f98fc\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 724.5458,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|qxWoMeb5RJY=.bbc126db_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"2b0218f1-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:01.352Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"YDc8Upvq4Qs=\",\r\n \"parentId\": \"YDc8Upvq4Qs=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"a9e1f7e6-885d-4b88-a489-009bff2511a3\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_a9e1f7e6-885d-4b88-a489-009bff2511a3\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 4.4516,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|YDc8Upvq4Qs=.bbc126da_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.168.8.0\",\r\n \"city\": \"Boydton\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"193388db-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:43.797Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"sUAXeHd0xjw=\",\r\n \"parentId\": \"sUAXeHd0xjw=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d43019a9-c81e-4c93-8545-d6320fdb54c8\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_d43019a9-c81e-4c93-8545-d6320fdb54c8\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469\",\r\n \"success\": \"False\",\r\n \"duration\": 549.2157,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"500\",\r\n \"source\": null,\r\n \"id\": \"|sUAXeHd0xjw=.bbc126d9_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2b0218f0-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:43.313Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"4PJU2whhDCA=\",\r\n \"parentId\": \"4PJU2whhDCA=\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 1636.2611,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|4PJU2whhDCA=.bbc126d8_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"193388da-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:29.907Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"/kIx4AP98xg=\",\r\n \"parentId\": \"/kIx4AP98xg=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469\",\r\n \"success\": \"False\",\r\n \"duration\": 1120.7324,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"resultCode\": \"500\",\r\n \"source\": null,\r\n \"id\": \"|/kIx4AP98xg=.bbc126d6_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"193388d9-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:14.509Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"OhKpdKQfvHg=\",\r\n \"parentId\": \"OhKpdKQfvHg=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"90641a2a-4b5a-4489-9f87-3af859d4bf84\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_90641a2a-4b5a-4489-9f87-3af859d4bf84\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 667.2327,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|OhKpdKQfvHg=.bbc126d5_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"ec360c3d-c4b1-11e7-8824-89ba633af284\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:23:14.295Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"CIvAleKSqdk=\",\r\n \"parentId\": \"CIvAleKSqdk=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"96723b01-c12f-4364-a314-6e2683edd223\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_96723b01-c12f-4364-a314-6e2683edd223\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3176,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|CIvAleKSqdk=.9b74e869_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:25 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.4fd29fd6-c40a-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests/5f15175c-c4b2-11e7-90a6-31967fcd8bd2", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzLzVmMTUxNzVjLWM0YjItMTFlNy05MGE2LTMxOTY3ZmNkOGJkMg==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "d5ac0a40-7286-481e-a088-43df3afd1da0" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/requests/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175c-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"IDJZzKQkY1Q=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.4.1-1362\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 2.87,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|IDJZzKQkY1Q=.9b74e86a_\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.35dc9025-c47e-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Traces.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Traces.json new file mode 100644 index 0000000000000..b01021d3553a4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.EventsTests/GetEventsByType.Traces.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces?timespan=P1D&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcz90aW1lc3Bhbj1QMUQmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "343af98e-6395-4de7-b24c-d3e59aecd63f" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175a-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"|IDJZzKQkY1Q=.9b74e86a_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784123e-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:50.473Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"PI4k4P069O0=\",\r\n \"parentId\": \"|PI4k4P069O0=.bbc126dd_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b7812d45-0c7c-4991-86ae-14740dab98de\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_b7812d45-0c7c-4991-86ae-14740dab98de\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4784123d-c4b2-11e7-90d1-fd4615d10b58\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:49.597Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"8j22pwwFlH8=\",\r\n \"parentId\": \"|8j22pwwFlH8=.bbc126dc_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b6af0eaa-a601-41c9-9867-332c9794d9e9\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_b6af0eaa-a601-41c9-9867-332c9794d9e9\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.158.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"2b0218fd-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:11.433Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"qxWoMeb5RJY=\",\r\n \"parentId\": \"|qxWoMeb5RJY=.bbc126db_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b51974ca-142d-436d-a622-0e53758f98fc\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_b51974ca-142d-436d-a622-0e53758f98fc\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"2b0218fc-c4b2-11e7-a140-1d8ea2c47f2e\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:25:01.352Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"YDc8Upvq4Qs=\",\r\n \"parentId\": \"|YDc8Upvq4Qs=.bbc126da_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"a9e1f7e6-885d-4b88-a489-009bff2511a3\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_a9e1f7e6-885d-4b88-a489-009bff2511a3\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.168.8.0\",\r\n \"city\": \"Boydton\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"19313edc-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:43.797Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"sUAXeHd0xjw=\",\r\n \"parentId\": \"|sUAXeHd0xjw=.bbc126d9_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d43019a9-c81e-4c93-8545-d6320fdb54c8\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_d43019a9-c81e-4c93-8545-d6320fdb54c8\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"19313edb-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:43.313Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"4PJU2whhDCA=\",\r\n \"parentId\": \"|4PJU2whhDCA=.bbc126d8_\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"19313eda-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:29.907Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"/kIx4AP98xg=\",\r\n \"parentId\": \"|/kIx4AP98xg=.bbc126d6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_a69691c3-5bf9-45bf-b16d-e16ec4b1e67c\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"65.54.78.0\",\r\n \"city\": \"Miami\",\r\n \"stateOrProvince\": \"Florida\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"19313ed9-c4b2-11e7-aef0-ed3694f0ba63\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:24:14.509Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"OhKpdKQfvHg=\",\r\n \"parentId\": \"|OhKpdKQfvHg=.bbc126d5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"90641a2a-4b5a-4489-9f87-3af859d4bf84\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_90641a2a-4b5a-4489-9f87-3af859d4bf84\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D50886F\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"ec360c3b-c4b1-11e7-8824-89ba633af284\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:23:14.295Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"CIvAleKSqdk=\",\r\n \"parentId\": \"|CIvAleKSqdk=.9b74e869_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"96723b01-c12f-4364-a314-6e2683edd223\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_96723b01-c12f-4364-a314-6e2683edd223\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:27:46 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.97ea3b51-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces/5f15175a-c4b2-11e7-90a6-31967fcd8bd2", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcy81ZjE1MTc1YS1jNGIyLTExZTctOTBhNi0zMTk2N2ZjZDhiZDI=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "9f84d1f6-d7cc-4508-831e-5d0ed79e214e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/traces/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"5f15175a-c4b2-11e7-90a6-31967fcd8bd2\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2017-11-08T18:26:28.906Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"IDJZzKQkY1Q=\",\r\n \"parentId\": \"|IDJZzKQkY1Q=.9b74e86a_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"077523f7-0909-4278-9f65-28e28015c851\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_077523f7-0909-4278-9f65-28e28015c851\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.0-27567\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:28:05 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.10de79d2-c476-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.TraceEventsTests/GetTraceEvents.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.TraceEventsTests/GetTraceEvents.json new file mode 100644 index 0000000000000..7f64d3214fe48 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Events.TraceEventsTests/GetTraceEvents.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "5dca7729-f5c3-4ba4-b93e-8ee8e1a204dd" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"18063472-faf9-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:08:51.724Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"8e1j9Lsx1vM=\",\r\n \"parentId\": \"|8e1j9Lsx1vM=.1eb67938_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"55602d74-e228-45d5-a1c7-d6a145a1406d\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_55602d74-e228-45d5-a1c7-d6a145a1406d\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"18063471-faf9-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:08:31.209Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"b8XW0KtoHaA=\",\r\n \"parentId\": \"|b8XW0KtoHaA=.1eb67937_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d91b9f44-d301-4237-b2dd-7f0be1f0b782\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_d91b9f44-d301-4237-b2dd-7f0be1f0b782\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.79.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"e5cc3bd4-faf8-11e7-b1b3-113f3aaa8c2a\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:07:34.577Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"KkooR06IDWI=\",\r\n \"parentId\": \"|KkooR06IDWI=.1eb67936_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"ad47507d-d38d-4926-a4b0-2c9071b292e2\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_ad47507d-d38d-4926-a4b0-2c9071b292e2\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"e5cc3bd3-faf8-11e7-b1b3-113f3aaa8c2a\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:07:31.536Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"Jhnwn9zmJ44=\",\r\n \"parentId\": \"|Jhnwn9zmJ44=.1eb67935_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"fa3d57d8-cfe1-487b-82b9-d9c7c50c82fb\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_fa3d57d8-cfe1-487b-82b9-d9c7c50c82fb\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.158.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"e5cc3bd2-faf8-11e7-b1b3-113f3aaa8c2a\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:07:06.984Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"BPm3lYVUkIc=\",\r\n \"parentId\": \"|BPm3lYVUkIc=.1eb67934_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"7420e402-3c80-4f61-9b1f-b30c52c91673\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_7420e402-3c80-4f61-9b1f-b30c52c91673\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.142.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"d33f1693-faf8-11e7-b1b3-113f3aaa8c2a\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:06:35.796Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"jv375p8Mzhc=\",\r\n \"parentId\": \"|jv375p8Mzhc=.1eb67933_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5870e757-261a-475e-b912-d22974352965\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_5870e757-261a-475e-b912-d22974352965\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.171.141.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"be8fd4a0-faf8-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:06:20.073Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"506vgaPD7zY=\",\r\n \"parentId\": \"|506vgaPD7zY=.1eb67932_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"6a695caf-cdab-49d5-a3de-fef94f426f27\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_6a695caf-cdab-49d5-a3de-fef94f426f27\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a440c0f8-faf8-11e7-abbf-4fd79133bd96\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:05:18.693Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"fR1pnFDCzVg=\",\r\n \"parentId\": \"|fR1pnFDCzVg=.1eb67931_\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"8e3f0e61-faf8-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:05:07.705Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"8imo4opLxRg=\",\r\n \"parentId\": \"|8imo4opLxRg=.1eb67930_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"b93eadf8-64c1-48a6-95a5-19acda861394\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_b93eadf8-64c1-48a6-95a5-19acda861394\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"8e3f0e60-faf8-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:04:40.072Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"D/inW5uiwvw=\",\r\n \"parentId\": \"|D/inW5uiwvw=.1eb6792f_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9f11ee66-75fb-4785-aa71-707a6da4cc20\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_9f11ee66-75fb-4785-aa71-707a6da4cc20\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Tue, 16 Jan 2018 20:10:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.42288ff0-fad2-11e7-998e-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces/18063472-faf9-11e7-9811-fda9bb7fcc53?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcy8xODA2MzQ3Mi1mYWY5LTExZTctOTgxMS1mZGE5YmI3ZmNjNTM/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "4bb5cc26-08fc-4d94-b93a-fd6f729b533d" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/traces/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"18063472-faf9-11e7-9811-fda9bb7fcc53\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-16T20:08:51.724Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"8e1j9Lsx1vM=\",\r\n \"parentId\": \"|8e1j9Lsx1vM=.1eb67938_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"55602d74-e228-45d5-a1c7-d6a145a1406d\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-il-ch1-azr_55602d74-e228-45d5-a1c7-d6a145a1406d\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Tue, 16 Jan 2018 20:10:07 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.19ef1d9e-faf2-11e7-998e-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics.json new file mode 100644 index 0000000000000..e43cd9c9e59ee --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&interval=PT1H&aggregation=avg", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmludGVydmFsPVBUMUgmYWdncmVnYXRpb249YXZn", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "97b8e343-ed55-4aaa-ab51-d72dbd3b05e4" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:29:16.53Z\",\r\n \"end\": \"2018-01-11T18:29:16.53Z\",\r\n \"interval\": \"PT1H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2018-01-11T06:29:16.53Z\",\r\n \"end\": \"2018-01-11T07:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 351.69\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T07:00:00Z\",\r\n \"end\": \"2018-01-11T08:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 342.35\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T08:00:00Z\",\r\n \"end\": \"2018-01-11T09:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 317.05\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T09:00:00Z\",\r\n \"end\": \"2018-01-11T10:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 357.96\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T10:00:00Z\",\r\n \"end\": \"2018-01-11T11:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 367.1\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T11:00:00Z\",\r\n \"end\": \"2018-01-11T12:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 340.15\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T12:00:00Z\",\r\n \"end\": \"2018-01-11T13:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 407.54\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T13:00:00Z\",\r\n \"end\": \"2018-01-11T14:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 445.68\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T14:00:00Z\",\r\n \"end\": \"2018-01-11T15:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 432.96\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T15:00:00Z\",\r\n \"end\": \"2018-01-11T16:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 376.07\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T16:00:00Z\",\r\n \"end\": \"2018-01-11T17:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 406.16\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T17:00:00Z\",\r\n \"end\": \"2018-01-11T18:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 402.97\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T18:00:00Z\",\r\n \"end\": \"2018-01-11T18:29:16.53Z\",\r\n \"requests/duration\": {\r\n \"avg\": 392.95\r\n }\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:29:16 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.5e47c7fd-f6b7-11e7-92a5-70b3d5800005" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics_AllAggregations.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics_AllAggregations.json new file mode 100644 index 0000000000000..52c0af60a9763 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledMetricsTests/GetIntervaledMetrics_AllAggregations.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&interval=PT1H&aggregation=avg%2Ccount%2Cmax%2Cmin%2Csum", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmludGVydmFsPVBUMUgmYWdncmVnYXRpb249YXZnJTJDY291bnQlMkNtYXglMkNtaW4lMkNzdW0=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "afde6092-8575-458a-a8db-ec0fd3125e64" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:29:17.209Z\",\r\n \"end\": \"2018-01-11T18:29:17.209Z\",\r\n \"interval\": \"PT1H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2018-01-11T06:29:17.209Z\",\r\n \"end\": \"2018-01-11T07:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 351.69,\r\n \"count\": 150,\r\n \"max\": 1359.49,\r\n \"min\": 0.78,\r\n \"sum\": 52753.45\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T07:00:00Z\",\r\n \"end\": \"2018-01-11T08:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 342.35,\r\n \"count\": 307,\r\n \"max\": 1537.83,\r\n \"min\": 0.45,\r\n \"sum\": 105101.61\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T08:00:00Z\",\r\n \"end\": \"2018-01-11T09:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 317.05,\r\n \"count\": 331,\r\n \"max\": 1534.72,\r\n \"min\": 0.44,\r\n \"sum\": 104942.13\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T09:00:00Z\",\r\n \"end\": \"2018-01-11T10:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 357.96,\r\n \"count\": 324,\r\n \"max\": 11883.94,\r\n \"min\": 0.45,\r\n \"sum\": 115977.51\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T10:00:00Z\",\r\n \"end\": \"2018-01-11T11:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 367.1,\r\n \"count\": 295,\r\n \"max\": 1541.61,\r\n \"min\": 0.79,\r\n \"sum\": 108294.73\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T11:00:00Z\",\r\n \"end\": \"2018-01-11T12:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 340.15,\r\n \"count\": 309,\r\n \"max\": 2831.45,\r\n \"min\": 0.43,\r\n \"sum\": 105105.51\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T12:00:00Z\",\r\n \"end\": \"2018-01-11T13:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 407.54,\r\n \"count\": 245,\r\n \"max\": 1301.81,\r\n \"min\": 0.82,\r\n \"sum\": 99847.42\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T13:00:00Z\",\r\n \"end\": \"2018-01-11T14:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 445.68,\r\n \"count\": 237,\r\n \"max\": 1446.1,\r\n \"min\": 1.09,\r\n \"sum\": 105625.94\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T14:00:00Z\",\r\n \"end\": \"2018-01-11T15:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 432.96,\r\n \"count\": 249,\r\n \"max\": 2197.17,\r\n \"min\": 0.45,\r\n \"sum\": 107807.64\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T15:00:00Z\",\r\n \"end\": \"2018-01-11T16:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 376.07,\r\n \"count\": 268,\r\n \"max\": 1449.46,\r\n \"min\": 0.42,\r\n \"sum\": 100786.18\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T16:00:00Z\",\r\n \"end\": \"2018-01-11T17:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 406.16,\r\n \"count\": 234,\r\n \"max\": 1344.55,\r\n \"min\": 1.01,\r\n \"sum\": 95042.43\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T17:00:00Z\",\r\n \"end\": \"2018-01-11T18:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 402.97,\r\n \"count\": 236,\r\n \"max\": 1440.31,\r\n \"min\": 0.96,\r\n \"sum\": 95100.92\r\n }\r\n },\r\n {\r\n \"start\": \"2018-01-11T18:00:00Z\",\r\n \"end\": \"2018-01-11T18:29:17.209Z\",\r\n \"requests/duration\": {\r\n \"avg\": 392.95,\r\n \"count\": 110,\r\n \"max\": 1411.66,\r\n \"min\": 0.48,\r\n \"sum\": 43224.63\r\n }\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:29:17 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.7a74b33b-f6f8-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledMultiSegmentedMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledMultiSegmentedMetrics.json new file mode 100644 index 0000000000000..19d98b145fa85 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledMultiSegmentedMetrics.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&interval=PT1H&aggregation=avg&segment=request%2Fname%2Crequest%2FresultCode", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmludGVydmFsPVBUMUgmYWdncmVnYXRpb249YXZnJnNlZ21lbnQ9cmVxdWVzdCUyRm5hbWUlMkNyZXF1ZXN0JTJGcmVzdWx0Q29kZQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "155a2368-fe33-4641-b7a9-68dbac2d3308" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:57:48.215Z\",\r\n \"end\": \"2018-01-11T18:57:48.215Z\",\r\n \"interval\": \"PT1H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2018-01-11T06:57:48.215Z\",\r\n \"end\": \"2018-01-11T07:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 782.81\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 686.43\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.61\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T07:00:00Z\",\r\n \"end\": \"2018-01-11T08:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1072.48\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 734.96\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 675.5\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 194.45\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/GetLogEntries\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 82.35\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Debug/Logs\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 74.6\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /FabrikamProd/Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 25.78\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /FabrikamProd/Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.71\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.67\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.12\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T08:00:00Z\",\r\n \"end\": \"2018-01-11T09:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Employees/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1286.05\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1083.32\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 714.75\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"HEAD Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 580.69\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.27\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.18\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.16\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.82\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.59\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T09:00:00Z\",\r\n \"end\": \"2018-01-11T10:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET ServiceTickets/GetLogEntries\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 11883.94\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1053.68\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 729.31\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 216.01\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 50.33\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /FabrikamProd/Content/style.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 18.73\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /FabrikamProd/Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 10.9\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.03\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.43\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.73\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T10:00:00Z\",\r\n \"end\": \"2018-01-11T11:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1086.53\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 776.66\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 92.39\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET robots.txt/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 29.46\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 9.64\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.65\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.57\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.5\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.06\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/images/logo_text.png\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.69\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T11:00:00Z\",\r\n \"end\": \"2018-01-11T12:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1453.29\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1051.18\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 723.65\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.45\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.18\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /FabrikamProd/Content/themes/base/jquery.ui.theme.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.99\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.13\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.56\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.44\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.27\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T12:00:00Z\",\r\n \"end\": \"2018-01-11T13:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1029.95\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 714.09\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.72\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.22\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.93\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.79\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.31\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.31\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.28\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.8\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T13:00:00Z\",\r\n \"end\": \"2018-01-11T14:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1033\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 736.41\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"HEAD Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 630.33\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.2\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.69\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.5\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.93\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.67\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.2\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T14:00:00Z\",\r\n \"end\": \"2018-01-11T15:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1048.42\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 758.44\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Employees\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 734.66\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Tickets\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 563.46\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 111.44\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 65.58\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET robots.txt/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 35.82\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.47\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.97\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.02\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T15:00:00Z\",\r\n \"end\": \"2018-01-11T16:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Delete\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1429.27\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 988.59\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 725.58\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 178.54\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.43\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.35\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.56\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.54\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.08\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.64\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T16:00:00Z\",\r\n \"end\": \"2018-01-11T17:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 911.55\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 700.56\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 10.41\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 8.09\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.64\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.1\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.91\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.36\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.27\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.24\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T17:00:00Z\",\r\n \"end\": \"2018-01-11T18:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 945.03\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 691.43\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.09\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.43\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.04\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.15\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.8\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.36\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.23\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.91\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T18:00:00Z\",\r\n \"end\": \"2018-01-11T18:57:48.215Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 962.49\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 717.77\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 267.41\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 254.34\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.6\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.59\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.86\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.38\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.29\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5.23\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:57:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.a4821de4-f6df-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledSegmentedMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledSegmentedMetrics.json new file mode 100644 index 0000000000000..ef461123ec40a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.IntervaledSegmentedMetricsTests/GetIntervaledSegmentedMetrics.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&interval=PT1H&aggregation=avg&segment=request%2FresultCode", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmludGVydmFsPVBUMUgmYWdncmVnYXRpb249YXZnJnNlZ21lbnQ9cmVxdWVzdCUyRnJlc3VsdENvZGU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "5f719197-ded6-4297-bac7-ff751e304282" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:57:48.755Z\",\r\n \"end\": \"2018-01-11T18:57:48.755Z\",\r\n \"interval\": \"PT1H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2018-01-11T06:57:48.755Z\",\r\n \"end\": \"2018-01-11T07:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 782.81\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 277.94\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T07:00:00Z\",\r\n \"end\": \"2018-01-11T08:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1040.29\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 303.21\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.29\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T08:00:00Z\",\r\n \"end\": \"2018-01-11T09:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1083.32\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 273.02\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.59\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T09:00:00Z\",\r\n \"end\": \"2018-01-11T10:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1053.68\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 319.98\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 50.33\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T10:00:00Z\",\r\n \"end\": \"2018-01-11T11:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1086.53\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 330.77\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 7.66\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T11:00:00Z\",\r\n \"end\": \"2018-01-11T12:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1051.18\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 302.42\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.27\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T12:00:00Z\",\r\n \"end\": \"2018-01-11T13:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1029.95\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 384.73\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.28\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T13:00:00Z\",\r\n \"end\": \"2018-01-11T14:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1033\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 433.48\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.2\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T14:00:00Z\",\r\n \"end\": \"2018-01-11T15:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1038.3\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 417.15\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.16\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T15:00:00Z\",\r\n \"end\": \"2018-01-11T16:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 988.59\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 351.71\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.28\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T16:00:00Z\",\r\n \"end\": \"2018-01-11T17:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 911.55\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 402.47\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.24\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T17:00:00Z\",\r\n \"end\": \"2018-01-11T18:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 945.03\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 392.15\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.36\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2018-01-11T18:00:00Z\",\r\n \"end\": \"2018-01-11T18:57:48.755Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 962.49\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 391.98\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.23\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:57:48 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.88179daa-f6b2-11e7-8632-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMetric.json new file mode 100644 index 0000000000000..caa0074f20ccb --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMetric.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalMetric\",\r\n \"parameters\": {\r\n \"metricId\": \"requests/duration\",\r\n \"timespan\": \"PT12H\",\r\n \"aggregation\": [\r\n \"avg\"\r\n ],\r\n \"interval\": \"PT3H\"\r\n }\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "224" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "f9ee6659-c904-44d6-9b60-35a2e59dd7aa" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalMetric\",\r\n \"status\": 200,\r\n \"body\": {\r\n \"value\": {\r\n \"start\": \"2017-11-08T06:29:02.341Z\",\r\n \"end\": \"2017-11-08T18:29:02.341Z\",\r\n \"interval\": \"PT3H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2017-11-08T06:29:02.341Z\",\r\n \"end\": \"2017-11-08T09:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 441.77\r\n }\r\n },\r\n {\r\n \"start\": \"2017-11-08T09:00:00Z\",\r\n \"end\": \"2017-11-08T12:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 492.49\r\n }\r\n },\r\n {\r\n \"start\": \"2017-11-08T12:00:00Z\",\r\n \"end\": \"2017-11-08T15:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 408.29\r\n }\r\n },\r\n {\r\n \"start\": \"2017-11-08T15:00:00Z\",\r\n \"end\": \"2017-11-08T18:00:00Z\",\r\n \"requests/duration\": {\r\n \"avg\": 357.93\r\n }\r\n },\r\n {\r\n \"start\": \"2017-11-08T18:00:00Z\",\r\n \"end\": \"2017-11-08T18:29:02.341Z\",\r\n \"requests/duration\": {\r\n \"avg\": 424.51\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "691" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:02 GMT" + ], + "Via": [ + "1.1 draft-ai-green.ebe944b6-c48f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMultiSegmentMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMultiSegmentMetric.json new file mode 100644 index 0000000000000..9f48ba0c03e7f --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalMultiSegmentMetric.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalMultiSegmentMetric\",\r\n \"parameters\": {\r\n \"metricId\": \"requests/duration\",\r\n \"timespan\": \"PT12H\",\r\n \"aggregation\": [\r\n \"avg\"\r\n ],\r\n \"interval\": \"PT3H\",\r\n \"segment\": [\r\n \"request/name\",\r\n \"request/success\"\r\n ]\r\n }\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "318" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "c749853d-0e5d-45ab-b6f0-6958a2bb2d96" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalMultiSegmentMetric\",\r\n \"status\": 200,\r\n \"body\": {\r\n \"value\": {\r\n \"start\": \"2017-11-08T06:29:04.559Z\",\r\n \"end\": \"2017-11-08T18:29:04.559Z\",\r\n \"interval\": \"PT3H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2017-11-08T06:29:04.559Z\",\r\n \"end\": \"2017-11-08T09:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1107.03\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 770.86\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 63.11\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.08\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.02\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/images/logo_text.png\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.32\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.94\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.65\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.07\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.81\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T09:00:00Z\",\r\n \"end\": \"2017-11-08T12:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET customers/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 14607.51\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1117.57\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 836.76\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 21.95\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.35\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.79\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET robots.txt/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.78\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.4\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.67\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.36\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T12:00:00Z\",\r\n \"end\": \"2017-11-08T15:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Reports/Employees\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 882.89\r\n },\r\n \"request/success\": \"False\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 570.29\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1091.93\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 688.24\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Tickets\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 319.43\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 208.11\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 95.51\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 94.97\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.22\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/images/logo_text.png\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.17\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.47\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T15:00:00Z\",\r\n \"end\": \"2017-11-08T18:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"POST ServiceTickets/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1207.34\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1103.85\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"HEAD Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 920.82\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 680.13\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Employees\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 575.03\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 473.15\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET customers/create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 300.55\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 247.95\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 240.11\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"POST Customers/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 212.36\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T18:00:00Z\",\r\n \"end\": \"2017-11-08T18:29:04.559Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1107.79\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 692.64\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/images/logo_text.png\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.22\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.19\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.5\r\n },\r\n \"request/success\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.48\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.39\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Content/style.css\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.25\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.18\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.13\r\n },\r\n \"request/success\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.10de79d2-c476-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalSegmentMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalSegmentMetric.json new file mode 100644 index 0000000000000..f5291efdab74a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedIntervalSegmentMetric.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalSegmentMetric\",\r\n \"parameters\": {\r\n \"metricId\": \"requests/duration\",\r\n \"timespan\": \"PT12H\",\r\n \"aggregation\": [\r\n \"avg\"\r\n ],\r\n \"interval\": \"PT3H\",\r\n \"segment\": [\r\n \"request/name\"\r\n ]\r\n }\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "285" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "92bd2fc9-90e3-47b2-8432-cc60eb4d40f4" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"AggregatedIntervalSegmentMetric\",\r\n \"status\": 200,\r\n \"body\": {\r\n \"value\": {\r\n \"start\": \"2017-11-08T06:29:04.281Z\",\r\n \"end\": \"2017-11-08T18:29:04.281Z\",\r\n \"interval\": \"PT3H\",\r\n \"segments\": [\r\n {\r\n \"start\": \"2017-11-08T06:29:04.281Z\",\r\n \"end\": \"2017-11-08T09:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1107.03\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 770.86\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 63.11\r\n },\r\n \"request/name\": \"GET Customers/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.08\r\n },\r\n \"request/name\": \"GET Reports/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.02\r\n },\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.32\r\n },\r\n \"request/name\": \"GET /Content/images/logo_text.png\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.94\r\n },\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.65\r\n },\r\n \"request/name\": \"GET Employees/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.07\r\n },\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.81\r\n },\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T09:00:00Z\",\r\n \"end\": \"2017-11-08T12:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 14607.51\r\n },\r\n \"request/name\": \"GET customers/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1117.57\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 836.76\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 21.95\r\n },\r\n \"request/name\": \"GET Employees/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.35\r\n },\r\n \"request/name\": \"GET Reports/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.79\r\n },\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.78\r\n },\r\n \"request/name\": \"GET robots.txt/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.4\r\n },\r\n \"request/name\": \"GET /Scripts/knockout-1.2.0.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.67\r\n },\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.36\r\n },\r\n \"request/name\": \"GET /Scripts/jquery-ui-1.8.11.js\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T12:00:00Z\",\r\n \"end\": \"2017-11-08T15:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1091.93\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 726.59\r\n },\r\n \"request/name\": \"GET Reports/Employees\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 688.24\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 319.43\r\n },\r\n \"request/name\": \"GET Reports/Tickets\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 208.11\r\n },\r\n \"request/name\": \"GET ServiceTickets/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 95.51\r\n },\r\n \"request/name\": \"GET Employees/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 94.97\r\n },\r\n \"request/name\": \"GET Customers/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.22\r\n },\r\n \"request/name\": \"GET Reports/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.17\r\n },\r\n \"request/name\": \"GET /Content/images/logo_text.png\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 3.47\r\n },\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T15:00:00Z\",\r\n \"end\": \"2017-11-08T18:00:00Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1207.34\r\n },\r\n \"request/name\": \"POST ServiceTickets/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1103.85\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 920.82\r\n },\r\n \"request/name\": \"HEAD Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 680.13\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 575.03\r\n },\r\n \"request/name\": \"GET Reports/Employees\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 473.15\r\n },\r\n \"request/name\": \"GET ServiceTickets/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 300.55\r\n },\r\n \"request/name\": \"GET customers/create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 247.95\r\n },\r\n \"request/name\": \"GET Employees/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 240.11\r\n },\r\n \"request/name\": \"GET ServiceTickets/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 212.36\r\n },\r\n \"request/name\": \"POST Customers/Create\"\r\n }\r\n ]\r\n },\r\n {\r\n \"start\": \"2017-11-08T18:00:00Z\",\r\n \"end\": \"2017-11-08T18:29:04.281Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1107.79\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 692.64\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.22\r\n },\r\n \"request/name\": \"GET /Content/images/logo_text.png\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 4.19\r\n },\r\n \"request/name\": \"GET Reports/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 2.5\r\n },\r\n \"request/name\": \"GET Employees/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.48\r\n },\r\n \"request/name\": \"GET /Scripts/knockout.mapping-latest.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.39\r\n },\r\n \"request/name\": \"GET /Content/themes/base/jquery.ui.all.css\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.25\r\n },\r\n \"request/name\": \"GET /Content/style.css\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.18\r\n },\r\n \"request/name\": \"GET /Scripts/jquery-1.5.1.min.js\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1.13\r\n },\r\n \"request/name\": \"GET /Scripts/jQuery.tmpl.min.js\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:04 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.64206c6c-c49f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedMetric.json new file mode 100644 index 0000000000000..c52f46e7907a7 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedMetric.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"id\": \"AggregatedMetric\",\r\n \"parameters\": {\r\n \"metricId\": \"requests/duration\",\r\n \"timespan\": \"PT12H\",\r\n \"aggregation\": [\r\n \"avg\"\r\n ]\r\n }\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "189" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "e6b96312-e2b8-4720-95d7-3e8c02ed1e5c" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"AggregatedMetric\",\r\n \"status\": 200,\r\n \"body\": {\r\n \"value\": {\r\n \"start\": \"2017-11-08T06:29:02.147Z\",\r\n \"end\": \"2017-11-08T18:29:02.147Z\",\r\n \"requests/duration\": {\r\n \"avg\": 421.66\r\n }\r\n }\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "162" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:02 GMT" + ], + "Via": [ + "1.1 draft-ai-green.92e11ccd-c49f-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedSegmentMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedSegmentMetric.json new file mode 100644 index 0000000000000..16004e1c8a357 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.MetricTests/GetMetrics.AggregatedSegmentMetric.json @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcw==", + "RequestMethod": "POST", + "RequestBody": "[\r\n {\r\n \"id\": \"AggregatedSegmentMetric\",\r\n \"parameters\": {\r\n \"metricId\": \"requests/duration\",\r\n \"timespan\": \"PT12H\",\r\n \"aggregation\": [\r\n \"avg\"\r\n ],\r\n \"segment\": [\r\n \"request/name\"\r\n ]\r\n }\r\n }\r\n]", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "250" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6b4866dd-8bc7-4888-9643-28710423998d" + ] + }, + "ResponseBody": "[\r\n {\r\n \"id\": \"AggregatedSegmentMetric\",\r\n \"status\": 200,\r\n \"body\": {\r\n \"value\": {\r\n \"start\": \"2017-11-08T06:29:03.083Z\",\r\n \"end\": \"2017-11-08T18:29:03.083Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 14607.51\r\n },\r\n \"request/name\": \"GET customers/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1207.34\r\n },\r\n \"request/name\": \"POST ServiceTickets/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1105.13\r\n },\r\n \"request/name\": \"GET Customers/Details\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 920.82\r\n },\r\n \"request/name\": \"HEAD Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 740.68\r\n },\r\n \"request/name\": \"GET Home/Index\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 676.07\r\n },\r\n \"request/name\": \"GET Reports/Employees\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 473.15\r\n },\r\n \"request/name\": \"GET ServiceTickets/Create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 300.55\r\n },\r\n \"request/name\": \"GET customers/create\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 279.15\r\n },\r\n \"request/name\": \"GET Reports/Tickets\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 240.11\r\n },\r\n \"request/name\": \"GET ServiceTickets/Details\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n]", + "ResponseHeaders": { + "Content-Length": [ + "907" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:04 GMT" + ], + "Via": [ + "1.1 draft-ai-green.97ea3b51-c474-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetMultiSegmentedMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetMultiSegmentedMetrics.json new file mode 100644 index 0000000000000..9335286298e8e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetMultiSegmentedMetrics.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&aggregation=avg&segment=request%2Fname%2Crequest%2FresultCode", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmFnZ3JlZ2F0aW9uPWF2ZyZzZWdtZW50PXJlcXVlc3QlMkZuYW1lJTJDcmVxdWVzdCUyRnJlc3VsdENvZGU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "31181874-61c5-45f8-9d0d-7e65de5f3829" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:45:15.176Z\",\r\n \"end\": \"2018-01-11T18:45:15.176Z\",\r\n \"segments\": [\r\n {\r\n \"request/name\": \"GET ServiceTickets/GetLogEntries\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 5983.14\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Delete\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1429.27\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Employees/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1286.05\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Customers/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1024.09\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Employees\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 734.66\r\n },\r\n \"request/resultCode\": \"500\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 727.26\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Create\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 675.5\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"HEAD Home/Index\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 605.51\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET Reports/Tickets\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 563.46\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n },\r\n {\r\n \"request/name\": \"GET ServiceTickets/Details\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 410.08\r\n },\r\n \"request/resultCode\": \"200\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:45:15 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.71239b29-f6e2-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics.json new file mode 100644 index 0000000000000..74c45801c6161 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&aggregation=avg&segment=request%2FresultCode", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmFnZ3JlZ2F0aW9uPWF2ZyZzZWdtZW50PXJlcXVlc3QlMkZyZXN1bHRDb2Rl", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "607f61da-8acc-4091-b0a7-f2666a083d05" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:45:15.557Z\",\r\n \"end\": \"2018-01-11T18:45:15.557Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1020.66\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 350.8\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.83\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:45:15 GMT" + ], + "Via": [ + "1.1 draft-ai-green.8d61115b-f6e2-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics_AllAggregations.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics_AllAggregations.json new file mode 100644 index 0000000000000..4ce42d53ca88a --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SegmentedMetricsTests/GetSegmentedMetrics_AllAggregations.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&aggregation=avg%2Ccount%2Cmax%2Cmin%2Csum&segment=request%2FresultCode", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmFnZ3JlZ2F0aW9uPWF2ZyUyQ2NvdW50JTJDbWF4JTJDbWluJTJDc3VtJnNlZ21lbnQ9cmVxdWVzdCUyRnJlc3VsdENvZGU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "d0633b00-2913-4b02-a09e-0acfa58b0f5d" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:45:14.851Z\",\r\n \"end\": \"2018-01-11T18:45:14.851Z\",\r\n \"segments\": [\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 1020.66,\r\n \"count\": 361,\r\n \"max\": 1781.01,\r\n \"min\": 74.6,\r\n \"sum\": 368456.89\r\n },\r\n \"request/resultCode\": \"500\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 350.8,\r\n \"count\": 2480,\r\n \"max\": 11883.94,\r\n \"min\": 0.42,\r\n \"sum\": 869990.18\r\n },\r\n \"request/resultCode\": \"200\"\r\n },\r\n {\r\n \"requests/duration\": {\r\n \"avg\": 6.83,\r\n \"count\": 433,\r\n \"max\": 1554.06,\r\n \"min\": 1.14,\r\n \"sum\": 2957.08\r\n },\r\n \"request/resultCode\": \"404\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "441" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:45:14 GMT" + ], + "Via": [ + "1.1 draft-ai-green.7388b26a-f6f8-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric.json new file mode 100644 index 0000000000000..b880ad7ede932 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&aggregation=avg", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmFnZ3JlZ2F0aW9uPWF2Zw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "003ebbfe-8f0b-428e-a096-f5431cd5ee0a" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:02:37.168Z\",\r\n \"end\": \"2018-01-11T18:02:37.168Z\",\r\n \"requests/duration\": {\r\n \"avg\": 374.22\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "114" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:02:37 GMT" + ], + "Via": [ + "1.1 draft-ai-green.1a7953a2-f6e2-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric_AllAggregations.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric_AllAggregations.json new file mode 100644 index 0000000000000..881254fc351ea --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.Metrics.SummaryMetricsTests/GetSummaryMetric_AllAggregations.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/metrics/requests%2Fduration?timespan=PT12H&aggregation=avg%2Ccount%2Cmin%2Cmax%2Csum", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvbWV0cmljcy9yZXF1ZXN0cyUyRmR1cmF0aW9uP3RpbWVzcGFuPVBUMTJIJmFnZ3JlZ2F0aW9uPWF2ZyUyQ2NvdW50JTJDbWluJTJDbWF4JTJDc3Vt", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "134eb918-334e-4af4-b2fa-527d89925dc0" + ] + }, + "ResponseBody": "{\r\n \"value\": {\r\n \"start\": \"2018-01-11T06:02:36.782Z\",\r\n \"end\": \"2018-01-11T18:02:36.782Z\",\r\n \"requests/duration\": {\r\n \"avg\": 374.22,\r\n \"count\": 3324,\r\n \"min\": 0.42,\r\n \"max\": 11883.94,\r\n \"sum\": 1243895.4\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "169" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:02:37 GMT" + ], + "Via": [ + "1.1 draft-ai-green.ef292093-f6db-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecutePostQueryWithTimespan_DemoWorkspace.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecutePostQueryWithTimespan_DemoWorkspace.json new file mode 100644 index 0000000000000..36b01f9b2c18e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecutePostQueryWithTimespan_DemoWorkspace.json @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/query?timespan=PT1H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvcXVlcnk/dGltZXNwYW49UFQxSA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"query\": \"union * | take 25\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true,include-render=true,include-statistics=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "ae346061-3f53-4195-b4fe-31f212099e69" + ] + }, + "ResponseBody": "{\r\n \"tables\": [\r\n {\r\n \"name\": \"PrimaryResult\",\r\n \"columns\": [\r\n {\r\n \"name\": \"timestamp\",\r\n \"type\": \"datetime\"\r\n },\r\n {\r\n \"name\": \"message\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"severityLevel\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"customDimensions\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"customMeasurements\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"operation_Name\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_ParentId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_SyntheticSource\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"session_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_AuthenticatedId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_AccountId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"application_Version\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Type\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Model\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_OS\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_IP\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_City\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_StateOrProvince\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_CountryOrRegion\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Browser\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"cloud_RoleName\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"cloud_RoleInstance\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"appId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"appName\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"iKey\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"sdkVersion\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemCount\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"name\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"url\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"duration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"performanceBucket\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"source\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"success\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"resultCode\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"target\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"data\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"problemId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"handledAt\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"assembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"method\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerMessage\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerAssembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerMethod\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostMessage\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostAssembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostMethod\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"details\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"size\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"value\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueCount\",\r\n \"type\": \"long\"\r\n },\r\n {\r\n \"name\": \"valueSum\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueMin\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueMax\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueStdDev\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"counter\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"instance\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"networkDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"sendDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"receiveDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"processingDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"totalDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"col_0\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"col_1\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"col_2\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"col_3\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"ingestionTime\",\r\n \"type\": \"datetime\"\r\n }\r\n ],\r\n \"rows\": [\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b527-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"Request Execution Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Request Execution Time\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b526-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"# of Exceps Thrown / sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \".NET CLR Exceptions\",\r\n \"# of Exceps Thrown / sec\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b523-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b522-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 7.73227453231812,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Processor\",\r\n \"% Processor Time\",\r\n \"_Total\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b521-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"Available Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 2581626880,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Memory\",\r\n \"Available Bytes\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b52a-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b524-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b525-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b528-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 199884800,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:05.842Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"iiR4SKTZX9U=\",\r\n \"|iiR4SKTZX9U=.ebddcdf5_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.5.0-33031\",\r\n \"c083b529-0079-11e8-b650-75b841bb347a\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 6623.7890625,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705435-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 241229824,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705431-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.371089930332958,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705436-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 3493725,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705430-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.742179860665917,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705432-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 30,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705433-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"# of Exceps Thrown / sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 23,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \".NET CLR Exceptions\",\r\n \"# of Exceps Thrown / sec\",\r\n \"??APP_CLR_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705434-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Request Execution Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 625,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Request Execution Time\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:12:06.503Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"c0705437-0079-11e8-a295-8f3f3f8b6ed7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db582580-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 240975872,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db582581-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db582582-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db58257b-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.0780615442910561,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db58257d-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db58257c-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.039030772145528,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2018-01-23T20:13:06.552Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D467E8D\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.5.0-33031\",\r\n \"db58257e-0079-11e8-a41a-c3f0d36e4cc7\",\r\n \"performanceCounter\",\r\n null,\r\n \"# of Exceps Thrown / sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \".NET CLR Exceptions\",\r\n \"# of Exceps Thrown / sec\",\r\n \"??APP_CLR_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ]\r\n ]\r\n }\r\n ],\r\n \"render\": {\r\n \"visualization\": \"table\",\r\n \"title\": \"\",\r\n \"accumulate\": false,\r\n \"isQuerySorted\": false,\r\n \"kind\": \"\",\r\n \"annotation\": \"\",\r\n \"by\": null\r\n },\r\n \"statistics\": {\r\n \"query\": {\r\n \"executionTime\": 0.0780975,\r\n \"resourceUsage\": {\r\n \"cache\": {\r\n \"memory\": {\r\n \"hits\": 331,\r\n \"misses\": 0,\r\n \"total\": 331\r\n },\r\n \"disk\": {\r\n \"hits\": 0,\r\n \"misses\": 0,\r\n \"total\": 0\r\n }\r\n },\r\n \"cpu\": {\r\n \"user\": \"00:00:00\",\r\n \"kernel\": \"00:00:00\",\r\n \"totalCpu\": \"00:00:00\"\r\n },\r\n \"memory\": {\r\n \"peakPerNode\": 268437760\r\n }\r\n },\r\n \"datasetStatistics\": [\r\n {\r\n \"tableRowCount\": 25,\r\n \"tableSize\": 11879\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Tue, 23 Jan 2018 21:11:47 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.8ada7764-0010-11e8-b7b8-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecuteSimplePostQuery_DemoWorkspace.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecuteSimplePostQuery_DemoWorkspace.json new file mode 100644 index 0000000000000..bcba8ec759922 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/CanExecuteSimplePostQuery_DemoWorkspace.json @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/query", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvcXVlcnk=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"query\": \"union * | take 25\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "36" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.1.0-preview" + ], + "prefer": [ + "response-v1=true,include-render=true,include-statistics=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "518b0cbf-2b1d-438d-bcdf-ca46519c5899" + ] + }, + "ResponseBody": "{\r\n \"tables\": [\r\n {\r\n \"name\": \"PrimaryResult\",\r\n \"columns\": [\r\n {\r\n \"name\": \"timestamp\",\r\n \"type\": \"datetime\"\r\n },\r\n {\r\n \"name\": \"message\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"severityLevel\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"customDimensions\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"customMeasurements\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"operation_Name\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_ParentId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"operation_SyntheticSource\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"session_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_Id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_AuthenticatedId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"user_AccountId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"application_Version\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Type\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Model\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_OS\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_IP\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_City\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_StateOrProvince\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_CountryOrRegion\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"client_Browser\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"cloud_RoleName\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"cloud_RoleInstance\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"appId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"appName\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"iKey\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"sdkVersion\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"itemCount\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"name\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"url\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"duration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"performanceBucket\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"id\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"source\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"success\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"resultCode\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"target\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"type\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"data\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"problemId\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"handledAt\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"assembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"method\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerMessage\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerAssembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"outerMethod\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostType\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostMessage\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostAssembly\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"innermostMethod\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"details\",\r\n \"type\": \"dynamic\"\r\n },\r\n {\r\n \"name\": \"location\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"size\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"value\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueCount\",\r\n \"type\": \"long\"\r\n },\r\n {\r\n \"name\": \"valueSum\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueMin\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueMax\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"valueStdDev\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"category\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"counter\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"instance\",\r\n \"type\": \"string\"\r\n },\r\n {\r\n \"name\": \"networkDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"sendDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"receiveDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"processingDuration\",\r\n \"type\": \"real\"\r\n },\r\n {\r\n \"name\": \"totalDuration\",\r\n \"type\": \"real\"\r\n }\r\n ],\r\n \"rows\": [\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf3-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"# of Exceps Thrown / sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 18,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \".NET CLR Exceptions\",\r\n \"# of Exceps Thrown / sec\",\r\n \"??APP_CLR_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf5-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 191389696,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf4-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"Request Execution Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 676,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Request Execution Time\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf1-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.256046785314339,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf0-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.512093570628678,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf6-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 18407088,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf2-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 2,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:20:35.768Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"bf64eaf7-c3ad-11e7-ac65-7f79d6be925f\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d83-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"# of Exceps Thrown / sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \".NET CLR Exceptions\",\r\n \"# of Exceps Thrown / sec\",\r\n \"??APP_CLR_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d80-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.104165063045521,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d86-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d84-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"Request Execution Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 624,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Request Execution Time\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d87-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d82-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"??APP_W3SVC_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d85-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 191389696,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:35.769Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"40.112.216.0\",\r\n \"San Jose\",\r\n \"California\",\r\n \"United States\",\r\n null,\r\n \"fabrikamfiberapp\",\r\n \"RD00155D50886F\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"azwapc:2.4.1-1362\",\r\n \"e3494d81-c3ad-11e7-86dd-69f857b580b2\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0.0520825315227605,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"??APP_WIN32_PROC??\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f698-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"IO Data Bytes/sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 8783.330078125,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"IO Data Bytes/sec\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f692-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f697-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"Private Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 183836672,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"Private Bytes\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f690-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"Available Bytes\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 1991233536,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Memory\",\r\n \"Available Bytes\",\r\n \"\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f696-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"Request Execution Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Request Execution Time\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f699-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests In Application Queue\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests In Application Queue\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f691-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 5.23315286636353,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Processor\",\r\n \"% Processor Time\",\r\n \"_Total\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f693-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"% Processor Time Normalized\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"Process\",\r\n \"% Processor Time Normalized\",\r\n \"w3wp\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ],\r\n [\r\n \"2017-11-07T11:21:39.857Z\",\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n \"Gh/pxg8f2tI=\",\r\n \"|Gh/pxg8f2tI=.c643f4b0_\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n \"PC\",\r\n null,\r\n null,\r\n \"52.173.91.0\",\r\n \"Des Moines\",\r\n \"Iowa\",\r\n \"United States\",\r\n null,\r\n \"\",\r\n \"AIConnect2\",\r\n \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"fabrikamprod\",\r\n \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"pc:2.4.1-1362\",\r\n \"e4d4f694-c3ad-11e7-a2d8-6d455db45900\",\r\n \"performanceCounter\",\r\n null,\r\n \"Requests/Sec\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"\",\r\n null,\r\n null,\r\n 0,\r\n null,\r\n null,\r\n null,\r\n null,\r\n null,\r\n \"ASP.NET Applications\",\r\n \"Requests/Sec\",\r\n \"_LM_W3SVC_1_ROOT_FabrikamProd\",\r\n null,\r\n null,\r\n null,\r\n null,\r\n null\r\n ]\r\n ]\r\n }\r\n ],\r\n \"render\": {\r\n \"visualization\": \"table\",\r\n \"title\": \"\",\r\n \"accumulate\": false,\r\n \"isQuerySorted\": false,\r\n \"kind\": \"\",\r\n \"annotation\": \"\",\r\n \"by\": null\r\n },\r\n \"statistics\": {\r\n \"query\": {\r\n \"executionTime\": 0.2343273,\r\n \"resourceUsage\": {\r\n \"cache\": {\r\n \"memory\": {\r\n \"hits\": 445,\r\n \"misses\": 0,\r\n \"total\": 445\r\n },\r\n \"disk\": {\r\n \"hits\": 0,\r\n \"misses\": 0,\r\n \"total\": 0\r\n }\r\n },\r\n \"cpu\": {\r\n \"user\": \"00:00:00.0312500\",\r\n \"kernel\": \"00:00:00.0156250\",\r\n \"totalCpu\": \"00:00:00.0468750\"\r\n },\r\n \"memory\": {\r\n \"peakPerNode\": 50331936\r\n }\r\n }\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 08 Nov 2017 18:29:05 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-green.b6c14a90-c4a8-11e7-b56b-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithShortWait.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithShortWait.json new file mode 100644 index 0000000000000..a4c512d9664c0 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithShortWait.json @@ -0,0 +1,76 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/query", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvcXVlcnk=", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"query\": \"union * | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp | order by operation_Id | order by timestamp\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "206" + ], + "Cache-Control": [ + "no-cache" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true,wait=1" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "b3c9e4e9-bc3d-41ea-895a-7ef83130dbab" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"message\": \"Gateway timeout\",\r\n \"code\": \"GatewayTimeout\",\r\n \"innererror\": {\r\n \"code\": \"GatewayTimeout\",\r\n \"message\": \"Connection error\"\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "131" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Thu, 11 Jan 2018 18:11:58 GMT" + ], + "Via": [ + "1.1 draft-ai-green.ef292093-f6db-11e7-81e8-70b3d5800002" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "Preference-Applied": [ + "wait=1" + ] + }, + "StatusCode": 504 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithSyntaxError.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithSyntaxError.json new file mode 100644 index 0000000000000..198699b1da496 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.QueryTests/GetsExceptionWithSyntaxError.json @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/query?timespan=PT1H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvcXVlcnk/dGltZXNwYW49UFQxSA==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"query\": \"union * | foobar\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "35" + ], + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "caf78f93-b483-45d3-b16c-0f4e38841ba0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"message\": \"The request had some invalid properties\",\r\n \"code\": \"BadArgumentError\",\r\n \"innererror\": {\r\n \"code\": \"SyntaxError\",\r\n \"message\": \"A recognition error occurred in the query.\",\r\n \"innererror\": {\r\n \"code\": \"SYN0002\",\r\n \"message\": \"Query could not be parsed at 'foobar' on line [1,10]\",\r\n \"line\": 1,\r\n \"pos\": 10,\r\n \"token\": \"foobar\"\r\n }\r\n }\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "312" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Tue, 23 Jan 2018 21:11:48 GMT" + ], + "Via": [ + "1.1 draft-ai-green.0950b5b9-0053-11e8-b7b8-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ] + }, + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.AvailabilityResults.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.AvailabilityResults.json new file mode 100644 index 0000000000000..87c11f10b83d1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.AvailabilityResults.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "38998210-a813-40a6-aa7a-9e4eb8b3a2d8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"f2e61675-fbbf-11e7-be69-c1189d9d8f04\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:52:12.691Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1430,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"0bd81b92-eae3-479a-8ac2-d9f9cd9560b9\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.142.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"d6f25328-fbbf-11e7-8d75-d9146355c7bd\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:51:21.305Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 993,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"RU : Moscow\",\r\n \"id\": \"891f8bce-9251-4d08-b011-263e00496898\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.79.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"c21d39d1-fbbf-11e7-9885-31c84b4b0017\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:49.722Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 622,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 01/17/2018 19:50:50 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : IL-Chicago\",\r\n \"id\": \"7c1ff8e1-9cb7-4988-b510-5436b11d39dc\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"c3046567-fbbf-11e7-b904-8935f3b0215c\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:36.623Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 62,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : CA-San Jose\",\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a6ec51bd-fbbf-11e7-ad2d-911d7d054dfb\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.12Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 1398,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 01/17/2018 19:50:15 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b48c2c42-fbbf-11e7-b1de-2fc0580a70ce\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.216Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1735,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"SG : Singapore\",\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9d78bb81-fbbf-11e7-84b1-c93014bbcea9\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.122Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 1055,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"BR : Sao Paulo\",\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c2f2492-fbbf-11e7-91ca-7fa43ffbb3a4\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:36.583Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Employee Create\",\r\n \"success\": \"0\",\r\n \"duration\": 499,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 404 - NotFound') occured at 01/17/2018 19:49:37 (UTC) for Uri 'http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create', step #1 with the error ''404 - NotFound' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"BR : Sao Paulo\",\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"97671554-fbbf-11e7-8eaa-01be7136926f\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.878Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 254,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : TX-San Antonio\",\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8a59415e-fbbf-11e7-8c58-5de0314797d3\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:24.82Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Employee Create\",\r\n \"success\": \"0\",\r\n \"duration\": 254,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 404 - NotFound') occured at 01/17/2018 19:49:25 (UTC) for Uri 'http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create', step #1 with the error ''404 - NotFound' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"RU : Moscow\",\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults/f2e61675-fbbf-11e7-be69-c1189d9d8f04?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHMvZjJlNjE2NzUtZmJiZi0xMWU3LWJlNjktYzExODlkOWQ4ZjA0P3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "48417b50-5a0f-4e51-b5a4-254785a8a700" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/availabilityResults/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"f2e61675-fbbf-11e7-be69-c1189d9d8f04\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:52:12.691Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1430,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"0bd81b92-eae3-479a-8ac2-d9f9cd9560b9\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.142.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.BrowserTimings.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.BrowserTimings.json new file mode 100644 index 0000000000000..ab474b082c3d1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.BrowserTimings.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzP3RpbWVzcGFuPVBUMTJIJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "029266ac-5d72-403e-a370-dfabe26684c8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:21.263Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1440,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 9,\r\n \"sendDuration\": 715,\r\n \"receiveDuration\": 5,\r\n \"processingDuration\": 708\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"AGZao\",\r\n \"parentId\": \"AGZao\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"26b8a232-fb96-11e7-8421-bd577372ca7c\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:16.895Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1400,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 18,\r\n \"sendDuration\": 723,\r\n \"receiveDuration\": 3,\r\n \"processingDuration\": 647\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"yDi63\",\r\n \"parentId\": \"yDi63\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"1bdeec72-fb96-11e7-905b-c30a00070154\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:52:58.443Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1548,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 719,\r\n \"receiveDuration\": 4,\r\n \"processingDuration\": 704\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"bh12g\",\r\n \"parentId\": \"bh12g\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"63a37633-fb72-11e7-8a71-f9d7f0a8b291\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:16.698Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Customers\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers\",\r\n \"totalDuration\": 322,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 200,\r\n \"receiveDuration\": 2,\r\n \"processingDuration\": 118\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers\",\r\n \"id\": \"AXUHE\",\r\n \"parentId\": \"AXUHE\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Customers\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"61d21197-fb72-11e7-9300-87f61212cf07\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:13.912Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Reports\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Index\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Reports\",\r\n \"totalDuration\": 2068,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 188,\r\n \"receiveDuration\": 8,\r\n \"processingDuration\": 1865\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Reports\",\r\n \"id\": \"g7Xv+\",\r\n \"parentId\": \"g7Xv+\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Index\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"600a49e3-fb72-11e7-b0d1-470e151cb3ba\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:11.077Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Employees\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Employees\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees\",\r\n \"totalDuration\": 443,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 268,\r\n \"receiveDuration\": 11,\r\n \"processingDuration\": 159\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Employees\",\r\n \"id\": \"HrV0f\",\r\n \"parentId\": \"HrV0f\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Employees\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"5cbdde03-fb72-11e7-ac92-671a876fbfd2\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:04.017Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/ServiceTickets/Details/16\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Details\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/ServiceTickets/Details/16\",\r\n \"totalDuration\": 3085,\r\n \"performanceBucket\": \"3sec-7sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 387,\r\n \"receiveDuration\": 169,\r\n \"processingDuration\": 2307\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/ServiceTickets/Details/16\",\r\n \"id\": \"cYTmY\",\r\n \"parentId\": \"cYTmY\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Details\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225dc9f-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings/29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzLzI5YmY3OTk0LWZiOTYtMTFlNy05YzcxLWE1ZmU1YTBiOWEyZT90aW1lc3Bhbj1QVDEySA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "b5fbfa80-abff-4386-b981-60b2bd78a685" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/browserTimings/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:21.263Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1440,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 9,\r\n \"sendDuration\": 715,\r\n \"receiveDuration\": 5,\r\n \"processingDuration\": 708\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"AGZao\",\r\n \"parentId\": \"AGZao\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ffa9e9-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomEvents.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomEvents.json new file mode 100644 index 0000000000000..540cbaa82a035 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomEvents.json @@ -0,0 +1,138 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "265713bb-b5b4-44f3-9dd2-fa35d84219f8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"uV0X5\",\r\n \"parentId\": \"uV0X5\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0bVu\"\r\n },\r\n \"user\": {\r\n \"id\": \"baC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c650180-fbbf-11e7-ae28-010eee82581a\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"06FQN\",\r\n \"parentId\": \"06FQN\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"kI0Nv\"\r\n },\r\n \"user\": {\r\n \"id\": \"gbE00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c71f9d2-fbbf-11e7-b322-639c75869ff2\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"mCdS+\",\r\n \"parentId\": \"mCdS+\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"sJ42g\"\r\n },\r\n \"user\": {\r\n \"id\": \"a/m00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked My Profile Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"24.16.57.0\",\r\n \"city\": \"Bothell\",\r\n \"stateOrProvince\": \"Washington\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9ca6504b-fbbf-11e7-834a-c71122776c6f\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"85K6O\",\r\n \"parentId\": \"85K6O\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"1pbz3\"\r\n },\r\n \"user\": {\r\n \"id\": \"fmJ00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Schedule Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c7d1d60-fbbf-11e7-a0e6-0f7643b3a861\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"+caJu\",\r\n \"parentId\": \"+caJu\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"+/fjE\"\r\n },\r\n \"user\": {\r\n \"id\": \"dnJ00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c6d17d0-fbbf-11e7-9778-89320908da94\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"UaJM7\",\r\n \"parentId\": \"UaJM7\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"0YAGS\"\r\n },\r\n \"user\": {\r\n \"id\": \"cyK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Delete Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.49.100.0\",\r\n \"city\": \"Nantes\",\r\n \"stateOrProvince\": \"Loire-Atlantique\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c6f3ac0-fbbf-11e7-8e26-03f2c76a96e2\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"DLi1O\",\r\n \"parentId\": \"DLi1O\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Zs61F\"\r\n },\r\n \"user\": {\r\n \"id\": \"fgK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c861e12-fbbf-11e7-b90a-b5427c90e166\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"aTJeC\",\r\n \"parentId\": \"aTJeC\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"y/q9r\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8C00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c64da70-fbbf-11e7-bfef-85315fbb4195\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"rgO33\",\r\n \"parentId\": \"rgO33\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"HFn1e\"\r\n },\r\n \"user\": {\r\n \"id\": \"gDA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c802aa0-fbbf-11e7-ab4a-1998e2c0d806\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"NlMxp\",\r\n \"parentId\": \"NlMxp\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Dx3DD\"\r\n },\r\n \"user\": {\r\n \"id\": \"bZB00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.933f77d5-fbb2-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents/9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cy85YzZmM2FiMC1mYmJmLTExZTctOGU1OC02ZjU2MGMzYWQwZjg/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "695b5a46-f594-4553-bd65-5c4801ef2242" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customEvents/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"uV0X5\",\r\n \"parentId\": \"uV0X5\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0bVu\"\r\n },\r\n \"user\": {\r\n \"id\": \"baC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "937" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.e74872b8-fb36-11e7-a5b2-70b3d5800008" + ], + "Age": [ + "175" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomMetrics.json new file mode 100644 index 0000000000000..fbac03dde2ace --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.CustomMetrics.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3M/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "d0dd9361-f185-48b3-87a9-9a7885c41964" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"a0fe38b0-fbbf-11e7-b9b9-1911379805ea\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.793Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a0ce7630-fbbf-11e7-b8e3-c5cb581b466c\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.715Z\",\r\n \"customMetric\": {\r\n \"value\": 1.5,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 1.5,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1.5,\r\n \"valueMax\": 1.5,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a092f3c0-fbbf-11e7-84d3-1b855edf3a77\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.636Z\",\r\n \"customMetric\": {\r\n \"value\": 3,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 3,\r\n \"valueCount\": 1,\r\n \"valueMin\": 3,\r\n \"valueMax\": 3,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a0445e90-fbbf-11e7-96f0-b1141b9a57fa\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.402Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"04782f03-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:28.745Z\",\r\n \"customMetric\": {\r\n \"value\": 0,\r\n \"name\": \"HeartbeatState\",\r\n \"valueSum\": 0,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0,\r\n \"valueMax\": 0,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"runtimeFramework\": \"4.7.2102.0\",\r\n \"baseSdkTargetFramework\": \"net46\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"1urDO1eaC4s=\",\r\n \"parentId\": \"|1urDO1eaC4s=.c43fd029_\",\r\n \"syntheticSource\": \"HeartbeatState\"\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"dotnet:2.5.0-44811\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"edabd970-fbbe-11e7-b092-b38e18a71446\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.916Z\",\r\n \"customMetric\": {\r\n \"value\": 1.5,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 1.5,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1.5,\r\n \"valueMax\": 1.5,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"edf90f11-fbbe-11e7-96f0-b1141b9a57fa\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.775Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"ed513650-fbbe-11e7-b27c-69e6f990b115\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.634Z\",\r\n \"customMetric\": {\r\n \"value\": 2,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 2,\r\n \"valueCount\": 1,\r\n \"valueMin\": 2,\r\n \"valueMax\": 2,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"ed75d551-fbbe-11e7-94bd-13d7ced51729\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.447Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"3b6f5700-fbbe-11e7-94bd-13d7ced51729\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:40:09.047Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b6-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics/a0fe38b0-fbbf-11e7-b9b9-1911379805ea?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3MvYTBmZTM4YjAtZmJiZi0xMWU3LWI5YjktMTkxMTM3OTgwNWVhP3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "31049a1f-2e65-4187-bf01-9af6da2ba0fb" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customMetrics/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"a0fe38b0-fbbf-11e7-b9b9-1911379805ea\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.793Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "994" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:34 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.a74bd533-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Dependencies.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Dependencies.json new file mode 100644 index 0000000000000..09200b21e77f6 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Dependencies.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "3ab61ff5-99c8-4aea-a95f-2e7829b5c75c" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f45e-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.449Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 48,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45d-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.293Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber()\",\r\n \"success\": \"False\",\r\n \"duration\": 155,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45c-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.043Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/Tables()\",\r\n \"success\": \"False\",\r\n \"duration\": 251,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/Tables\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45b-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT TOP (2) \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[FirstName] AS [FirstName], \\r\\n [Extent1].[LastName] AS [LastName], \\r\\n [Extent1].[Address_Street] AS [Address_Street], \\r\\n [Extent1].[Address_City] AS [Address_City], \\r\\n [Extent1].[Address_State] AS [Address_State], \\r\\n [Extent1].[Address_Zip] AS [Address_Zip]\\r\\n FROM [dbo].[Customers] AS [Extent1]\\r\\n WHERE [Extent1].[ID] = @p0\",\r\n \"success\": \"True\",\r\n \"duration\": 76,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_2.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45a-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.918Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[Title] AS [Title], \\r\\n [Extent1].[Description] AS [Description], \\r\\n [Extent1].[Status] AS [Status], \\r\\n [Extent1].[StatusValue] AS [StatusValue], \\r\\n [Extent1].[EscalationLevel] AS [EscalationLevel], \\r\\n [Extent1].[Opened] AS [Opened], \\r\\n [Extent1].[Closed] AS [Closed], \\r\\n [Extent1].[CustomerID] AS [CustomerID], \\r\\n [Extent1].[CreatedByID] AS [CreatedByID], \\r\\n [Extent1].[AssignedToID] AS [AssignedToID], \\r\\n [Extent2].[ID] AS [ID1], \\r\\n [Extent2].[FirstName] AS [FirstName], \\r\\n [Extent2].[LastName] AS [LastName], \\r\\n [Extent2].[Address_Street] AS [Address_Street], \\r\\n [Extent2].[Address_City] AS [Address_City], \\r\\n [Extent2].[Address_State] AS [Address_State], \\r\\n [Extent2].[Address_Zip] AS [Address_Zip], \\r\\n [Extent3].[ID] AS [ID2], \\r\\n [Extent3].[FirstName] AS [FirstName1], \\r\\n [Extent3].[LastName] AS [LastName1], \\r\\n [Extent3].[Address_Street] AS [Address_Street1], \\r\\n [Extent3].[Address_City] AS [Address_City1], \\r\\n [Extent3].[Address_State] AS [Address_State1], \\r\\n [Extent3].[Address_Zip] AS [Address_Zip1], \\r\\n [Extent3].[Identity] AS [Identity], \\r\\n [Extent3].[ServiceAreas] AS [ServiceAreas], \\r\\n [Extent4].[ID] AS [ID3], \\r\\n [Extent4].[FirstName] AS [FirstName2], \\r\\n [Extent4].[LastName] AS [LastName2], \\r\\n [Extent4].[Address_Street] AS [Address_Street2], \\r\\n [Extent4].[Address_City] AS [Address_City2], \\r\\n [Extent4].[Address_State] AS [Address_State2], \\r\\n [Extent4].[Address_Zip] AS [Address_Zip2], \\r\\n [Extent4].[Identity] AS [Identity1], \\r\\n [Extent4].[ServiceAreas] AS [ServiceAreas1]\\r\\n FROM [dbo].[ServiceTickets] AS [Extent1]\\r\\n LEFT OUTER JOIN [dbo].[Customers] AS [Extent2] ON [Extent1].[CustomerID] = [Extent2].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent3] ON [Extent1].[CreatedByID] = [Extent3].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent4] ON [Extent1].[AssignedToID] = [Extent4].[ID]\",\r\n \"success\": \"True\",\r\n \"duration\": 77,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_9.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f459-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.871Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages?numofmessages=1\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_7.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f458-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.746Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages\",\r\n \"success\": \"True\",\r\n \"duration\": 113,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_6.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f457-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.699Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber\",\r\n \"success\": \"True\",\r\n \"duration\": 53,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"204\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"PUT fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f456-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.636Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber?restype=container&comp=list&delimiter=%2F\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"GET fabrikamaccount\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f455-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.527Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\",\r\n \"Blob\": \"fabrikam.txt\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber/fabrikam.txt\",\r\n \"success\": \"True\",\r\n \"duration\": 119,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"PUT fabrikamaccount\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.933f77d5-fbb2-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies/b222f45e-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcy9iMjIyZjQ1ZS1mYmJmLTExZTctODJiZC00MTMwYTFjODAxMTk/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "fcf1f77c-cd98-429a-bcb8-f119c290c186" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/dependencies/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f45e-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.449Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 48,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Exceptions.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Exceptions.json new file mode 100644 index 0000000000000..a7c0bbed3f7de --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Exceptions.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "5866d191-8e56-44d4-994d-4acc93dad900" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f462-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.23Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"15312812\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca3-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.354Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"41824242\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"|xtXUIM2Tbr8=.c43fd182_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca2-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.025Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"55374404\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"|F/r1noB4Jx0=.c43fd181_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b43-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.196Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"16411082\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"|c42lrvdqyQk=.c43fd180_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b42-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:48:38.689Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"28077334\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"oTWvTwP9qyg=\",\r\n \"parentId\": \"|oTWvTwP9qyg=.c43fd17f_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"acb7d340-449c-4d6b-a52f-47ebcc39cc74\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_acb7d340-449c-4d6b-a52f-47ebcc39cc74\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"5e8ca391-fbbf-11e7-b9ad-d9c0457bb13c\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:47:50.266Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"id\": \"11418575\",\r\n \"outerId\": \"0\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"6lmu7umI6kc=\",\r\n \"parentId\": \"|6lmu7umI6kc=.c43fd17e_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"4f617f45-f722-42d8-8f02-56decf6cc0ce\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_4f617f45-f722-42d8-8f02-56decf6cc0ce\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.150.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"2c972e0b-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:46:38.773Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"57971789\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"dBRZotWkYAY=\",\r\n \"parentId\": \"|dBRZotWkYAY=.1eb694aa_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d827bcbd-7fae-4a2e-8bfc-f12889c36391\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_d827bcbd-7fae-4a2e-8bfc-f12889c36391\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.171.141.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2c972e0a-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:46:27.744Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"6720312\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"Lr+FZX7obok=\",\r\n \"parentId\": \"|Lr+FZX7obok=.1eb694a9_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5af37463-6a2d-4e47-8c5e-d0cc5a474682\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_5af37463-6a2d-4e47-8c5e-d0cc5a474682\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"04782f01-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:45:19.137Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"40546674\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"69sqPdret1k=\",\r\n \"parentId\": \"|69sqPdret1k=.c43fd17d_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"1c451544-6077-4d13-9c47-d023c3221187\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_1c451544-6077-4d13-9c47-d023c3221187\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"ee928ffe-fbbe-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:44:43.817Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"60988302\",\r\n \"severityLevel\": \"Critical\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"TYCUEg3ggNQ=\",\r\n \"parentId\": \"|TYCUEg3ggNQ=.1eb694a7_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"db579983-3532-4b86-96b1-8bdde7181d57\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_db579983-3532-4b86-96b1-8bdde7181d57\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.a0495a7b-fbba-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions/b222f462-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnMvYjIyMmY0NjItZmJiZi0xMWU3LTgyYmQtNDEzMGExYzgwMTE5P3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6dd0ebc9-df6f-4e19-8f33-68ba9903b9a7" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/exceptions/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f462-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.23Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"15312812\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225b58e-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PageViews.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PageViews.json new file mode 100644 index 0000000000000..4a87c96cfa2c4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PageViews.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "496e0c80-3210-4a8e-9f11-d2b3a576f867" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-88c9-53bb74d81bb1\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"5tfK8\",\r\n \"parentId\": \"5tfK8\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"DN50\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8I00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c83ad10-fbbf-11e7-8b62-35e705aefb67\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"lV2Vi\",\r\n \"parentId\": \"lV2Vi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"hAicd\"\r\n },\r\n \"user\": {\r\n \"id\": \"ehG00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c5dae80-fbbf-11e7-abcc-bfc518423d09\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"BKmCi\",\r\n \"parentId\": \"BKmCi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"tROai\"\r\n },\r\n \"user\": {\r\n \"id\": \"h4C00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Customers\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c8b0010-fbbf-11e7-95fd-bb10dd10cbe5\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"4GpHz\",\r\n \"parentId\": \"4GpHz\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"2gp0z\"\r\n },\r\n \"user\": {\r\n \"id\": \"hHR00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c73f5a1-fbbf-11e7-99ed-a5bb5322478f\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"I//NN\",\r\n \"parentId\": \"I//NN\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"boJ/r\"\r\n },\r\n \"user\": {\r\n \"id\": \"ePF00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c94c411-fbbf-11e7-a677-7f5420cc9b17\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"CgkWm\",\r\n \"parentId\": \"CgkWm\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"1WsSK\"\r\n },\r\n \"user\": {\r\n \"id\": \"dKI00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c822670-fbbf-11e7-b8f2-bb2383906b70\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"CIre\",\r\n \"parentId\": \"CIre\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"vgDQL\"\r\n },\r\n \"user\": {\r\n \"id\": \"fdD00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9cbb5ee0-fbbf-11e7-b01f-5fa1ac8aeddd\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"FjMMU\",\r\n \"parentId\": \"FjMMU\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"wG07R\"\r\n },\r\n \"user\": {\r\n \"id\": \"h3J00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c5dfca0-fbbf-11e7-bf96-8777e379f10c\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"LO53I\",\r\n \"parentId\": \"LO53I\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"W+I4o\"\r\n },\r\n \"user\": {\r\n \"id\": \"dNK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-8bf2-118dea8db50f\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"zUjUa\",\r\n \"parentId\": \"zUjUa\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Gmur+\"\r\n },\r\n \"user\": {\r\n \"id\": \"dfH00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews/9c71abb0-fbbf-11e7-88c9-53bb74d81bb1?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cy85YzcxYWJiMC1mYmJmLTExZTctODhjOS01M2JiNzRkODFiYjE/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "9628e30a-ea0c-4170-98be-a99c418889b2" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/pageViews/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-88c9-53bb74d81bb1\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"5tfK8\",\r\n \"parentId\": \"5tfK8\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"DN50\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8I00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "945" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.a74bfc44-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PerformanceCounters.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PerformanceCounters.json new file mode 100644 index 0000000000000..3bdc8cb88f615 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.PerformanceCounters.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "86f44ce0-adef-474a-8732-dc35b5b6a416" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"4f416d88-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d84-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests/Sec\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests/Sec\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d85-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"# of Exceps Thrown / sec\",\r\n \"category\": \".NET CLR Exceptions\",\r\n \"counter\": \"# of Exceps Thrown / sec\",\r\n \"instanceName\": \"??APP_CLR_PROC??\",\r\n \"instance\": \"??APP_CLR_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d89-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests In Application Queue\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests In Application Queue\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d87-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 221388800,\r\n \"name\": \"Private Bytes\",\r\n \"category\": \"Process\",\r\n \"counter\": \"Private Bytes\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d86-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 1238,\r\n \"name\": \"Request Execution Time\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Request Execution Time\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d83-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0.559547846797091,\r\n \"name\": \"% Processor Time Normalized\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time Normalized\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d82-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 1.11909569359418,\r\n \"name\": \"% Processor Time\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"0a880b4a-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:52:57.738Z\",\r\n \"performanceCounter\": {\r\n \"value\": 81466,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"0a880b49-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:52:57.738Z\",\r\n \"performanceCounter\": {\r\n \"value\": 219705344,\r\n \"name\": \"Private Bytes\",\r\n \"category\": \"Process\",\r\n \"counter\": \"Private Bytes\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:57:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225676d-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters/4f416d88-fbc0-11e7-9b15-272dd9e533f1?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnMvNGY0MTZkODgtZmJjMC0xMWU3LTliMTUtMjcyZGQ5ZTUzM2YxP3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "7e886ed2-451f-4d17-858e-a09261ea580b" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/performanceCounters/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"4f416d88-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:57:10 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Requests.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Requests.json new file mode 100644 index 0000000000000..17a033f819478 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Requests.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzP3RpbWVzcGFuPVBUMTJIJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "20ce7401-a4e9-415d-9c19-d0e48006ef3e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f461-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"tVSdkaXhdHc=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 3.0414,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|tVSdkaXhdHc=.1eb694b6_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f460-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"rhP6IjNSN5o=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469\",\r\n \"success\": \"False\",\r\n \"duration\": 1260.9052,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"resultCode\": \"500\",\r\n \"source\": null,\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45f-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.355Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"QlGmdhUwlAo=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 669.2065,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9e8cc381-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.704Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"L0NYaQesLCQ=\",\r\n \"parentId\": \"L0NYaQesLCQ=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 2.9867,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|L0NYaQesLCQ=.1eb694b3_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca5-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.353Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"xtXUIM2Tbr8=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3533,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|xtXUIM2Tbr8=.c43fd182_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b85-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:26.151Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"jSTTc8xGcsg=\",\r\n \"parentId\": \"jSTTc8xGcsg=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 12.0485,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|jSTTc8xGcsg=.1eb694b2_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca4-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.023Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"F/r1noB4Jx0=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3855,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|F/r1noB4Jx0=.c43fd181_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b84-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:12.706Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"/4+vZEyg+3g=\",\r\n \"parentId\": \"/4+vZEyg+3g=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"094b5c0d-a8c4-4059-ae00-f41f3816c94a\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_094b5c0d-a8c4-4059-ae00-f41f3816c94a\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 667.682,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|/4+vZEyg+3g=.1eb694b1_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b83-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:04.97Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"GMtGO1NBT7I=\",\r\n \"parentId\": \"GMtGO1NBT7I=\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 664.708,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|GMtGO1NBT7I=.1eb694b0_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b45-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.195Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"c42lrvdqyQk=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3542,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|c42lrvdqyQk=.c43fd180_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests/b222f461-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzL2IyMjJmNDYxLWZiYmYtMTFlNy04MmJkLTQxMzBhMWM4MDExOT90aW1lc3Bhbj1QVDEySA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "36ad667e-57fd-4727-9392-b1fb0924cb03" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/requests/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f461-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"tVSdkaXhdHc=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 3.0414,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|tVSdkaXhdHc=.1eb694b6_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.e2724348-fbb9-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Traces.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Traces.json new file mode 100644 index 0000000000000..80efb135cca8e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEvents.Traces.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6841a0df-0f05-4c94-818a-bc8532473d6e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f452-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"|tVSdkaXhdHc=.1eb694b6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f451-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f450-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.355Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9e8cc380-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.704Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"L0NYaQesLCQ=\",\r\n \"parentId\": \"|L0NYaQesLCQ=.1eb694b3_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca1-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.353Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"|xtXUIM2Tbr8=.c43fd182_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da83-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:26.151Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"jSTTc8xGcsg=\",\r\n \"parentId\": \"|jSTTc8xGcsg=.1eb694b2_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca0-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.024Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"|F/r1noB4Jx0=.c43fd181_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da82-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:12.706Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"/4+vZEyg+3g=\",\r\n \"parentId\": \"|/4+vZEyg+3g=.1eb694b1_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"094b5c0d-a8c4-4059-ae00-f41f3816c94a\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_094b5c0d-a8c4-4059-ae00-f41f3816c94a\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da81-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:04.97Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"GMtGO1NBT7I=\",\r\n \"parentId\": \"|GMtGO1NBT7I=.1eb694b0_\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b41-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.195Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"|c42lrvdqyQk=.c43fd180_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:29 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.e74872b8-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces/b222f452-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcy9iMjIyZjQ1Mi1mYmJmLTExZTctODJiZC00MTMwYTFjODAxMTk/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6cfd57d1-70c4-46c9-9fe6-dadeafc5fbeb" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/traces/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f452-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"|tVSdkaXhdHc=.1eb694b6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.a74bfc44-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.AvailabilityResults.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.AvailabilityResults.json new file mode 100644 index 0000000000000..87c11f10b83d1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.AvailabilityResults.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "38998210-a813-40a6-aa7a-9e4eb8b3a2d8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"f2e61675-fbbf-11e7-be69-c1189d9d8f04\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:52:12.691Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1430,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"0bd81b92-eae3-479a-8ac2-d9f9cd9560b9\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.142.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"d6f25328-fbbf-11e7-8d75-d9146355c7bd\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:51:21.305Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 993,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"RU : Moscow\",\r\n \"id\": \"891f8bce-9251-4d08-b011-263e00496898\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.79.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"c21d39d1-fbbf-11e7-9885-31c84b4b0017\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:49.722Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 622,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 01/17/2018 19:50:50 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : IL-Chicago\",\r\n \"id\": \"7c1ff8e1-9cb7-4988-b510-5436b11d39dc\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.237.156.0\",\r\n \"city\": \"Chicago\",\r\n \"stateOrProvince\": \"Illinois\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"c3046567-fbbf-11e7-b904-8935f3b0215c\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:36.623Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 62,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : CA-San Jose\",\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a6ec51bd-fbbf-11e7-ad2d-911d7d054dfb\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.12Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Zip Code Test\",\r\n \"success\": \"0\",\r\n \"duration\": 1398,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 500 - InternalServerError') occured at 01/17/2018 19:50:15 (UTC) for Uri 'http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469', step #1 with the error ''500 - InternalServerError' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b48c2c42-fbbf-11e7-b1de-2fc0580a70ce\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.216Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1735,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"SG : Singapore\",\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9d78bb81-fbbf-11e7-84b1-c93014bbcea9\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.122Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 1055,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"BR : Sao Paulo\",\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c2f2492-fbbf-11e7-91ca-7fa43ffbb3a4\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:36.583Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Employee Create\",\r\n \"success\": \"0\",\r\n \"duration\": 499,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 404 - NotFound') occured at 01/17/2018 19:49:37 (UTC) for Uri 'http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create', step #1 with the error ''404 - NotFound' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"BR : Sao Paulo\",\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"97671554-fbbf-11e7-8eaa-01be7136926f\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.878Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Web App Reports\",\r\n \"success\": \"1\",\r\n \"duration\": 254,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : TX-San Antonio\",\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8a59415e-fbbf-11e7-8c58-5de0314797d3\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:24.82Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"true\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Employee Create\",\r\n \"success\": \"0\",\r\n \"duration\": 254,\r\n \"performanceBucket\": null,\r\n \"message\": \"1 primary requests, 0 dependant requests and 0 conditional rules failed%G%S%M%Http Error (subtype 'Unexpected 404 - NotFound') occured at 01/17/2018 19:49:25 (UTC) for Uri 'http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create', step #1 with the error ''404 - NotFound' does not match the expected status '200 - OK'.'.\",\r\n \"location\": \"RU : Moscow\",\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/availabilityResults/f2e61675-fbbf-11e7-be69-c1189d9d8f04?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2F2YWlsYWJpbGl0eVJlc3VsdHMvZjJlNjE2NzUtZmJiZi0xMWU3LWJlNjktYzExODlkOWQ4ZjA0P3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "48417b50-5a0f-4e51-b5a4-254785a8a700" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/availabilityResults/$metadata#availabilityResults\",\r\n \"value\": [\r\n {\r\n \"id\": \"f2e61675-fbbf-11e7-be69-c1189d9d8f04\",\r\n \"type\": \"availabilityResult\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:52:12.691Z\",\r\n \"customDimensions\": {\r\n \"FullTestResultAvailable\": \"false\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"availabilityResult\": {\r\n \"name\": \"Fabrikam Homepage\",\r\n \"success\": \"1\",\r\n \"duration\": 1430,\r\n \"performanceBucket\": null,\r\n \"message\": \"Passed\",\r\n \"location\": \"US : FL-Miami\",\r\n \"id\": \"0bd81b92-eae3-479a-8ac2-d9f9cd9560b9\",\r\n \"size\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.142.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.BrowserTimings.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.BrowserTimings.json new file mode 100644 index 0000000000000..ab474b082c3d1 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.BrowserTimings.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzP3RpbWVzcGFuPVBUMTJIJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "029266ac-5d72-403e-a370-dfabe26684c8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:21.263Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1440,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 9,\r\n \"sendDuration\": 715,\r\n \"receiveDuration\": 5,\r\n \"processingDuration\": 708\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"AGZao\",\r\n \"parentId\": \"AGZao\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"26b8a232-fb96-11e7-8421-bd577372ca7c\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:16.895Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1400,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 18,\r\n \"sendDuration\": 723,\r\n \"receiveDuration\": 3,\r\n \"processingDuration\": 647\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"yDi63\",\r\n \"parentId\": \"yDi63\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"1bdeec72-fb96-11e7-905b-c30a00070154\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:52:58.443Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1548,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 719,\r\n \"receiveDuration\": 4,\r\n \"processingDuration\": 704\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"bh12g\",\r\n \"parentId\": \"bh12g\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"63a37633-fb72-11e7-8a71-f9d7f0a8b291\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:16.698Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Customers\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Customers\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Customers\",\r\n \"totalDuration\": 322,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 200,\r\n \"receiveDuration\": 2,\r\n \"processingDuration\": 118\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Customers\",\r\n \"id\": \"AXUHE\",\r\n \"parentId\": \"AXUHE\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Customers\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"61d21197-fb72-11e7-9300-87f61212cf07\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:13.912Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Reports\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Index\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Reports\",\r\n \"totalDuration\": 2068,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 188,\r\n \"receiveDuration\": 8,\r\n \"processingDuration\": 1865\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Reports\",\r\n \"id\": \"g7Xv+\",\r\n \"parentId\": \"g7Xv+\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Index\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"600a49e3-fb72-11e7-b0d1-470e151cb3ba\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:11.077Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/Employees\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Employees\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees\",\r\n \"totalDuration\": 443,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 268,\r\n \"receiveDuration\": 11,\r\n \"processingDuration\": 159\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/Employees\",\r\n \"id\": \"HrV0f\",\r\n \"parentId\": \"HrV0f\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Employees\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n },\r\n {\r\n \"id\": \"5cbdde03-fb72-11e7-ac92-671a876fbfd2\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T10:37:04.017Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/FabrikamProd/ServiceTickets/Details/16\",\r\n \"urlHost\": \"aiconnect2.cloudapp.net\",\r\n \"name\": \"Details\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/ServiceTickets/Details/16\",\r\n \"totalDuration\": 3085,\r\n \"performanceBucket\": \"3sec-7sec\",\r\n \"networkDuration\": 0,\r\n \"sendDuration\": 387,\r\n \"receiveDuration\": 169,\r\n \"processingDuration\": 2307\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/FabrikamProd/ServiceTickets/Details/16\",\r\n \"id\": \"cYTmY\",\r\n \"parentId\": \"cYTmY\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"iZ3oK\"\r\n },\r\n \"user\": {\r\n \"id\": \"gHCKn\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Details\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 15.15063\",\r\n \"ip\": \"192.118.68.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"Israel\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225dc9f-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/browserTimings/29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2Jyb3dzZXJUaW1pbmdzLzI5YmY3OTk0LWZiOTYtMTFlNy05YzcxLWE1ZmU1YTBiOWEyZT90aW1lc3Bhbj1QVDEySA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "b5fbfa80-abff-4386-b981-60b2bd78a685" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/browserTimings/$metadata#browserTimings\",\r\n \"value\": [\r\n {\r\n \"id\": \"29bf7994-fb96-11e7-9c71-a5fe5a0b9a2e\",\r\n \"type\": \"browserTiming\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T14:53:21.263Z\",\r\n \"browserTiming\": {\r\n \"urlPath\": \"/\",\r\n \"urlHost\": \"fabrikamfiberapp.azurewebsites.net\",\r\n \"name\": \"Home Page\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"totalDuration\": 1440,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"networkDuration\": 9,\r\n \"sendDuration\": 715,\r\n \"receiveDuration\": 5,\r\n \"processingDuration\": 708\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"AGZao\",\r\n \"parentId\": \"AGZao\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0Rtz\"\r\n },\r\n \"user\": {\r\n \"id\": \"aRnk\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.14\"\r\n },\r\n \"clientPerformance\": {\r\n \"name\": \"Home Page\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": \"Edge 16.16299\",\r\n \"ip\": \"104.190.165.0\",\r\n \"city\": \"Frisco\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ffa9e9-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomEvents.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomEvents.json new file mode 100644 index 0000000000000..540cbaa82a035 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomEvents.json @@ -0,0 +1,138 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "265713bb-b5b4-44f3-9dd2-fa35d84219f8" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"uV0X5\",\r\n \"parentId\": \"uV0X5\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0bVu\"\r\n },\r\n \"user\": {\r\n \"id\": \"baC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c650180-fbbf-11e7-ae28-010eee82581a\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"06FQN\",\r\n \"parentId\": \"06FQN\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"kI0Nv\"\r\n },\r\n \"user\": {\r\n \"id\": \"gbE00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c71f9d2-fbbf-11e7-b322-639c75869ff2\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"mCdS+\",\r\n \"parentId\": \"mCdS+\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"sJ42g\"\r\n },\r\n \"user\": {\r\n \"id\": \"a/m00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked My Profile Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"24.16.57.0\",\r\n \"city\": \"Bothell\",\r\n \"stateOrProvince\": \"Washington\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9ca6504b-fbbf-11e7-834a-c71122776c6f\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"85K6O\",\r\n \"parentId\": \"85K6O\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"1pbz3\"\r\n },\r\n \"user\": {\r\n \"id\": \"fmJ00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Schedule Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c7d1d60-fbbf-11e7-a0e6-0f7643b3a861\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"+caJu\",\r\n \"parentId\": \"+caJu\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"+/fjE\"\r\n },\r\n \"user\": {\r\n \"id\": \"dnJ00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c6d17d0-fbbf-11e7-9778-89320908da94\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"UaJM7\",\r\n \"parentId\": \"UaJM7\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"0YAGS\"\r\n },\r\n \"user\": {\r\n \"id\": \"cyK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Delete Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.49.100.0\",\r\n \"city\": \"Nantes\",\r\n \"stateOrProvince\": \"Loire-Atlantique\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c6f3ac0-fbbf-11e7-8e26-03f2c76a96e2\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"DLi1O\",\r\n \"parentId\": \"DLi1O\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Zs61F\"\r\n },\r\n \"user\": {\r\n \"id\": \"fgK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c861e12-fbbf-11e7-b90a-b5427c90e166\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"aTJeC\",\r\n \"parentId\": \"aTJeC\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"y/q9r\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8C00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Assign Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c64da70-fbbf-11e7-bfef-85315fbb4195\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"rgO33\",\r\n \"parentId\": \"rgO33\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"HFn1e\"\r\n },\r\n \"user\": {\r\n \"id\": \"gDA00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"38.123.68.0\",\r\n \"city\": \"Zapopan\",\r\n \"stateOrProvince\": \"Jalisco\",\r\n \"countryOrRegion\": \"Mexico\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c802aa0-fbbf-11e7-ab4a-1998e2c0d806\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"NlMxp\",\r\n \"parentId\": \"NlMxp\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Dx3DD\"\r\n },\r\n \"user\": {\r\n \"id\": \"bZB00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 7\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.933f77d5-fbb2-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customEvents/9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbUV2ZW50cy85YzZmM2FiMC1mYmJmLTExZTctOGU1OC02ZjU2MGMzYWQwZjg/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "695b5a46-f594-4553-bd65-5c4801ef2242" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customEvents/$metadata#customEvents\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c6f3ab0-fbbf-11e7-8e58-6f560c3ad0f8\",\r\n \"type\": \"customEvent\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"uV0X5\",\r\n \"parentId\": \"uV0X5\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"P0bVu\"\r\n },\r\n \"user\": {\r\n \"id\": \"baC00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"customEvent\": {\r\n \"name\": \"Clicked Create New Ticket Button\"\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"5.56.177.0\",\r\n \"city\": \"Rottweil\",\r\n \"stateOrProvince\": \"Baden-Württemberg Region\",\r\n \"countryOrRegion\": \"Germany\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "937" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.e74872b8-fb36-11e7-a5b2-70b3d5800008" + ], + "Age": [ + "175" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomMetrics.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomMetrics.json new file mode 100644 index 0000000000000..fbac03dde2ace --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.CustomMetrics.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3M/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "d0dd9361-f185-48b3-87a9-9a7885c41964" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"a0fe38b0-fbbf-11e7-b9b9-1911379805ea\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.793Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a0ce7630-fbbf-11e7-b8e3-c5cb581b466c\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.715Z\",\r\n \"customMetric\": {\r\n \"value\": 1.5,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 1.5,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1.5,\r\n \"valueMax\": 1.5,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a092f3c0-fbbf-11e7-84d3-1b855edf3a77\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.636Z\",\r\n \"customMetric\": {\r\n \"value\": 3,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 3,\r\n \"valueCount\": 1,\r\n \"valueMin\": 3,\r\n \"valueMax\": 3,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"a0445e90-fbbf-11e7-96f0-b1141b9a57fa\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.402Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"04782f03-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:28.745Z\",\r\n \"customMetric\": {\r\n \"value\": 0,\r\n \"name\": \"HeartbeatState\",\r\n \"valueSum\": 0,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0,\r\n \"valueMax\": 0,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"runtimeFramework\": \"4.7.2102.0\",\r\n \"baseSdkTargetFramework\": \"net46\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": \"1urDO1eaC4s=\",\r\n \"parentId\": \"|1urDO1eaC4s=.c43fd029_\",\r\n \"syntheticSource\": \"HeartbeatState\"\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"dotnet:2.5.0-44811\"\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.91.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"edabd970-fbbe-11e7-b092-b38e18a71446\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.916Z\",\r\n \"customMetric\": {\r\n \"value\": 1.5,\r\n \"name\": \"AzureBlobSuccessRate\",\r\n \"valueSum\": 1.5,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1.5,\r\n \"valueMax\": 1.5,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"edf90f11-fbbe-11e7-96f0-b1141b9a57fa\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.775Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"ed513650-fbbe-11e7-b27c-69e6f990b115\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.634Z\",\r\n \"customMetric\": {\r\n \"value\": 2,\r\n \"name\": \"CritFailureRate2\",\r\n \"valueSum\": 2,\r\n \"valueCount\": 1,\r\n \"valueMin\": 2,\r\n \"valueMax\": 2,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"ed75d551-fbbe-11e7-94bd-13d7ced51729\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:45:08.447Z\",\r\n \"customMetric\": {\r\n \"value\": 0.25,\r\n \"name\": \"AzureDependencyFailureRate5Min\",\r\n \"valueSum\": 0.25,\r\n \"valueCount\": 1,\r\n \"valueMin\": 0.25,\r\n \"valueMax\": 0.25,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"3b6f5700-fbbe-11e7-94bd-13d7ced51729\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:40:09.047Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:34 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b6-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/customMetrics/a0fe38b0-fbbf-11e7-b9b9-1911379805ea?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2N1c3RvbU1ldHJpY3MvYTBmZTM4YjAtZmJiZi0xMWU3LWI5YjktMTkxMTM3OTgwNWVhP3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "31049a1f-2e65-4187-bf01-9af6da2ba0fb" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/customMetrics/$metadata#customMetrics\",\r\n \"value\": [\r\n {\r\n \"id\": \"a0fe38b0-fbbf-11e7-b9b9-1911379805ea\",\r\n \"type\": \"customMetric\",\r\n \"timestamp\": \"2018-01-17T19:50:08.793Z\",\r\n \"customMetric\": {\r\n \"value\": 1,\r\n \"name\": \"CriticalOperationFailureRate\",\r\n \"valueSum\": 1,\r\n \"valueCount\": 1,\r\n \"valueMin\": 1,\r\n \"valueMax\": 1,\r\n \"valueStdDev\": 0\r\n },\r\n \"customDimensions\": {\r\n \"SA_OriginAppId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\"\r\n },\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": null\r\n },\r\n \"application\": {\r\n \"version\": null\r\n },\r\n \"client\": {\r\n \"model\": \"Other\",\r\n \"os\": \"Other\",\r\n \"type\": \"PC\",\r\n \"browser\": \"Other\",\r\n \"ip\": \"104.210.144.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "994" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:34 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.a74bd533-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Dependencies.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Dependencies.json new file mode 100644 index 0000000000000..09200b21e77f6 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Dependencies.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "3ab61ff5-99c8-4aea-a95f-2e7829b5c75c" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f45e-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.449Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 48,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45d-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.293Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber()\",\r\n \"success\": \"False\",\r\n \"duration\": 155,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45c-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.043Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/Tables()\",\r\n \"success\": \"False\",\r\n \"duration\": 251,\r\n \"performanceBucket\": \"250ms-500ms\",\r\n \"resultCode\": \"409\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"POST fabrikamaccount/Tables\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45b-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT TOP (2) \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[FirstName] AS [FirstName], \\r\\n [Extent1].[LastName] AS [LastName], \\r\\n [Extent1].[Address_Street] AS [Address_Street], \\r\\n [Extent1].[Address_City] AS [Address_City], \\r\\n [Extent1].[Address_State] AS [Address_State], \\r\\n [Extent1].[Address_Zip] AS [Address_Zip]\\r\\n FROM [dbo].[Customers] AS [Extent1]\\r\\n WHERE [Extent1].[ID] = @p0\",\r\n \"success\": \"True\",\r\n \"duration\": 76,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_2.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45a-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.918Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"data\": \"SELECT \\r\\n [Extent1].[ID] AS [ID], \\r\\n [Extent1].[Title] AS [Title], \\r\\n [Extent1].[Description] AS [Description], \\r\\n [Extent1].[Status] AS [Status], \\r\\n [Extent1].[StatusValue] AS [StatusValue], \\r\\n [Extent1].[EscalationLevel] AS [EscalationLevel], \\r\\n [Extent1].[Opened] AS [Opened], \\r\\n [Extent1].[Closed] AS [Closed], \\r\\n [Extent1].[CustomerID] AS [CustomerID], \\r\\n [Extent1].[CreatedByID] AS [CreatedByID], \\r\\n [Extent1].[AssignedToID] AS [AssignedToID], \\r\\n [Extent2].[ID] AS [ID1], \\r\\n [Extent2].[FirstName] AS [FirstName], \\r\\n [Extent2].[LastName] AS [LastName], \\r\\n [Extent2].[Address_Street] AS [Address_Street], \\r\\n [Extent2].[Address_City] AS [Address_City], \\r\\n [Extent2].[Address_State] AS [Address_State], \\r\\n [Extent2].[Address_Zip] AS [Address_Zip], \\r\\n [Extent3].[ID] AS [ID2], \\r\\n [Extent3].[FirstName] AS [FirstName1], \\r\\n [Extent3].[LastName] AS [LastName1], \\r\\n [Extent3].[Address_Street] AS [Address_Street1], \\r\\n [Extent3].[Address_City] AS [Address_City1], \\r\\n [Extent3].[Address_State] AS [Address_State1], \\r\\n [Extent3].[Address_Zip] AS [Address_Zip1], \\r\\n [Extent3].[Identity] AS [Identity], \\r\\n [Extent3].[ServiceAreas] AS [ServiceAreas], \\r\\n [Extent4].[ID] AS [ID3], \\r\\n [Extent4].[FirstName] AS [FirstName2], \\r\\n [Extent4].[LastName] AS [LastName2], \\r\\n [Extent4].[Address_Street] AS [Address_Street2], \\r\\n [Extent4].[Address_City] AS [Address_City2], \\r\\n [Extent4].[Address_State] AS [Address_State2], \\r\\n [Extent4].[Address_Zip] AS [Address_Zip2], \\r\\n [Extent4].[Identity] AS [Identity1], \\r\\n [Extent4].[ServiceAreas] AS [ServiceAreas1]\\r\\n FROM [dbo].[ServiceTickets] AS [Extent1]\\r\\n LEFT OUTER JOIN [dbo].[Customers] AS [Extent2] ON [Extent1].[CustomerID] = [Extent2].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent3] ON [Extent1].[CreatedByID] = [Extent3].[ID]\\r\\n LEFT OUTER JOIN [dbo].[Employees] AS [Extent4] ON [Extent1].[AssignedToID] = [Extent4].[ID]\",\r\n \"success\": \"True\",\r\n \"duration\": 77,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"\",\r\n \"type\": \"SQL\",\r\n \"name\": \"SQL: tcp:fabrikamxyz.database.windows.net,1433 | FabrikamlSQL\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_9.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f459-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.871Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages?numofmessages=1\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_7.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f458-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.746Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber/messages\",\r\n \"success\": \"True\",\r\n \"duration\": 113,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"POST fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_6.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f457-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.699Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.queue.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.queue.core.windows.net:443/fabrikamfiber\",\r\n \"success\": \"True\",\r\n \"duration\": 53,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"204\",\r\n \"type\": \"Azure queue\",\r\n \"name\": \"PUT fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f456-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.636Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber?restype=container&comp=list&delimiter=%2F\",\r\n \"success\": \"True\",\r\n \"duration\": 50,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"GET fabrikamaccount\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_4.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f455-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.527Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\",\r\n \"Container\": \"fabrikamfiber\",\r\n \"Blob\": \"fabrikam.txt\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.blob.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.blob.core.windows.net:443/fabrikamfiber/fabrikam.txt\",\r\n \"success\": \"True\",\r\n \"duration\": 119,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"201\",\r\n \"type\": \"Azure blob\",\r\n \"name\": \"PUT fabrikamaccount\",\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_3.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.933f77d5-fbb2-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/dependencies/b222f45e-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2RlcGVuZGVuY2llcy9iMjIyZjQ1ZS1mYmJmLTExZTctODJiZC00MTMwYTFjODAxMTk/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "fcf1f77c-cd98-429a-bcb8-f119c290c186" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/dependencies/$metadata#dependencies\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f45e-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"dependency\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:13.449Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Dependencies', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"rddp:2.5.0-33031\"\r\n },\r\n \"dependency\": {\r\n \"target\": \"fabrikamaccount.table.core.windows.net\",\r\n \"data\": \"https://fabrikamaccount.table.core.windows.net:443/fabrikamfiber(PartitionKey='Taylor',RowKey='Dan')\",\r\n \"success\": \"True\",\r\n \"duration\": 48,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"type\": \"Azure table\",\r\n \"name\": \"GET fabrikamaccount/fabrikamfiber\",\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_5.\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96ff34b5-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Exceptions.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Exceptions.json new file mode 100644 index 0000000000000..a7c0bbed3f7de --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Exceptions.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "5866d191-8e56-44d4-994d-4acc93dad900" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f462-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.23Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"15312812\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca3-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.354Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"41824242\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"|xtXUIM2Tbr8=.c43fd182_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca2-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.025Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"55374404\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"|F/r1noB4Jx0=.c43fd181_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b43-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.196Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"16411082\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"|c42lrvdqyQk=.c43fd180_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b42-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:48:38.689Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"28077334\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"oTWvTwP9qyg=\",\r\n \"parentId\": \"|oTWvTwP9qyg=.c43fd17f_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"acb7d340-449c-4d6b-a52f-47ebcc39cc74\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-fr-pra-edge_acb7d340-449c-4d6b-a52f-47ebcc39cc74\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"94.245.72.0\",\r\n \"city\": \"Paris\",\r\n \"stateOrProvince\": \"Paris\",\r\n \"countryOrRegion\": \"France\"\r\n }\r\n },\r\n {\r\n \"id\": \"5e8ca391-fbbf-11e7-b9ad-d9c0457bb13c\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:47:50.266Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"id\": \"11418575\",\r\n \"outerId\": \"0\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"6lmu7umI6kc=\",\r\n \"parentId\": \"|6lmu7umI6kc=.c43fd17e_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"4f617f45-f722-42d8-8f02-56decf6cc0ce\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-au-syd-edge_4f617f45-f722-42d8-8f02-56decf6cc0ce\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.75.150.0\",\r\n \"city\": \"Sydney\",\r\n \"stateOrProvince\": \"New South Wales\",\r\n \"countryOrRegion\": \"Australia\"\r\n }\r\n },\r\n {\r\n \"id\": \"2c972e0b-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:46:38.773Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"57971789\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"dBRZotWkYAY=\",\r\n \"parentId\": \"|dBRZotWkYAY=.1eb694aa_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"d827bcbd-7fae-4a2e-8bfc-f12889c36391\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_d827bcbd-7fae-4a2e-8bfc-f12889c36391\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.171.141.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"2c972e0a-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:46:27.744Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"6720312\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"Lr+FZX7obok=\",\r\n \"parentId\": \"|Lr+FZX7obok=.1eb694a9_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5af37463-6a2d-4e47-8c5e-d0cc5a474682\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_5af37463-6a2d-4e47-8c5e-d0cc5a474682\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"04782f01-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:45:19.137Z\",\r\n \"exception\": {\r\n \"severityLevel\": null,\r\n \"problemId\": \"System.Web.HttpException at System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"handledAt\": null,\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"message\": null,\r\n \"type\": \"System.Web.HttpException\",\r\n \"outerType\": \"System.Web.HttpException\",\r\n \"outerMethod\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"outerAssembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"outerMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostType\": \"System.Web.HttpException\",\r\n \"innermostMessage\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.HandleUnknownAction\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 3,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 4,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 5,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 10,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"A public action method 'Create' was not found on controller 'FabrikamFiber.Web.Controllers.EmployeesController'.\",\r\n \"type\": \"System.Web.HttpException\",\r\n \"id\": \"40546674\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"69sqPdret1k=\",\r\n \"parentId\": \"|69sqPdret1k=.c43fd17d_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"1c451544-6077-4d13-9c47-d023c3221187\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_1c451544-6077-4d13-9c47-d023c3221187\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"ee928ffe-fbbe-11e7-8b10-571b7b648c56\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:44:43.817Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"60988302\",\r\n \"severityLevel\": \"Critical\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"TYCUEg3ggNQ=\",\r\n \"parentId\": \"|TYCUEg3ggNQ=.1eb694a7_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"db579983-3532-4b86-96b1-8bdde7181d57\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-va-ash-azr_db579983-3532-4b86-96b1-8bdde7181d57\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.85.187.0\",\r\n \"city\": \"Washington\",\r\n \"stateOrProvince\": \"Virginia\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.a0495a7b-fbba-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/exceptions/b222f462-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL2V4Y2VwdGlvbnMvYjIyMmY0NjItZmJiZi0xMWU3LTgyYmQtNDEzMGExYzgwMTE5P3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6dd0ebc9-df6f-4e19-8f33-68ba9903b9a7" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/exceptions/$metadata#exceptions\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f462-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"exception\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:14.23Z\",\r\n \"exception\": {\r\n \"severityLevel\": 4,\r\n \"problemId\": \"System.FormatException at FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"handledAt\": null,\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"message\": null,\r\n \"type\": \"System.FormatException\",\r\n \"outerType\": \"System.FormatException\",\r\n \"outerMethod\": \"System.Number.StringToNumber\",\r\n \"outerAssembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"outerMessage\": \"Input string was not in a correct format.\",\r\n \"innermostType\": \"System.FormatException\",\r\n \"innermostMessage\": \"Input string was not in a correct format.\",\r\n \"innermostMethod\": null,\r\n \"innermostAssembly\": null,\r\n \"details\": [\r\n {\r\n \"severityLevel\": \"Critical\",\r\n \"parsedStack\": [\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.StringToNumber\",\r\n \"level\": 0,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Number.ParseInt32\",\r\n \"level\": 1,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\",\r\n \"method\": \"System.Int32.Parse\",\r\n \"level\": 2,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Data.AddressValidator.ValidZipCode\",\r\n \"level\": 3,\r\n \"line\": 13,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Data\\\\AddressValidator.cs\"\r\n },\r\n {\r\n \"assembly\": \"FabrikamFiber.DAL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"FabrikamFiber.DAL.Models.Address.FullAddress\",\r\n \"level\": 4,\r\n \"line\": 25,\r\n \"fileName\": \"C:\\\\Users\\\\rahulba\\\\Source\\\\Repos\\\\FabrikamFiber\\\\FabrikamFiber.CallCenter\\\\FabrikamFiber.DAL\\\\Models\\\\Address.cs\"\r\n },\r\n {\r\n \"assembly\": \"App_Web_mvkutmdy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\",\r\n \"method\": \"ASP._Page_Views_Customers_Details_cshtml.Execute\",\r\n \"level\": 5,\r\n \"line\": 19,\r\n \"fileName\": \"d:\\\\home\\\\site\\\\wwwroot\\\\Views\\\\Customers\\\\Details.cshtml\"\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 6,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.WebViewPage.ExecutePageHierarchy\",\r\n \"level\": 7,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.RunPage\",\r\n \"level\": 8,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.StartPage.ExecutePageHierarchy\",\r\n \"level\": 9,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.WebPages.WebPageBase.ExecutePageHierarchy\",\r\n \"level\": 10,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.RazorView.RenderView\",\r\n \"level\": 11,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.BuildManagerCompiledView.Render\",\r\n \"level\": 12,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ViewResultBase.ExecuteResult\",\r\n \"level\": 13,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResult\",\r\n \"level\": 14,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a.b__17\",\r\n \"level\": 15,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter\",\r\n \"level\": 16,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass1a+<>c__DisplayClass1c.b__19\",\r\n \"level\": 17,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters\",\r\n \"level\": 18,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25+<>c__DisplayClass2a.b__20\",\r\n \"level\": 19,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker+<>c__DisplayClass25.b__22\",\r\n \"level\": 20,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 21,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction\",\r\n \"level\": 22,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller+<>c__DisplayClass1d.b__18\",\r\n \"level\": 23,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 24,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 25,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecuteCore\",\r\n \"level\": 26,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 27,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 28,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.EndExecute\",\r\n \"level\": 29,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute\",\r\n \"level\": 30,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler+<>c__DisplayClass8.b__3\",\r\n \"level\": 31,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+<>c__DisplayClass4.b__3\",\r\n \"level\": 32,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResult`1.End\",\r\n \"level\": 33,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.EndProcessRequest\",\r\n \"level\": 34,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web.Mvc, Version=4.0.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35\",\r\n \"method\": \"System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest\",\r\n \"level\": 35,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute\",\r\n \"level\": 36,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStepImpl\",\r\n \"level\": 37,\r\n \"line\": 0\r\n },\r\n {\r\n \"assembly\": \"System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\r\n \"method\": \"System.Web.HttpApplication.ExecuteStep\",\r\n \"level\": 38,\r\n \"line\": 0\r\n }\r\n ],\r\n \"outerId\": \"0\",\r\n \"message\": \"Input string was not in a correct format.\",\r\n \"type\": \"System.FormatException\",\r\n \"id\": \"15312812\"\r\n }\r\n ]\r\n },\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:33 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225b58e-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PageViews.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PageViews.json new file mode 100644 index 0000000000000..4a87c96cfa2c4 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PageViews.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "496e0c80-3210-4a8e-9f11-d2b3a576f867" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-88c9-53bb74d81bb1\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"5tfK8\",\r\n \"parentId\": \"5tfK8\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"DN50\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8I00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c83ad10-fbbf-11e7-8b62-35e705aefb67\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"lV2Vi\",\r\n \"parentId\": \"lV2Vi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"hAicd\"\r\n },\r\n \"user\": {\r\n \"id\": \"ehG00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c5dae80-fbbf-11e7-abcc-bfc518423d09\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"BKmCi\",\r\n \"parentId\": \"BKmCi\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"tROai\"\r\n },\r\n \"user\": {\r\n \"id\": \"h4C00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Customers\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Ubuntu\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c8b0010-fbbf-11e7-95fd-bb10dd10cbe5\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"4GpHz\",\r\n \"parentId\": \"4GpHz\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"2gp0z\"\r\n },\r\n \"user\": {\r\n \"id\": \"hHR00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c73f5a1-fbbf-11e7-99ed-a5bb5322478f\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"I//NN\",\r\n \"parentId\": \"I//NN\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"boJ/r\"\r\n },\r\n \"user\": {\r\n \"id\": \"ePF00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.73.100.0\",\r\n \"city\": \"Yokohama\",\r\n \"stateOrProvince\": \"Kanagawa\",\r\n \"countryOrRegion\": \"Japan\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c94c411-fbbf-11e7-a677-7f5420cc9b17\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"CgkWm\",\r\n \"parentId\": \"CgkWm\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"1WsSK\"\r\n },\r\n \"user\": {\r\n \"id\": \"dKI00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c822670-fbbf-11e7-b8f2-bb2383906b70\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"CIre\",\r\n \"parentId\": \"CIre\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"vgDQL\"\r\n },\r\n \"user\": {\r\n \"id\": \"fdD00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"1.25.100.0\",\r\n \"city\": \"Baotou\",\r\n \"stateOrProvince\": \"Inner Mongolia Autonomous Region\",\r\n \"countryOrRegion\": \"China\"\r\n }\r\n },\r\n {\r\n \"id\": \"9cbb5ee0-fbbf-11e7-b01f-5fa1ac8aeddd\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"FjMMU\",\r\n \"parentId\": \"FjMMU\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"wG07R\"\r\n },\r\n \"user\": {\r\n \"id\": \"h3J00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.2.6\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"2.125.100.0\",\r\n \"city\": \"Peterborough\",\r\n \"stateOrProvince\": \"Peterborough\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c5dfca0-fbbf-11e7-bf96-8777e379f10c\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"LO53I\",\r\n \"parentId\": \"LO53I\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"W+I4o\"\r\n },\r\n \"user\": {\r\n \"id\": \"dNK00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"macOS 10.12\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-8bf2-118dea8db50f\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"zUjUa\",\r\n \"parentId\": \"zUjUa\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"Gmur+\"\r\n },\r\n \"user\": {\r\n \"id\": \"dfH00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 10\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/pageViews/9c71abb0-fbbf-11e7-88c9-53bb74d81bb1?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BhZ2VWaWV3cy85YzcxYWJiMC1mYmJmLTExZTctODhjOS01M2JiNzRkODFiYjE/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "9628e30a-ea0c-4170-98be-a99c418889b2" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/pageViews/$metadata#pageViews\",\r\n \"value\": [\r\n {\r\n \"id\": \"9c71abb0-fbbf-11e7-88c9-53bb74d81bb1\",\r\n \"type\": \"pageView\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:00.04Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"/\",\r\n \"id\": \"5tfK8\",\r\n \"parentId\": \"5tfK8\",\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": \"DN50\"\r\n },\r\n \"user\": {\r\n \"id\": \"d8I00\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": null,\r\n \"roleInstance\": null\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"javascript:1.0.8\"\r\n },\r\n \"pageView\": {\r\n \"name\": \"Home Page\",\r\n \"url\": null,\r\n \"duration\": null,\r\n \"performanceBucket\": null\r\n },\r\n \"application\": {\r\n \"version\": \"1.3.2\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": \"Windows 8.1\",\r\n \"type\": \"Browser\",\r\n \"browser\": null,\r\n \"ip\": \"131.0.40.0\",\r\n \"city\": \"Sao Goncalo\",\r\n \"stateOrProvince\": \"Rio de Janeiro\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "945" + ], + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Via": [ + "1.1 draft-ai-blue.a74bfc44-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PerformanceCounters.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PerformanceCounters.json new file mode 100644 index 0000000000000..3bdc8cb88f615 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.PerformanceCounters.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnM/dGltZXNwYW49UFQxMkgmJHRvcD0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "86f44ce0-adef-474a-8732-dc35b5b6a416" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"4f416d88-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d84-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests/Sec\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests/Sec\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d85-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"# of Exceps Thrown / sec\",\r\n \"category\": \".NET CLR Exceptions\",\r\n \"counter\": \"# of Exceps Thrown / sec\",\r\n \"instanceName\": \"??APP_CLR_PROC??\",\r\n \"instance\": \"??APP_CLR_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d89-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"Requests In Application Queue\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Requests In Application Queue\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d87-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 221388800,\r\n \"name\": \"Private Bytes\",\r\n \"category\": \"Process\",\r\n \"counter\": \"Private Bytes\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d86-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 1238,\r\n \"name\": \"Request Execution Time\",\r\n \"category\": \"ASP.NET Applications\",\r\n \"counter\": \"Request Execution Time\",\r\n \"instanceName\": \"??APP_W3SVC_PROC??\",\r\n \"instance\": \"??APP_W3SVC_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d83-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0.559547846797091,\r\n \"name\": \"% Processor Time Normalized\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time Normalized\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"4f416d82-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 1.11909569359418,\r\n \"name\": \"% Processor Time\",\r\n \"category\": \"Process\",\r\n \"counter\": \"% Processor Time\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"0a880b4a-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:52:57.738Z\",\r\n \"performanceCounter\": {\r\n \"value\": 81466,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"0a880b49-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:52:57.738Z\",\r\n \"performanceCounter\": {\r\n \"value\": 219705344,\r\n \"name\": \"Private Bytes\",\r\n \"category\": \"Process\",\r\n \"counter\": \"Private Bytes\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:57:09 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.4225676d-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/performanceCounters/4f416d88-fbc0-11e7-9b15-272dd9e533f1?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3BlcmZvcm1hbmNlQ291bnRlcnMvNGY0MTZkODgtZmJjMC0xMWU3LTliMTUtMjcyZGQ5ZTUzM2YxP3RpbWVzcGFuPVBUMTJI", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "7e886ed2-451f-4d17-858e-a09261ea580b" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/performanceCounters/$metadata#performanceCounters\",\r\n \"value\": [\r\n {\r\n \"id\": \"4f416d88-fbc0-11e7-9b15-272dd9e533f1\",\r\n \"type\": \"performanceCounter\",\r\n \"timestamp\": \"2018-01-17T19:54:57.809Z\",\r\n \"performanceCounter\": {\r\n \"value\": 0,\r\n \"name\": \"IO Data Bytes/sec\",\r\n \"category\": \"Process\",\r\n \"counter\": \"IO Data Bytes/sec\",\r\n \"instanceName\": \"??APP_WIN32_PROC??\",\r\n \"instance\": \"??APP_WIN32_PROC??\"\r\n },\r\n \"customDimensions\": null,\r\n \"operation\": {\r\n \"name\": null,\r\n \"id\": null,\r\n \"parentId\": null,\r\n \"syntheticSource\": null\r\n },\r\n \"session\": {\r\n \"id\": null\r\n },\r\n \"user\": {\r\n \"id\": null,\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"azwapc:2.5.0-33031\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.112.216.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:57:10 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Requests.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Requests.json new file mode 100644 index 0000000000000..17a033f819478 --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Requests.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzP3RpbWVzcGFuPVBUMTJIJiR0b3A9MTA=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "20ce7401-a4e9-415d-9c19-d0e48006ef3e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f461-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"tVSdkaXhdHc=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 3.0414,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|tVSdkaXhdHc=.1eb694b6_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f460-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"rhP6IjNSN5o=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Customers/Details\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Customers/Details/8469\",\r\n \"success\": \"False\",\r\n \"duration\": 1260.9052,\r\n \"performanceBucket\": \"1sec-3sec\",\r\n \"resultCode\": \"500\",\r\n \"source\": null,\r\n \"id\": \"|rhP6IjNSN5o=.1eb694b5_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f45f-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.355Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"QlGmdhUwlAo=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 669.2065,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|QlGmdhUwlAo=.1eb694b4_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9e8cc381-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.704Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"L0NYaQesLCQ=\",\r\n \"parentId\": \"L0NYaQesLCQ=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 2.9867,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|L0NYaQesLCQ=.1eb694b3_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca5-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.353Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"xtXUIM2Tbr8=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3533,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|xtXUIM2Tbr8=.c43fd182_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b85-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:26.151Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"jSTTc8xGcsg=\",\r\n \"parentId\": \"jSTTc8xGcsg=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 12.0485,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|jSTTc8xGcsg=.1eb694b2_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca4-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.023Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"F/r1noB4Jx0=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3855,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|F/r1noB4Jx0=.c43fd181_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b84-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:12.706Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"/4+vZEyg+3g=\",\r\n \"parentId\": \"/4+vZEyg+3g=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"094b5c0d-a8c4-4059-ae00-f41f3816c94a\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_094b5c0d-a8c4-4059-ae00-f41f3816c94a\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 667.682,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|/4+vZEyg+3g=.1eb694b1_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b184b83-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:04.97Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Home/Index\",\r\n \"id\": \"GMtGO1NBT7I=\",\r\n \"parentId\": \"GMtGO1NBT7I=\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Home/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/\",\r\n \"success\": \"True\",\r\n \"duration\": 664.708,\r\n \"performanceBucket\": \"500ms-1sec\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|GMtGO1NBT7I=.1eb694b0_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b45-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.195Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"c42lrvdqyQk=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Employees/Create\",\r\n \"url\": \"http://aiconnect2.cloudapp.net/FabrikamProd/Employees/Create\",\r\n \"success\": \"False\",\r\n \"duration\": 1.3542,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"404\",\r\n \"source\": null,\r\n \"id\": \"|c42lrvdqyQk=.c43fd180_\"\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:31 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.96febf84-fb37-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/requests/b222f461-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3JlcXVlc3RzL2IyMjJmNDYxLWZiYmYtMTFlNy04MmJkLTQxMzBhMWM4MDExOT90aW1lc3Bhbj1QVDEySA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "36ad667e-57fd-4727-9392-b1fb0924cb03" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/requests/$metadata#requests\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f461-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"request\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": {\r\n \"_MS.ProcessedByMetricExtractors\": \"(Name:'Requests', Ver:'1.0')\"\r\n },\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"tVSdkaXhdHc=\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"web:2.5.0-33031\"\r\n },\r\n \"request\": {\r\n \"name\": \"GET Reports/Index\",\r\n \"url\": \"http://fabrikamfiberapp.azurewebsites.net/Reports\",\r\n \"success\": \"True\",\r\n \"duration\": 3.0414,\r\n \"performanceBucket\": \"<250ms\",\r\n \"resultCode\": \"200\",\r\n \"source\": null,\r\n \"id\": \"|tVSdkaXhdHc=.1eb694b6_\"\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:32 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.e2724348-fbb9-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Traces.json b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Traces.json new file mode 100644 index 0000000000000..80efb135cca8e --- /dev/null +++ b/src/SDKs/ApplicationInsights/DataPlane/Data.ApplicationInsights.Tests/SessionRecords/Data.ApplicationInsights.Tests.ScenarioTests.Events.EventsExtensionTests/GetEventsAsync.Traces.json @@ -0,0 +1,136 @@ +{ + "Entries": [ + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces?timespan=PT12H&$top=10", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcz90aW1lc3Bhbj1QVDEySCYkdG9wPTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6841a0df-0f05-4c94-818a-bc8532473d6e" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f452-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"|tVSdkaXhdHc=.1eb694b6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f451-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:12.965Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Customers/Details/8469\",\r\n \"id\": \"rhP6IjNSN5o=\",\r\n \"parentId\": \"|rhP6IjNSN5o=.1eb694b5_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"65a9a6b5-b639-4892-a0c2-73fce037782b\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_65a9a6b5-b639-4892-a0c2-73fce037782b\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"b222f450-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:10.355Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"QlGmdhUwlAo=\",\r\n \"parentId\": \"|QlGmdhUwlAo=.1eb694b4_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"9a78c107-1d2e-4781-b1c8-e60b0daa5822\"\r\n },\r\n \"user\": {\r\n \"id\": \"apac-sg-sin-azr_9a78c107-1d2e-4781-b1c8-e60b0daa5822\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.187.30.0\",\r\n \"city\": \"Singapore\",\r\n \"stateOrProvince\": \"Central Singapore Community Development Council\",\r\n \"countryOrRegion\": \"Singapore\"\r\n }\r\n },\r\n {\r\n \"id\": \"9e8cc380-fbbf-11e7-8b10-571b7b648c56\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.704Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"L0NYaQesLCQ=\",\r\n \"parentId\": \"|L0NYaQesLCQ=.1eb694b3_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"aed414e6-ff7b-496b-ae34-a546ccda0ddb\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_aed414e6-ff7b-496b-ae34-a546ccda0ddb\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.176.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca1-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:37.353Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"xtXUIM2Tbr8=\",\r\n \"parentId\": \"|xtXUIM2Tbr8=.c43fd182_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"5560760a-6f1a-475f-b5c0-7a0f26d7e523\"\r\n },\r\n \"user\": {\r\n \"id\": \"latam-br-gru-edge_5560760a-6f1a-475f-b5c0-7a0f26d7e523\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"191.232.172.0\",\r\n \"city\": \"Campinas\",\r\n \"stateOrProvince\": \"Sao Paulo\",\r\n \"countryOrRegion\": \"Brazil\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da83-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:26.151Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"jSTTc8xGcsg=\",\r\n \"parentId\": \"|jSTTc8xGcsg=.1eb694b2_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"53104c4e-1e73-4d46-af0c-f4cad6946df0\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-tx-sn1-azr_53104c4e-1e73-4d46-af0c-f4cad6946df0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"13.84.176.0\",\r\n \"city\": \"San Antonio\",\r\n \"stateOrProvince\": \"Texas\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"9706cca0-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:25.024Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"F/r1noB4Jx0=\",\r\n \"parentId\": \"|F/r1noB4Jx0=.c43fd181_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"352442e6-441d-46d6-8d7c-59c81bf69da0\"\r\n },\r\n \"user\": {\r\n \"id\": \"emea-ru-msa-edge_352442e6-441d-46d6-8d7c-59c81bf69da0\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"51.140.105.0\",\r\n \"city\": \"London\",\r\n \"stateOrProvince\": \"England\",\r\n \"countryOrRegion\": \"United Kingdom\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da82-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:12.706Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"/4+vZEyg+3g=\",\r\n \"parentId\": \"|/4+vZEyg+3g=.1eb694b1_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"094b5c0d-a8c4-4059-ae00-f41f3816c94a\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_094b5c0d-a8c4-4059-ae00-f41f3816c94a\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.215.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n },\r\n {\r\n \"id\": \"8b15da81-fbbf-11e7-9433-571540014357\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:04.97Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /\",\r\n \"id\": \"GMtGO1NBT7I=\",\r\n \"parentId\": \"|GMtGO1NBT7I=.1eb694b0_\",\r\n \"syntheticSource\": \"Bot\"\r\n },\r\n \"session\": {\r\n \"id\": \"\"\r\n },\r\n \"user\": {\r\n \"id\": \"\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"0.0.0.0\",\r\n \"city\": \"\",\r\n \"stateOrProvince\": \"\",\r\n \"countryOrRegion\": \"\"\r\n }\r\n },\r\n {\r\n \"id\": \"78222b41-fbbf-11e7-a8db-f760734b2971\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:49:02.195Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /FabrikamProd/Employees/Create\",\r\n \"id\": \"c42lrvdqyQk=\",\r\n \"parentId\": \"|c42lrvdqyQk=.c43fd180_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"777c2db9-0890-4c79-ba3f-975fc0d05c71\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-fl-mia-edge_777c2db9-0890-4c79-ba3f-975fc0d05c71\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"\",\r\n \"roleInstance\": \"AIConnect2\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"52.173.244.0\",\r\n \"city\": \"Des Moines\",\r\n \"stateOrProvince\": \"Iowa\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:29 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.e74872b8-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/v1/apps/DEMO_APP/events/traces/b222f452-fbbf-11e7-82bd-4130a1c80119?timespan=PT12H", + "EncodedRequestUri": "L3YxL2FwcHMvREVNT19BUFAvZXZlbnRzL3RyYWNlcy9iMjIyZjQ1Mi1mYmJmLTExZTctODJiZC00MTMwYTFjODAxMTk/dGltZXNwYW49UFQxMkg=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-api-key": [ + "DEMO_KEY" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.ApplicationInsights.ApplicationInsightsDataClient/0.9.0.0" + ], + "prefer": [ + "response-v1=true" + ], + "x-ms-app": [ + "csharpsdk" + ], + "x-ms-client-request-id": [ + "6cfd57d1-70c4-46c9-9fe6-dadeafc5fbeb" + ] + }, + "ResponseBody": "{\r\n \"@odata.context\": \"https://api.applicationinsights.io/v1/apps/DEMO_APP/events/traces/$metadata#traces\",\r\n \"value\": [\r\n {\r\n \"id\": \"b222f452-fbbf-11e7-82bd-4130a1c80119\",\r\n \"type\": \"trace\",\r\n \"count\": 1,\r\n \"timestamp\": \"2018-01-17T19:50:37.018Z\",\r\n \"customDimensions\": null,\r\n \"customMeasurements\": null,\r\n \"operation\": {\r\n \"name\": \"GET /Reports\",\r\n \"id\": \"tVSdkaXhdHc=\",\r\n \"parentId\": \"|tVSdkaXhdHc=.1eb694b6_\",\r\n \"syntheticSource\": \"Application Insights Availability Monitoring\"\r\n },\r\n \"session\": {\r\n \"id\": \"c33fb890-54bb-4a74-b87a-57b8393e6f80\"\r\n },\r\n \"user\": {\r\n \"id\": \"us-ca-sjc-azr_c33fb890-54bb-4a74-b87a-57b8393e6f80\",\r\n \"accountId\": null,\r\n \"authenticatedId\": null\r\n },\r\n \"cloud\": {\r\n \"roleName\": \"fabrikamfiberapp\",\r\n \"roleInstance\": \"RD00155D467E8D\"\r\n },\r\n \"ai\": {\r\n \"iKey\": \"5a2e4e0c-e136-4a15-9824-90ba859b0a89\",\r\n \"appName\": \"fabrikamprod\",\r\n \"appId\": \"cf58dcfd-0683-487c-bc84-048789bca8e5\",\r\n \"sdkVersion\": \"sd:2.4.1-442\"\r\n },\r\n \"trace\": {\r\n \"message\": \"New Request Received\",\r\n \"severityLevel\": 0\r\n },\r\n \"application\": {\r\n \"version\": \"AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3\"\r\n },\r\n \"client\": {\r\n \"model\": null,\r\n \"os\": null,\r\n \"type\": \"PC\",\r\n \"browser\": null,\r\n \"ip\": \"40.83.189.0\",\r\n \"city\": \"San Jose\",\r\n \"stateOrProvince\": \"California\",\r\n \"countryOrRegion\": \"United States\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8; ieee754compatible=false; odata.metadata=none; odata.streaming=false" + ], + "Connection": [ + "keep-alive" + ], + "Date": [ + "Wed, 17 Jan 2018 19:54:30 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Via": [ + "1.1 draft-ai-blue.a74bfc44-fb36-11e7-a5b2-70b3d5800008" + ], + "Server": [ + "nginx" + ], + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Access-Control-Allow-Origin": [ + "*" + ], + "Access-Control-Expose-Headers": [ + "Retry-After,Age,WWW-Authenticate" + ], + "OData-Version": [ + "4.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": {} +} \ No newline at end of file diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ApplicationInsights.Tests.csproj b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ApplicationInsights.Tests.csproj similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ApplicationInsights.Tests.csproj rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ApplicationInsights.Tests.csproj diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/Helpers/RecordedDelegatingHandler.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/Helpers/RecordedDelegatingHandler.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/Helpers/RecordedDelegatingHandler.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/Helpers/RecordedDelegatingHandler.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/Properties/AssemblyInfo.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/Properties/AssemblyInfo.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/Properties/AssemblyInfo.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/Properties/AssemblyInfo.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/APIKeysTests.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/ComponentsTests.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/ComponentsTests.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/ComponentsTests.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/ComponentsTests.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/ContinuousExportsTests.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/ContinuousExportsTests.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/ContinuousExportsTests.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/ContinuousExportsTests.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/FeatureAndPricingTests.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/FeatureAndPricingTests.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/FeatureAndPricingTests.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/FeatureAndPricingTests.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/TestBase.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/TestBase.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/TestBase.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/WebtestsTests.cs b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/WebtestsTests.cs similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/ScenarioTests/WebtestsTests.cs rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/ScenarioTests/WebtestsTests.cs diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.APIKeysTests/CreateGetListUpdateDeleteAPIKeys.json diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ComponentsTests/CreateGetListUpdateDeleteComponents.json b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ComponentsTests/CreateGetListUpdateDeleteComponents.json similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ComponentsTests/CreateGetListUpdateDeleteComponents.json rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ComponentsTests/CreateGetListUpdateDeleteComponents.json diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ContinuousExportsTests/CreateGetListUpdateDeleteExports.json b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ContinuousExportsTests/CreateGetListUpdateDeleteExports.json similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ContinuousExportsTests/CreateGetListUpdateDeleteExports.json rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.ContinuousExportsTests/CreateGetListUpdateDeleteExports.json diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.FeatureAndPricingTests/GetAndUpdateFeatures.json b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.FeatureAndPricingTests/GetAndUpdateFeatures.json similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.FeatureAndPricingTests/GetAndUpdateFeatures.json rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.FeatureAndPricingTests/GetAndUpdateFeatures.json diff --git a/src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.WebtestsTest/CreateGetListUpdateDeleteWebtests.json b/src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.WebtestsTest/CreateGetListUpdateDeleteWebtests.json similarity index 100% rename from src/SDKs/ApplicationInsights/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.WebtestsTest/CreateGetListUpdateDeleteWebtests.json rename to src/SDKs/ApplicationInsights/Management/ApplicationInsights.Tests/SessionRecords/ApplicationInsights.Tests.Scenarios.WebtestsTest/CreateGetListUpdateDeleteWebtests.json diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/APIKeysOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/APIKeysOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/APIKeysOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ApplicationInsightsManagementClient.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentCurrentBillingFeaturesOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentQuotaStatusOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ComponentsOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ExportConfigurationsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/ExportConfigurationsOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IAPIKeysOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IApplicationInsightsManagementClient.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentCurrentBillingFeaturesOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentQuotaStatusOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IComponentsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IComponentsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IExportConfigurationsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IWebTestsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/IWebTestsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/IWebTestsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/APIKeyRequest.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponent.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentAPIKey.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentBillingFeatures.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentDataVolumeCap.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportConfiguration.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentExportRequest.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationInsightsComponentQuotaStatus.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationType.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ApplicationType.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ApplicationType.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ErrorResponse.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/ErrorResponseException.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/FlowType.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/FlowType.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/FlowType.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Operation.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Operation.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Operation.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/OperationDisplay.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Page.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Page.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page1.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Page1.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Page1.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Page1.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/RequestSource.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/RequestSource.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/RequestSource.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Resource.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/Resource.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/Resource.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/TagsResource.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/TagsResource.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/TagsResource.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTest.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTest.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTest.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestGeolocation.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestKind.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestKind.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestKind.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Models/WebTestPropertiesConfiguration.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Operations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/Operations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/Operations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/OperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/OperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/OperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/WebTestsOperations.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperations.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/WebTestsOperations.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Generated/WebTestsOperationsExtensions.cs diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Microsoft.Azure.Management.ApplicationInsights.csproj diff --git a/src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Properties/AssemblyInfo.cs similarity index 100% rename from src/SDKs/ApplicationInsights/Management.ApplicationInsights/Properties/AssemblyInfo.cs rename to src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/Properties/AssemblyInfo.cs diff --git a/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/generate.cmd b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/generate.cmd new file mode 100644 index 0000000000000..fc95a134a02ae --- /dev/null +++ b/src/SDKs/ApplicationInsights/Management/Management.ApplicationInsights/generate.cmd @@ -0,0 +1,7 @@ +:: +:: Microsoft Azure SDK for Net - Generate library code +:: Copyright (C) Microsoft Corporation. All Rights Reserved. +:: + +@echo off +call %~dp0..\..\..\..\..\tools\generate.cmd applicationinsights/resource-manager %* diff --git a/src/SDKs/_metadata/ApplicationInsights_data-plane.txt b/src/SDKs/_metadata/ApplicationInsights_data-plane.txt new file mode 100644 index 0000000000000..5714091ff0245 --- /dev/null +++ b/src/SDKs/_metadata/ApplicationInsights_data-plane.txt @@ -0,0 +1,11 @@ +2018-02-27 20:41:17 UTC + +1) azure-rest-api-specs repository information +GitHub user: Azure +Branch: master +Commit: d122af3086f0b1693b9c506befc497a1f4a8b8e1 + +2) AutoRest information +Requested version: latest +Bootstrapper version: C:\Users\alexe\AppData\Roaming\npm `-- autorest@2.0.4245 +Latest installed version: diff --git a/tools/generateMetadata.ps1 b/tools/generateMetadata.ps1 index 023253c9b5923..9319e73317653 100644 --- a/tools/generateMetadata.ps1 +++ b/tools/generateMetadata.ps1 @@ -6,6 +6,7 @@ Write-Host "GitHub user:" $Args[0] Write-Host "Branch: " $Args[1] Try { + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Write-Host "Commit: " (Invoke-RestMethod "https://api.github.com/repos/$($Args[0])/azure-rest-api-specs/branches/$($Args[1])").commit.sha } Catch