diff --git a/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md b/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md index 4fcfc279bb830..482a8a8dd85f9 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +## 1.0.0-beta.3 (2022-09-23) +## Features Added +- Added Concurrency with Multi-Threading to Upload methods +- Added Model `UploadLogsResult` representing the request to upload logs to Azure Monitor ## 1.0.0-beta.2 (2022-08-26) ## Features Added diff --git a/sdk/monitor/Azure.Monitor.Ingestion/README.md b/sdk/monitor/Azure.Monitor.Ingestion/README.md index c44ade7774ef2..b74aa344c8210 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/README.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/README.md @@ -152,7 +152,7 @@ TokenCredential credential = new DefaultAzureCredential(); LogsQueryClient logsQueryClient = new(credential); LogsBatchQuery batch = new(); -string query = tableName + " | count;"; +string query = tableName + " | Count;"; string countQueryId = batch.AddWorkspaceQuery( workspaceId, query, @@ -160,7 +160,7 @@ string countQueryId = batch.AddWorkspaceQuery( Response queryResponse = logsQueryClient.QueryBatch(batch); -Console.WriteLine("Table entry count: " + queryResponse.Value.GetResult(countQueryId).Single()); +Console.WriteLine("Table entry Count: " + queryResponse.Value.GetResult(countQueryId).Single()); ``` ## Troubleshooting diff --git a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net461.cs b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net461.cs index 874370957beee..189660ae42ebf 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net461.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net461.cs @@ -6,10 +6,8 @@ protected LogsIngestionClient() { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Upload(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task UploadAsync(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class LogsIngestionClientOptions : Azure.Core.ClientOptions { @@ -23,7 +21,13 @@ public partial class UploadLogsError { internal UploadLogsError() { } public Azure.ResponseError Error { get { throw null; } } - public System.Collections.Generic.IEnumerable FailedLogs { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FailedLogs { get { throw null; } } + } + public partial class UploadLogsOptions + { + public UploadLogsOptions() { } + public int MaxConcurrency { get { throw null; } set { } } + public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } } } public partial class UploadLogsResult { diff --git a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net5.0.cs b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net5.0.cs index 874370957beee..189660ae42ebf 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net5.0.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.net5.0.cs @@ -6,10 +6,8 @@ protected LogsIngestionClient() { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Upload(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task UploadAsync(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class LogsIngestionClientOptions : Azure.Core.ClientOptions { @@ -23,7 +21,13 @@ public partial class UploadLogsError { internal UploadLogsError() { } public Azure.ResponseError Error { get { throw null; } } - public System.Collections.Generic.IEnumerable FailedLogs { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FailedLogs { get { throw null; } } + } + public partial class UploadLogsOptions + { + public UploadLogsOptions() { } + public int MaxConcurrency { get { throw null; } set { } } + public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } } } public partial class UploadLogsResult { diff --git a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.netstandard2.0.cs b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.netstandard2.0.cs index 874370957beee..189660ae42ebf 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.netstandard2.0.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/api/Azure.Monitor.Ingestion.netstandard2.0.cs @@ -6,10 +6,8 @@ protected LogsIngestionClient() { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public LogsIngestionClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Monitor.Ingestion.LogsIngestionClientOptions options) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Upload(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task UploadAsync(string ruleId, string streamName, Azure.Core.RequestContent content, string contentEncoding = "gzip", Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logEntries, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UploadAsync(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Upload(string ruleId, string streamName, System.Collections.Generic.IEnumerable logs, Azure.Monitor.Ingestion.UploadLogsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class LogsIngestionClientOptions : Azure.Core.ClientOptions { @@ -23,7 +21,13 @@ public partial class UploadLogsError { internal UploadLogsError() { } public Azure.ResponseError Error { get { throw null; } } - public System.Collections.Generic.IEnumerable FailedLogs { get { throw null; } } + public System.Collections.Generic.IReadOnlyList FailedLogs { get { throw null; } } + } + public partial class UploadLogsOptions + { + public UploadLogsOptions() { } + public int MaxConcurrency { get { throw null; } set { } } + public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } } } public partial class UploadLogsResult { diff --git a/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogs.md b/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogs.md index 9920e085f4014..b244a6eb8fb6f 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogs.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogs.md @@ -14,7 +14,7 @@ TokenCredential credential = new DefaultAzureCredential(); LogsQueryClient logsQueryClient = new(credential); LogsBatchQuery batch = new(); -string query = tableName + " | count;"; +string query = tableName + " | Count;"; string countQueryId = batch.AddWorkspaceQuery( workspaceId, query, @@ -22,7 +22,7 @@ string countQueryId = batch.AddWorkspaceQuery( Response queryResponse = logsQueryClient.QueryBatch(batch); -Console.WriteLine("Table entry count: " + queryResponse.Value.GetResult(countQueryId).Single()); +Console.WriteLine("Table entry Count: " + queryResponse.Value.GetResult(countQueryId).Single()); ``` To see the full example source files, see [Query](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQuery.cs). \ No newline at end of file diff --git a/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogsAsync.md b/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogsAsync.md index 6e3507b1c32ba..3ec5edefe0043 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogsAsync.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/samples/Sample2_VerifyLogsAsync.md @@ -14,7 +14,7 @@ TokenCredential credential = new DefaultAzureCredential(); LogsQueryClient logsQueryClient = new(credential); LogsBatchQuery batch = new(); -string query = tableName + " | count;"; +string query = tableName + " | Count;"; string countQueryId = batch.AddWorkspaceQuery( workspaceId, query, @@ -22,7 +22,7 @@ string countQueryId = batch.AddWorkspaceQuery( Response queryResponse = await logsQueryClient.QueryBatchAsync(batch).ConfigureAwait(false); -Console.WriteLine("Table entry count: " + queryResponse.Value.GetResult(countQueryId).Single()); +Console.WriteLine("Table entry Count: " + queryResponse.Value.GetResult(countQueryId).Single()); ``` To see the full example source files, see [QueryAsync](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQueryAsync.cs). \ No newline at end of file diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/Generated/LogsIngestionClient.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/Generated/LogsIngestionClient.cs index 745682b7db703..447c44c41c84b 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/Generated/LogsIngestionClient.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/Generated/LogsIngestionClient.cs @@ -94,7 +94,7 @@ public LogsIngestionClient(Uri endpoint, TokenCredential credential, LogsIngesti /// ]]> /// /// See error response code and error response message for more detail. - public virtual async Task UploadAsync(string ruleId, string streamName, RequestContent content, string contentEncoding = "gzip", RequestContext context = null) + internal virtual async Task UploadAsync(string ruleId, string streamName, RequestContent content, string contentEncoding = "gzip", RequestContext context = null) { Argument.AssertNotNullOrEmpty(ruleId, nameof(ruleId)); Argument.AssertNotNullOrEmpty(streamName, nameof(streamName)); @@ -153,7 +153,7 @@ public virtual async Task UploadAsync(string ruleId, string streamName /// ]]> /// /// See error response code and error response message for more detail. - public virtual Response Upload(string ruleId, string streamName, RequestContent content, string contentEncoding = "gzip", RequestContext context = null) + internal virtual Response Upload(string ruleId, string streamName, RequestContent content, string contentEncoding = "gzip", RequestContext context = null) { Argument.AssertNotNullOrEmpty(ruleId, nameof(ruleId)); Argument.AssertNotNullOrEmpty(streamName, nameof(streamName)); diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/LogsIngestionClient.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/LogsIngestionClient.cs index eaf264e92bbb1..05d57d06a70fa 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/LogsIngestionClient.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/LogsIngestionClient.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Net; using System.Threading; using System.Threading.Tasks; using Azure.Core; @@ -23,7 +24,10 @@ protected LogsIngestionClient() // The size we use to determine whether to upload as a single PUT BLOB // request or stage as multiple blocks. - private const int SingleUploadThreshold = 1000000; // 1 Mb in byte format + internal static int SingleUploadThreshold = 1000000; // 1 Mb in byte format + + // If no concurrency count is provided, default to serial upload (one block at a time). + private int DefaultWorkerCount = 1; internal readonly struct BatchedLogs { @@ -37,6 +41,20 @@ public BatchedLogs(List logsList, BinaryData logsData) public BinaryData LogsData { get; } } + internal readonly struct BatchUpload + { + public BatchUpload(Response response, UploadLogsError error) + { + Response = response; + Error = error; + } + + // The response from the upload + public Response Response { get; } + // Contains the error and the associated logs + public UploadLogsError Error { get; } + } + internal HttpMessage CreateUploadRequest(string ruleId, string streamName, RequestContent content, string contentEncoding, RequestContext context) { var message = _pipeline.CreateMessage(context, ResponseClassifier204); @@ -73,18 +91,28 @@ internal HttpMessage CreateUploadRequest(string ruleId, string streamName, Reque /// /// /// + /// /// - internal static IEnumerable> Batch(IEnumerable logEntries) + internal static IEnumerable> Batch(IEnumerable logEntries, UploadLogsOptions options = null) { //TODO: use Array pool instead MemoryStream stream = new MemoryStream(SingleUploadThreshold); WriteMemory(stream, BinaryData.FromString("[").ToMemory()); int entryCount = 0; List currentLogList = new List(); - foreach (var log in logEntries) { - BinaryData entry = log is BinaryData d ? d : BinaryData.FromObjectAsJson(log); + BinaryData entry; + // If log is already BinaryData, no need to serialize it + if (log is BinaryData d) + entry = d; + // If log is not BinaryData, serialize it. Default Serializer is System.Text.Json + else if (options == null || options.Serializer == null) + entry = BinaryData.FromObjectAsJson(log); + // Otherwise use Serializer specified in options + else + entry = options.Serializer.Serialize(log); + var memory = entry.ToMemory(); if (memory.Length > SingleUploadThreshold) // if single log is > 1 Mb send to be gzipped by itself { @@ -112,7 +140,7 @@ internal static IEnumerable> Batch(IEnumerable logEntries) WriteMemory(stream, memory); if ((entryCount + 1) == logEntries.Count()) { - // reached end of logEntries and we haven't returned yet + // reached end of logs and we haven't returned yet WriteMemory(stream, BinaryData.FromString("]").ToMemory()); stream.Position = 0; currentLogList.Add(log); @@ -136,9 +164,10 @@ private static void WriteMemory(MemoryStream stream, ReadOnlyMemory memory /// Ingestion API used to directly ingest data using Data Collection Rules. /// The immutable Id of the Data Collection Rule resource. /// The streamDeclaration name as defined in the Data Collection Rule. - /// The content to send as the body of the request. Details of the request body schema are in the Remarks section below. + /// The content to send as the body of the request. Details of the request body schema are in the Remarks section below. + /// The options model to configure the request to upload logs to Azure Monitor. /// - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-Success status code. /// The response returned from the service. @@ -158,50 +187,55 @@ private static void WriteMemory(MemoryStream stream, ReadOnlyMemory memory /// ]]> /// /// See error response code and error response message for more detail. - public virtual Response Upload(string ruleId, string streamName, IEnumerable logEntries, CancellationToken cancellationToken = default) + public virtual Response Upload(string ruleId, string streamName, IEnumerable logs, UploadLogsOptions options = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleId, nameof(ruleId)); Argument.AssertNotNullOrEmpty(streamName, nameof(streamName)); - Argument.AssertNotNullOrEmpty(logEntries, nameof(logEntries)); + Argument.AssertNotNullOrEmpty(logs, nameof(logs)); using var scope = ClientDiagnostics.CreateScope("LogsIngestionClient.Upload"); - scope.Start(); RequestContext requestContext = GenerateRequestContext(cancellationToken); Response response = null; List errors = new List(); try { - foreach (BatchedLogs batch in Batch(logEntries)) + scope.Start(); + + // Partition the stream into individual blocks + foreach (BatchedLogs batch in Batch(logs, options)) { - //TODO: catch errors and correlate with Batch.start - using HttpMessage message = CreateUploadRequest(ruleId, streamName, batch.LogsData, "gzip", requestContext); - response = _pipeline.ProcessMessage(message, requestContext, cancellationToken); - if (response.Status != 204) // if any error is thrown log it - { - RequestFailedException requestFailedException = new RequestFailedException(response); - ResponseError responseError = new ResponseError(requestFailedException.ErrorCode, requestFailedException.Message); - List objectLogs = new List((IEnumerable)batch.LogsList); - errors.Add(new UploadLogsError(responseError, objectLogs)); - } + // Because we are uploading in sequence, wait for each batch to upload before starting the next batch + BatchUpload task = CommitBatchListSyncOrAsync( + batch, + ruleId, + streamName, + false, + cancellationToken).EnsureCompleted(); + + // If we have an error, add error from response into errors list which represents the errors from all the batches + if (task.Error != null) + errors.Add(task.Error); } } - catch (Exception e) + catch (Exception ex) { - scope.Failed(e); + scope.Failed(ex); throw; } - UploadLogsResult finalResult = new UploadLogsResult(errors, Status(logEntries, errors)); + // Calculate the status using the helper method Status + UploadLogsResult finalResult = new UploadLogsResult(errors, GetStatus(logs, errors)); return Response.FromValue(finalResult, response); } /// Ingestion API used to directly ingest data using Data Collection Rules. /// The immutable Id of the Data Collection Rule resource. /// The streamDeclaration name as defined in the Data Collection Rule. - /// The content to send as the body of the request. Details of the request body schema are in the Remarks section below. + /// The content to send as the body of the request. Details of the request body schema are in the Remarks section below. + /// The options model to configure the request to upload logs to Azure Monitor. /// - /// , or is null. + /// , or is null. /// or is an empty string, and was expected to be non-empty. /// Service returned a non-Success status code. /// The response returned from the service. @@ -221,44 +255,115 @@ public virtual Response Upload(string ruleId, string stream /// ]]> /// /// See error response code and error response message for more detail. - public virtual async Task> UploadAsync(string ruleId, string streamName, IEnumerable logEntries, CancellationToken cancellationToken = default) + public virtual async Task> UploadAsync(string ruleId, string streamName, IEnumerable logs, UploadLogsOptions options = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleId, nameof(ruleId)); Argument.AssertNotNullOrEmpty(streamName, nameof(streamName)); - Argument.AssertNotNullOrEmpty(logEntries, nameof(logEntries)); + Argument.AssertNotNullOrEmpty(logs, nameof(logs)); + // Calculate the number of threads to use. + // If there are 0 workers or an UploadLogsOptions object was not provided, method will run serially. Otherwise will run in parallel with number of workers given. + int _maxWorkerCount = (options == null || options.MaxConcurrency <= 0) ? DefaultWorkerCount : options.MaxConcurrency; using var scope = ClientDiagnostics.CreateScope("LogsIngestionClient.Upload"); - scope.Start(); RequestContext requestContext = GenerateRequestContext(cancellationToken); Response response = null; List errors = new List(); + try { - foreach (BatchedLogs batch in Batch(logEntries)) + scope.Start(); + // A list of tasks that are currently executing which will + // always be smaller than or equal to MaxWorkerCount + List> runningTasks = new(); + // Partition the stream into individual blocks + foreach (BatchedLogs batch in Batch(logs, options)) { - //TODO: catch errors and correlate with Batch.start - using HttpMessage message = CreateUploadRequest(ruleId, streamName, batch.LogsData, "gzip", requestContext); - response = await _pipeline.ProcessMessageAsync(message, requestContext, cancellationToken).ConfigureAwait(false); - if (response.Status != 204) // if any error is thrown log it + // Start staging the next batch (but don't await the Task!) + Task task = CommitBatchListSyncOrAsync( + batch, + ruleId, + streamName, + true, + cancellationToken); + + // Add the block to our task and commit lists + runningTasks.Add(task); + + // If we run out of workers + if (runningTasks.Count >= _maxWorkerCount) { - RequestFailedException requestFailedException = new RequestFailedException(response); - ResponseError responseError = new ResponseError(requestFailedException.ErrorCode, requestFailedException.Message); - List objectLogs = new List((IEnumerable)batch.LogsList); - errors.Add(new UploadLogsError(responseError, objectLogs)); + // Wait for at least one of them to finish + await Task.WhenAny(runningTasks).ConfigureAwait(false); + // Clear any completed blocks from the task list + for (int i = 0; i < runningTasks.Count; i++) + { + Task runningTask = runningTasks[i]; + if (!runningTask.IsCompleted) + { + continue; + } + + // Before removing runningTask - check if it has any errors and add to error list + if (runningTask.Result.Error != null) + errors.Add(runningTask.Result.Error); + + // Remove completed task from task list + runningTasks.RemoveAt(i); + i--; + } } } + + // Wait for all the remaining blocks to finish uploading + await Task.WhenAll(runningTasks).ConfigureAwait(false); + + // Process all errors after tasks are done to determine status + // Will run on a single thread + foreach (Task task in runningTasks) + { + // Go through errors from each task and if we have an error, add error from response into errors list which represents the errors from all the batches + if (task.Result.Error != null) + errors.Add(task.Result.Error); + } } - catch (Exception e) + catch (Exception ex) { - scope.Failed(e); + scope.Failed(ex); throw; } - UploadLogsResult finalResult = new UploadLogsResult(errors, Status(logEntries, errors)); + // Calculate the status using the helper method Status + UploadLogsResult finalResult = new UploadLogsResult(errors, GetStatus(logs, errors)); return Response.FromValue(finalResult, response); } + private async Task CommitBatchListSyncOrAsync(BatchedLogs batch, string ruleId, string streamName, bool async, CancellationToken cancellationToken) + { + UploadLogsError error = null; + RequestContext requestContext = GenerateRequestContext(cancellationToken); + Response response = null; + + using HttpMessage message = CreateUploadRequest(ruleId, streamName, batch.LogsData, "gzip", requestContext); + + if (async) + { + response = await _pipeline.ProcessMessageAsync(message, requestContext, cancellationToken).ConfigureAwait(false); + } + else + { + response = _pipeline.ProcessMessage(message, requestContext, cancellationToken); + } + + if (response.Status != 204) // if any error is thrown log it + { + RequestFailedException requestFailedException = new RequestFailedException(response); + ResponseError responseError = new ResponseError(requestFailedException.ErrorCode, requestFailedException.Message); + error = new UploadLogsError(responseError, (IReadOnlyList)batch.LogsList); + } + return new BatchUpload(response, error); + } + private static RequestContext GenerateRequestContext(CancellationToken cancellationToken) { var requestContext = new RequestContext() { CancellationToken = cancellationToken }; @@ -270,20 +375,30 @@ private static RequestContext GenerateRequestContext(CancellationToken cancellat return requestContext; } - private static UploadLogsStatus Status(IEnumerable logEntries, List errors) + private static UploadLogsStatus GetStatus(IEnumerable logEntries, List errors) { UploadLogsStatus status; - if (errors.Count == 0) + // Errors holds the lists of all failed logs per batch so summing up these gives us the total number of failed logs + int totalLogsFailed = 0; + foreach (UploadLogsError error in errors) + { + totalLogsFailed += error.FailedLogs.Count; + } + + // If there are no errors, all entries were successfully uploaded + if (totalLogsFailed == 0) { status = UploadLogsStatus.Success; } - else if (errors.Count > logEntries.Count()) + // If the number of total failed logs is equal to the logs count this means all the uploads failed + else if (totalLogsFailed == logEntries.Count()) { - status = UploadLogsStatus.PartialFailure; + status = UploadLogsStatus.Failure; } + // At least one batch has failed, indicating a PartialFailure result else { - status = UploadLogsStatus.Failure; + status = UploadLogsStatus.PartialFailure; } return status; diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsError.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsError.cs index e67423b59f904..a87a536c8f0f1 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsError.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsError.cs @@ -12,7 +12,7 @@ namespace Azure.Monitor.Ingestion /// public class UploadLogsError { - internal UploadLogsError(ResponseError error, IEnumerable failedLogs) + internal UploadLogsError(ResponseError error, IReadOnlyList failedLogs) { Argument.AssertNotNull(failedLogs, nameof(failedLogs)); Error = error; @@ -22,7 +22,7 @@ internal UploadLogsError(ResponseError error, IEnumerable failedLogs) /// /// List of logs that failed to upload. /// - public IEnumerable FailedLogs { get; } + public IReadOnlyList FailedLogs { get; } /// /// The response error containing the error details returned by the service. diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsOptions.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsOptions.cs new file mode 100644 index 0000000000000..3c3505bd49ad5 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsOptions.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.Serialization; + +namespace Azure.Monitor.Ingestion +{ + /// + /// The options model to configure the request to upload logs to Azure Monitor. + /// + public class UploadLogsOptions + { + /// + /// The serializer to use to convert the log objects to JSON. + /// Default Serializer is System.Text.Json. + /// + public ObjectSerializer Serializer { get; set; } + + /// + /// The max concurrent requests to send to the Azure Monitor service when uploading logs. + /// In the Upload method, this parameter is not used as the batches are uploaded in sequence. + /// + public int MaxConcurrency { get; set; } + } +} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsResult.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsResult.cs index 3def8d22340c4..5cceb1334002d 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsResult.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/Models/UploadLogsResult.cs @@ -20,6 +20,7 @@ internal UploadLogsResult(IReadOnlyList errors, UploadLogsStatu /// /// The list of errors that occurred when uploading logs, if any. + /// List will be empty when no logs failed to upload. /// public IReadOnlyList Errors { get; } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/autorest.md b/sdk/monitor/Azure.Monitor.Ingestion/src/autorest.md index 608658a2f42c3..67e010c7315a0 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/autorest.md +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/autorest.md @@ -34,3 +34,10 @@ directive: where: $.paths["/dataCollectionRules/{ruleId}/streams/{stream}"].post.parameters[3] transform: $["x-ms-client-default"] = "gzip"; ``` +### Update auto-generated Upload/UploadAsync methods to internal +``` yaml +directive: +- from: swagger-document + where: $.paths["/dataCollectionRules/{ruleId}/streams/{stream}"].post + transform: $['x-accessibility'] = "internal"; +``` diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/ConcurrencyCounterPolicy.cs b/sdk/monitor/Azure.Monitor.Ingestion/tests/ConcurrencyCounterPolicy.cs new file mode 100644 index 0000000000000..27491584fb4d3 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/ConcurrencyCounterPolicy.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using NUnit.Framework; + +namespace Azure.Monitor.Ingestion.Tests +{ + internal class ConcurrencyCounterPolicy : HttpPipelinePolicy + { + public volatile int Count; + private int _maxConcurrency; + + public ConcurrencyCounterPolicy(int concurrency) + { + _maxConcurrency = concurrency; + } + + public override void Process(HttpMessage message, ReadOnlyMemory pipeline) + { + Interlocked.Increment(ref Count); + ProcessNext(message, pipeline); + Assert.GreaterOrEqual(1, Count); //in the sync case, the number of threads running should not exceed 1 + Interlocked.Decrement(ref Count); + } + + public override async ValueTask ProcessAsync(HttpMessage message, ReadOnlyMemory pipeline) + { + Interlocked.Increment(ref Count); + await ProcessNextAsync(message, pipeline).ConfigureAwait(false); + Assert.GreaterOrEqual(_maxConcurrency, Count); //in the async case, the number of threads running should not exceed the specified _maxConcurrency + Interlocked.Decrement(ref Count); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/MonitorIngestionLiveTest.cs b/sdk/monitor/Azure.Monitor.Ingestion/tests/MonitorIngestionLiveTest.cs index 0d40d6cf59c7b..421bedfa62869 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/MonitorIngestionLiveTest.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/MonitorIngestionLiveTest.cs @@ -9,6 +9,7 @@ using System.Linq; using System.Threading.Tasks; using Azure.Core; +using Azure.Core.Pipeline; using Azure.Core.TestFramework; using NUnit.Framework; @@ -19,14 +20,18 @@ public class MonitorIngestionLiveTest : RecordedTestBase GenerateEntries(int numEntries, DateTime recordingNow) @@ -105,33 +111,7 @@ public async Task ValidInputFromArrayAsJsonWithSingleBatchWithGzip() // Check the response Assert.AreEqual(UploadLogsStatus.Success, response.Value.Status); - } - - [Test] - public async Task ValidInputFromObjectAsJsonNoBatchingAsync() - { - LogsIngestionClient client = CreateClient(); - - BinaryData data = BinaryData.FromObjectAsJson( - // Use an anonymous type to create the payload - new[] { - new - { - Time = Recording.Now.DateTime, - Computer = "Computer1", - AdditionalContext = 2, - }, - new - { - Time = Recording.Now.DateTime, - Computer = "Computer2", - AdditionalContext = 3 - }, - }); - - Response response = await client.UploadAsync(TestEnvironment.DCRImmutableId, TestEnvironment.StreamName, RequestContent.Create(data)).ConfigureAwait(false); //takes StreamName not tablename - // Check the response - Assert.AreEqual(204, response.Status); + Assert.IsEmpty(response.Value.Errors); } [LiveOnly] @@ -145,6 +125,7 @@ public async Task ValidInputFromArrayAsJsonWithMultiBatchWithGzip() // Check the response Assert.AreEqual(UploadLogsStatus.Success, response.Value.Status); + Assert.IsEmpty(response.Value.Errors); } [LiveOnly] @@ -159,5 +140,40 @@ public async Task InvalidInputFromObjectAsJsonNoBatchingNoGzipAsync() Assert.AreEqual(413, response.Value.Errors.FirstOrDefault().Error.Code); Assert.AreEqual(10000, response.Value.Errors.FirstOrDefault().FailedLogs.Count()); } + + [AsyncOnly] + [Test] + public async Task ConcurrencyMultiThread() + { + var policy = new ConcurrencyCounterPolicy(10); + LogsIngestionClient client = CreateClient(policy); + LogsIngestionClient.SingleUploadThreshold = 100; // make batch size smaller for Uploads for test recording size + + // Make the request + UploadLogsOptions options = new UploadLogsOptions(); + options.MaxConcurrency = 10; + var tasks = client.UploadAsync(TestEnvironment.DCRImmutableId, TestEnvironment.StreamName, GenerateEntries(8, Recording.Now.DateTime), options).ConfigureAwait(false); + + var response = await tasks; + + // Check the response + Assert.AreEqual(UploadLogsStatus.Success, response.Value.Status); + Assert.IsEmpty(response.Value.Errors); + } + + [SyncOnly] + [Test] + public void ConcurrencySingleThread() + { + var policy = new ConcurrencyCounterPolicy(10); + LogsIngestionClient client = CreateClient(policy); + + LogsIngestionClient.SingleUploadThreshold = 100; // make batch size smaller for Uploads for test recording size + var response = client.Upload(TestEnvironment.DCRImmutableId, TestEnvironment.StreamName, GenerateEntries(50, Recording.Now.DateTime)); + + // Check the response + Assert.AreEqual(UploadLogsStatus.Success, response.Value.Status); + Assert.IsEmpty(response.Value.Errors); + } } } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQuery.cs b/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQuery.cs index 27f2f274128d0..b2195a9eefb00 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQuery.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQuery.cs @@ -88,7 +88,7 @@ public void QueryData() LogsQueryClient logsQueryClient = new(credential); LogsBatchQuery batch = new(); - string query = tableName + " | count;"; + string query = tableName + " | Count;"; string countQueryId = batch.AddWorkspaceQuery( workspaceId, query, @@ -96,7 +96,7 @@ public void QueryData() Response queryResponse = logsQueryClient.QueryBatch(batch); - Console.WriteLine("Table entry count: " + queryResponse.Value.GetResult(countQueryId).Single()); + Console.WriteLine("Table entry Count: " + queryResponse.Value.GetResult(countQueryId).Single()); #endregion } } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQueryAsync.cs b/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQueryAsync.cs index 5ac555b213dcb..f5b592849a211 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQueryAsync.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/Samples/LogDataAndQueryAsync.cs @@ -80,7 +80,7 @@ public async Task QueryDataAsync() LogsQueryClient logsQueryClient = new(credential); LogsBatchQuery batch = new(); - string query = tableName + " | count;"; + string query = tableName + " | Count;"; string countQueryId = batch.AddWorkspaceQuery( workspaceId, query, @@ -88,7 +88,7 @@ public async Task QueryDataAsync() Response queryResponse = await logsQueryClient.QueryBatchAsync(batch).ConfigureAwait(false); - Console.WriteLine("Table entry count: " + queryResponse.Value.GetResult(countQueryId).Single()); + Console.WriteLine("Table entry Count: " + queryResponse.Value.GetResult(countQueryId).Single()); #endregion } } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencyMultiThreadAsync.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencyMultiThreadAsync.json new file mode 100644 index 0000000000000..0042b9febec1e --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencyMultiThreadAsync.json @@ -0,0 +1,180 @@ +{ + "Entries": [ + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-318d1a043be2c048-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "47f9dba41b1a0044a8a0926d9dcd1b84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer5\u0022,\u0022AdditionalContext\u0022:5}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "47f9dba4-1b1a-0044-a8a0-926d9dcd1b84", + "x-ms-request-id": "df9add46-f0e8-4ab4-9adb-1af628a5839c" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-7e8b9b114f69c74b-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "07d26a691086306ad092946a693499d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer1\u0022,\u0022AdditionalContext\u0022:1}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "07d26a69-1086-306a-d092-946a693499d5", + "x-ms-request-id": "211c2cc1-a5fe-431b-b308-bfb43b5f16d9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "87", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-310b55e7e935ad4a-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3813bcfc709e133281b909d69d846d1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer0\u0022,\u0022AdditionalContext\u0022:0}],]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3813bcfc-709e-1332-81b9-09d69d846d1e", + "x-ms-request-id": "8eb7cb65-b34f-4c9c-ac2a-81b60a7eef42" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-bc24dc6326574445-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ab41fad93b03e8c253b5edb5b9412349", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer6\u0022,\u0022AdditionalContext\u0022:6}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ab41fad9-3b03-e8c2-53b5-edb5b9412349", + "x-ms-request-id": "58b01f80-0bf7-4655-a2b7-36692d5b41b7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-56cb6cef0271824d-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7e1921707490ec4352e2670cdbc7aa4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer3\u0022,\u0022AdditionalContext\u0022:3}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7e192170-7490-ec43-52e2-670cdbc7aa4d", + "x-ms-request-id": "694574e4-ae1c-4bb0-93e5-ad073e935436" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-55c0c2634263474c-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "e58ceb750450f7d94c844761df64edb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer2\u0022,\u0022AdditionalContext\u0022:2}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "e58ceb75-0450-f7d9-4c84-4761df64edb9", + "x-ms-request-id": "940be44a-14f7-4571-98e1-5912c308a1e9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "85", + "Content-Type": "application/json", + "traceparent": "00-c0542fc210273e43a488ecb09635d206-9945b7a8ac6da04d-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b260342088f764ce91dbba01c908516c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.438341\u0022,\u0022Computer\u0022:\u0022Computer4\u0022,\u0022AdditionalContext\u0022:4}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b2603420-88f7-64ce-91db-ba01c908516c", + "x-ms-request-id": "aa693709-d510-40bf-9dce-702da1b6041f" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": null, + "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", + "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", + "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", + "DateTimeOffsetNow": "2022-09-23T12:09:52.4383410-07:00", + "RandomSeed": "523070861" + } +} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencySingleThread.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencySingleThread.json new file mode 100644 index 0000000000000..c7614b776ea27 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ConcurrencySingleThread.json @@ -0,0 +1,1139 @@ +{ + "Entries": [ + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "53de68f98d07089fddb130f1619d9900", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer0\u0022,\u0022AdditionalContext\u0022:0}],]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:34 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "53de68f9-8d07-089f-ddb1-30f1619d9900", + "x-ms-request-id": "d66de144-9789-4fe9-972e-f2f0df7486a8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "69175899f3f54d639e59e1d1bcb3420b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer1\u0022,\u0022AdditionalContext\u0022:1}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:34 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "69175899-f3f5-4d63-9e59-e1d1bcb3420b", + "x-ms-request-id": "dbbef518-dd43-4267-b1da-b785b298a99a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a7e992991e11f3bab0c46f6544c2d2f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer2\u0022,\u0022AdditionalContext\u0022:2}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:34 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a7e99299-1e11-f3ba-b0c4-6f6544c2d2f7", + "x-ms-request-id": "342b9de4-b4f5-4637-a4dd-4bf33d4984c8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "26af0b3e45a705080590b5aeaccd4c29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer3\u0022,\u0022AdditionalContext\u0022:3}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "26af0b3e-45a7-0508-0590-b5aeaccd4c29", + "x-ms-request-id": "1ce032ba-1852-4f47-baf2-d077dfcf3add" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "cf57246ef1b47aef9e23b83184fe09dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer4\u0022,\u0022AdditionalContext\u0022:4}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "cf57246e-f1b4-7aef-9e23-b83184fe09dc", + "x-ms-request-id": "8b958175-dd3f-4977-aa66-d7c0fae4e20d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b093e9861c04536389e3a280690c46e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer5\u0022,\u0022AdditionalContext\u0022:5}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b093e986-1c04-5363-89e3-a280690c46e3", + "x-ms-request-id": "320f0afc-ba35-4227-b2ee-b4441df81bfa" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1ff64677036a4c431b3487838dd78107", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer6\u0022,\u0022AdditionalContext\u0022:6}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1ff64677-036a-4c43-1b34-87838dd78107", + "x-ms-request-id": "6cc12053-cb94-458d-b205-1c8766bfb859" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c327d8879b3a5225c10446d04f6e1192", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer7\u0022,\u0022AdditionalContext\u0022:7}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "c327d887-9b3a-5225-c104-46d04f6e1192", + "x-ms-request-id": "b3fff897-f864-4b4c-ad90-1a747226eaf8" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3db9d5dce9078371a54695d094dfc6b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer8\u0022,\u0022AdditionalContext\u0022:8}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3db9d5dc-e907-8371-a546-95d094dfc6b1", + "x-ms-request-id": "6fcb26b2-6418-4473-8723-7e88b28e20c7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "90f99b6283e4dca820a35e66bc73fdad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer9\u0022,\u0022AdditionalContext\u0022:9}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "90f99b62-83e4-dca8-20a3-5e66bc73fdad", + "x-ms-request-id": "a5aa04d3-cfc8-4884-9eff-7910cf75809b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b8a6f522431d9eff67a31df30655bee1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer10\u0022,\u0022AdditionalContext\u0022:10}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b8a6f522-431d-9eff-67a3-1df30655bee1", + "x-ms-request-id": "24b0de63-4974-4b4a-bcac-4188b5c8d839" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b36e943d817559ad2cdd1d638a0bc732", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer11\u0022,\u0022AdditionalContext\u0022:11}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b36e943d-8175-59ad-2cdd-1d638a0bc732", + "x-ms-request-id": "67c169bc-11bf-4c62-aa63-37a99236f707" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9eade7490e391e949b5b284166b5d5cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer12\u0022,\u0022AdditionalContext\u0022:12}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9eade749-0e39-1e94-9b5b-284166b5d5cb", + "x-ms-request-id": "b88a04dd-18df-4598-a912-9e696aa1dc2a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "27287de54904a137484d8b40269b135c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer13\u0022,\u0022AdditionalContext\u0022:13}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:35 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "27287de5-4904-a137-484d-8b40269b135c", + "x-ms-request-id": "cae36775-0d1d-4364-a3ac-69274d5910f7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1eaaeadb1fa72fa80050181a586bf377", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer14\u0022,\u0022AdditionalContext\u0022:14}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1eaaeadb-1fa7-2fa8-0050-181a586bf377", + "x-ms-request-id": "693a65cc-9453-475e-8d2f-7aad447ee813" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0d7e51089fe2ff2db00b56eb8253f800", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer15\u0022,\u0022AdditionalContext\u0022:15}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "0d7e5108-9fe2-ff2d-b00b-56eb8253f800", + "x-ms-request-id": "10786651-1957-43d3-8477-e0ef033899f9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7b65cc48b60ac623d4f926b4311d49dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer16\u0022,\u0022AdditionalContext\u0022:16}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7b65cc48-b60a-c623-d4f9-26b4311d49dc", + "x-ms-request-id": "50b59ed5-db46-4478-9f8d-6b9fe13d1f01" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d437145a051d3b7abdab6e9cc8bcacac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer17\u0022,\u0022AdditionalContext\u0022:17}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d437145a-051d-3b7a-bdab-6e9cc8bcacac", + "x-ms-request-id": "43e3444d-d2a7-43f3-8248-7074fa7c3ce7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8bd118587805516c2eb738e87979cd92", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer18\u0022,\u0022AdditionalContext\u0022:18}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:36 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8bd11858-7805-516c-2eb7-38e87979cd92", + "x-ms-request-id": "4aca1fd3-6f08-4db5-baef-8a86f54f58d7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6e9179c2231c42e25229be5f4887fd18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer19\u0022,\u0022AdditionalContext\u0022:19}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "6e9179c2-231c-42e2-5229-be5f4887fd18", + "x-ms-request-id": "e3af3c18-cb31-4a0d-bf14-1b8d08b3eda7" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "195c794dbd4be1d6a7e6a665cc91c243", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer20\u0022,\u0022AdditionalContext\u0022:20}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "195c794d-bd4b-e1d6-a7e6-a665cc91c243", + "x-ms-request-id": "85fdc6aa-5be6-43d0-8118-0027afeb8daf" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4fd9dcdd3e2a3490358e39dcba0c09a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer21\u0022,\u0022AdditionalContext\u0022:21}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4fd9dcdd-3e2a-3490-358e-39dcba0c09a6", + "x-ms-request-id": "8f6b76d0-d181-48e9-b71a-a657a3138cd1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ff9b20b9b41c0546a3afc6357c7c76c0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer22\u0022,\u0022AdditionalContext\u0022:22}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ff9b20b9-b41c-0546-a3af-c6357c7c76c0", + "x-ms-request-id": "736fa464-4d35-4cc0-9089-ebc55d9c24ad" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "6c827a67aeae0eede927e3bc83fa279a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer23\u0022,\u0022AdditionalContext\u0022:23}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "6c827a67-aeae-0eed-e927-e3bc83fa279a", + "x-ms-request-id": "207aba25-05ea-4ba7-9f5a-dad8765f76fc" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ababffddc3f6292695d3ac7a775ab8b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer24\u0022,\u0022AdditionalContext\u0022:24}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ababffdd-c3f6-2926-95d3-ac7a775ab8b9", + "x-ms-request-id": "6752d1dd-8488-43c1-b47d-d843b3498091" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3f7479189c8a0bf8328c16f5d08982a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer25\u0022,\u0022AdditionalContext\u0022:25}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3f747918-9c8a-0bf8-328c-16f5d08982a8", + "x-ms-request-id": "232fb5a7-48ca-454d-ae94-eb5bf0366e9b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7c582b88cad0a3c95359d6da0272978e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer26\u0022,\u0022AdditionalContext\u0022:26}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7c582b88-cad0-a3c9-5359-d6da0272978e", + "x-ms-request-id": "dd61bca0-e35b-4b35-a3cc-6f0fe1921f20" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "0aa42a6fe785401007a0796aac31580b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer27\u0022,\u0022AdditionalContext\u0022:27}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "0aa42a6f-e785-4010-07a0-796aac31580b", + "x-ms-request-id": "72391647-c29d-4300-bbd3-48bd69b539d9" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "4bf203513b024de8afd0eb31c61d08c0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer28\u0022,\u0022AdditionalContext\u0022:28}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "4bf20351-3b02-4de8-afd0-eb31c61d08c0", + "x-ms-request-id": "d51d26f4-6be1-46e4-9717-f352202d4d8a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a68587f577e4a0221b18752f515ff622", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer29\u0022,\u0022AdditionalContext\u0022:29}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:37 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a68587f5-77e4-a022-1b18-752f515ff622", + "x-ms-request-id": "b46148f0-9230-4e1a-8846-ecfe2d579998" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fe89ca004b80348c41575ab4fbde7ae9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer30\u0022,\u0022AdditionalContext\u0022:30}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fe89ca00-4b80-348c-4157-5ab4fbde7ae9", + "x-ms-request-id": "92bae9ca-ca84-4ba2-962b-cfe401197324" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2574b997b1abd927e15130e9c5b8fb4f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer31\u0022,\u0022AdditionalContext\u0022:31}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "2574b997-b1ab-d927-e151-30e9c5b8fb4f", + "x-ms-request-id": "557a8a17-f57f-4b15-b16d-afa5dcb8e774" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "fb31c9da0994aa3ffb50648d1d6da53d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer32\u0022,\u0022AdditionalContext\u0022:32}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "fb31c9da-0994-aa3f-fb50-648d1d6da53d", + "x-ms-request-id": "ab97a831-4ce4-4d40-ad4e-6d2ba5355b79" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "98988b9ed1eb4e76a3af1d2e1ba26e89", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer33\u0022,\u0022AdditionalContext\u0022:33}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "98988b9e-d1eb-4e76-a3af-1d2e1ba26e89", + "x-ms-request-id": "fae8c685-a740-476c-85b1-bd0eb4ff8bfb" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "32da0a5b7fad8e5579ca295b4d99bc73", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer34\u0022,\u0022AdditionalContext\u0022:34}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "32da0a5b-7fad-8e55-79ca-295b4d99bc73", + "x-ms-request-id": "fcdd262b-59c3-42f6-b65e-5f45e7a4865e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3a4bf2ac6320086452e257e4ec118f59", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer35\u0022,\u0022AdditionalContext\u0022:35}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3a4bf2ac-6320-0864-52e2-57e4ec118f59", + "x-ms-request-id": "37e89c59-a3bb-4307-963d-4c5fcc4cf874" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1232dbe272921e90350a1f21a81b010a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer36\u0022,\u0022AdditionalContext\u0022:36}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1232dbe2-7292-1e90-350a-1f21a81b010a", + "x-ms-request-id": "cc41c97a-d8db-48f3-bc5a-0c389b30b973" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "2881aaf33356f768a6d2dfcb2771a167", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer37\u0022,\u0022AdditionalContext\u0022:37}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "2881aaf3-3356-f768-a6d2-dfcb2771a167", + "x-ms-request-id": "948c5a9b-561c-43f0-b8a3-1aecd55ebe80" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "7178d03aaa6639e0622c051644435f37", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer38\u0022,\u0022AdditionalContext\u0022:38}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:38 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "7178d03a-aa66-39e0-622c-051644435f37", + "x-ms-request-id": "f85151da-2be4-4674-a19e-d4b674234266" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "41f04ce0678fae02723a6bc093c5f7c3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer39\u0022,\u0022AdditionalContext\u0022:39}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "41f04ce0-678f-ae02-723a-6bc093c5f7c3", + "x-ms-request-id": "0bbe0f76-8d05-4bb2-a49d-df4a2236cfac" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d8e6b7688fa249a3c947c52a2e52b362", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer40\u0022,\u0022AdditionalContext\u0022:40}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d8e6b768-8fa2-49a3-c947-c52a2e52b362", + "x-ms-request-id": "9352750f-abb9-4c3c-8670-39ad1e66a265" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "daeaa7726080d3d7cdcafe2c3e20a69d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer41\u0022,\u0022AdditionalContext\u0022:41}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:40 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "daeaa772-6080-d3d7-cdca-fe2c3e20a69d", + "x-ms-request-id": "6a5d5a8c-8db0-4038-ac49-26b558124e3a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "8cae4135875d5094a9a77748a1d87f20", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer42\u0022,\u0022AdditionalContext\u0022:42}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:40 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "8cae4135-875d-5094-a9a7-7748a1d87f20", + "x-ms-request-id": "a1872cd4-0e2c-469c-99ff-5f8ccb7833b4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ec4d09871cda0743df120ad890770ba9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer43\u0022,\u0022AdditionalContext\u0022:43}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ec4d0987-1cda-0743-df12-0ad890770ba9", + "x-ms-request-id": "7962d061-37f3-4e69-9f8a-f3866d065300" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "edf428a126a3eb05129931d9e88f32f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer44\u0022,\u0022AdditionalContext\u0022:44}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "edf428a1-26a3-eb05-1299-31d9e88f32f5", + "x-ms-request-id": "737c337d-df5c-46f7-b635-43d011132e7e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "35a4dd4abad219c2fea6ad4a7dbcbf31", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer45\u0022,\u0022AdditionalContext\u0022:45}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:40 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "35a4dd4a-bad2-19c2-fea6-ad4a7dbcbf31", + "x-ms-request-id": "e83c903e-9e48-4301-92a7-fc42967db279" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "78a6ce9c92e3617d0362d940ea691f4f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer46\u0022,\u0022AdditionalContext\u0022:46}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:39 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "78a6ce9c-92e3-617d-0362-d940ea691f4f", + "x-ms-request-id": "d903d3de-b9bf-465e-a9bc-e37817b79afa" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "b38e15e0d5d2e7d765dbeefd78bb6e56", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer47\u0022,\u0022AdditionalContext\u0022:47}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:40 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "b38e15e0-d5d2-e7d7-65db-eefd78bb6e56", + "x-ms-request-id": "bd6a1394-59be-4e2d-821b-7b4cfd9bdf22" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "88", + "Content-Type": "application/json", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET 6.0.9; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "193cffd9b9e8b71160433170e0812e94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:36.1429525\u0022,\u0022Computer\u0022:\u0022Computer48\u0022,\u0022AdditionalContext\u0022:48}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:40 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "193cffd9-b9e8-b711-6043-3170e0812e94", + "x-ms-request-id": "495d51e4-e4f4-4029-85e8-7bbfdd6e22e1" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": null, + "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", + "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", + "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", + "DateTimeOffsetNow": "2022-09-23T12:09:36.1429525-07:00", + "RandomSeed": "1105397838" + } +} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzip.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzip.json index e0712ff44fecf..33f061b97609a 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzip.json +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzip.json @@ -7,26 +7,212 @@ "Accept": "application/json", "Authorization": "Sanitized", "Content-Encoding": "gzip", - "Content-Length": "282", + "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-d7eab3da7de9074180f69723e6f57835-1fc1853c5c3d0d41-00", - "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220829.1 (.NET Core 3.1.28; Microsoft Windows 10.0.22000)", - "x-ms-client-request-id": "2f53972db13a1676b62485385d80dbc5", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-335cfe198095e147-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ca4422cd4fd3cc32be01b006695f9977", "x-ms-return-client-request-id": "true" }, - "RequestBody": [ - "\u001F\uFFFD\b\u0000\u0000\u0000\u0000\u0000\u0000\n", - "\uFFFD\uFFFD;\n", - "\uFFFD0\u0010E\u047DLm\uFFFD\uFFFDH\uFFFD\u003E]\uFFFD\u0016\uFFFD\u0019\u0015\u0001\uFFFD\u0010\uFFFDV\b\n", - "\u0004\uFFFD\uFFFDn\uFFFDH7\uFFFDt\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u000F\uFFFD\uFFFDf\uFFFD@H\u0523\uFD5A\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0060\uFFFD\u000B\uFFFDA\u0007c]_\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD?\uFFFD\uFFFD\uFFFDe)\uFFFD\uFFFD\uFFFD\uFFFD\u001C\uFFFD\uFFFD\uFFFDA\uFFFD=u\u0002U\uD969\uDCA9\u012B$S5\uFFFDj\uFFFDjx\uFFFD\uFFFDT\u02EBV\uFFFD\u000E\uFFFD:\uFFFD\uFFFD\u002B3\uFFFD\uFFFD\uFFFD\uFFFDW\uFFFDL\r", - "\uFFFD\u001A\uFFFD\uFFFD\u000E\u0000\u0000\u0000\uFFFD\uFFFD" - ], + "RequestBody": "[[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer0\u0022,\u0022AdditionalContext\u0022:0}],]", "StatusCode": 204, "ResponseHeaders": { - "Date": "Wed, 31 Aug 2022 22:03:59 GMT", + "Date": "Fri, 23 Sep 2022 19:09:48 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "2f53972d-b13a-1676-b624-85385d80dbc5", - "x-ms-request-id": "5040909b-dc4b-4386-bced-38d8bc672ec4" + "x-ms-client-request-id": "ca4422cd-4fd3-cc32-be01-b006695f9977", + "x-ms-request-id": "f377bd5f-c7ae-46d3-940e-7939048eac1e" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-5bf94944bd739b4b-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ee527113d307e6d8d5063d666a204ba2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer1\u0022,\u0022AdditionalContext\u0022:1}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:49 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ee527113-d307-e6d8-d506-3d666a204ba2", + "x-ms-request-id": "fe4f6b55-d195-4be7-beb2-7f402cac75e3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-329b9e211ee73f4c-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1727a7bc0df147d3913be85c4ad860c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer2\u0022,\u0022AdditionalContext\u0022:2}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:49 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1727a7bc-0df1-47d3-913b-e85c4ad860c2", + "x-ms-request-id": "a0a2a116-ee8e-4ccf-8656-3ea86ddaf89a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-35579f4c1876d84e-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3257907c6af7f9a14a5df5cd12cc629d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer3\u0022,\u0022AdditionalContext\u0022:3}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:49 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3257907c-6af7-f9a1-4a5d-f5cd12cc629d", + "x-ms-request-id": "4108c1e1-8b7d-42b6-85dd-29e41fc4e7ca" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-730afc24a16f2d46-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "c2490eb5813705859e0a5cccea7b9bfc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer4\u0022,\u0022AdditionalContext\u0022:4}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:49 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "c2490eb5-8137-0585-9e0a-5cccea7b9bfc", + "x-ms-request-id": "461dedae-cef5-4f7e-b8e1-593c53fa5e60" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-068e4f4d883fa04a-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "d9ea7aa519c852aa052dcc93180635c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer5\u0022,\u0022AdditionalContext\u0022:5}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:49 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "d9ea7aa5-19c8-52aa-052d-cc93180635c5", + "x-ms-request-id": "4d9c0295-006a-453c-9699-f14254e16b1d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-c1eaab22af19684d-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "3ca74ad89d8efa8b0a5293ec0ed50fcf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer6\u0022,\u0022AdditionalContext\u0022:6}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "3ca74ad8-9d8e-fa8b-0a52-93ec0ed50fcf", + "x-ms-request-id": "31b148a7-9cc1-4ac7-bb7d-6a9b66716b75" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-d504db73bbb7894e-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9727f8c289e19cd563f7bd09b5f2ed97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer7\u0022,\u0022AdditionalContext\u0022:7}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9727f8c2-89e1-9cd5-63f7-bd09b5f2ed97", + "x-ms-request-id": "168482f8-4220-4ae9-a127-72b368e40349" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-4d5bb97c96d2b84e8c542ee135e7d522-7046258fcede4c4c-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "9ff397d55fd4076deff0ce7685be4330", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:51.2482092\u0022,\u0022Computer\u0022:\u0022Computer8\u0022,\u0022AdditionalContext\u0022:8}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "9ff397d5-5fd4-076d-eff0-ce7685be4330", + "x-ms-request-id": "76b6adfa-2d1b-4f68-93fe-c636c69ec78a" }, "ResponseBody": null } @@ -36,7 +222,7 @@ "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", - "DateTimeOffsetNow": "2022-08-31T15:03:58.9547977-07:00", - "RandomSeed": "1237712489" + "DateTimeOffsetNow": "2022-09-23T12:09:51.2482092-07:00", + "RandomSeed": "502126333" } } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzipAsync.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzipAsync.json index 296f268cd763b..7bfeded7fb4b2 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzipAsync.json +++ b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromArrayAsJsonWithSingleBatchWithGzipAsync.json @@ -7,26 +7,212 @@ "Accept": "application/json", "Authorization": "Sanitized", "Content-Encoding": "gzip", - "Content-Length": "249", + "Content-Length": "88", "Content-Type": "application/json", - "traceparent": "00-89470e15aaf3ba428eacd4e85873a01e-d5a5d669f8373c45-00", - "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220829.1 (.NET Core 3.1.28; Microsoft Windows 10.0.22000)", - "x-ms-client-request-id": "19dba835f04711cc68ce3c5fd2cbb480", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-52f643b6adc34047-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "75a64efa2c4a6c6f0add43b5e0757f38", "x-ms-return-client-request-id": "true" }, - "RequestBody": [ - "\u001F\uFFFD\b\u0000\u0000\u0000\u0000\u0000\u0000\n", - "\uFFFD\u033B\n", - "\uFFFD0\u0010\uFFFD\uFFFDw\uFFFDZe2I\u0325[|\u0005;I\uFFFD\u0060\uFFFD\uFFFDj\uFFFD%\uFFFD\uFFFD\u2EEF\uFFFD\uFFFDt\uFFFD\u001D~\u000E\u07F2\uFFFD\u0060.[\uFFFD\b\uFFFDD=\uFFFD^\uFFFDY\u0648\u0026\u0022\u000E\uFFFD\u0006\uFFFD\r", - "A\u0007S\uFFFD\uFFFDG\u02DF\uFFFDxO\uFFFD\uFFFDc]K\u002Bu\u007F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFDm\u0010\uFFFDL\uFFFD@U\uFFFD\uFFFDd*\uFFFD*\uFFFDT\u036BZ\uFFFD\u001A^52\uFFFD\uDA69\uDD69#\uFFFD\uFFFD2\uFFFD\uD969\uDCE9\uFFFDW\uFFFDL\r", - "\uFFFD\u001A\u0394\uFFFD\u0000\u0000\u0000\uFFFD\uFFFD" - ], + "RequestBody": "[[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer0\u0022,\u0022AdditionalContext\u0022:0}],]", "StatusCode": 204, "ResponseHeaders": { - "Date": "Wed, 31 Aug 2022 22:04:00 GMT", + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "19dba835-f047-11cc-68ce-3c5fd2cbb480", - "x-ms-request-id": "3eaca68d-f4e9-4513-938d-233ab3e29f35" + "x-ms-client-request-id": "75a64efa-2c4a-6c6f-0add-43b5e0757f38", + "x-ms-request-id": "4a33ea24-ff04-4921-8568-2c8fa000af21" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-2e7136804aeb1b44-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "477abf89e836db7acd8707969dc7a4da", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer1\u0022,\u0022AdditionalContext\u0022:1}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "477abf89-e836-db7a-cd87-07969dc7a4da", + "x-ms-request-id": "d88714df-f319-4174-92f9-aced9587808b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-174cf32055cb8041-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "12ca84b76b0fdc5a49480763fc0830cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer2\u0022,\u0022AdditionalContext\u0022:2}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "12ca84b7-6b0f-dc5a-4948-0763fc0830cd", + "x-ms-request-id": "fc267812-5f21-4825-95c3-66194e432e2a" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-4ed3483117534447-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "a8960512058e1151d3cba7c324d8ce42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer3\u0022,\u0022AdditionalContext\u0022:3}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "a8960512-058e-1151-d3cb-a7c324d8ce42", + "x-ms-request-id": "0ffa645d-f4c7-4892-8e95-5aca05b1fec4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-eb9a9ddb7d799f48-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "5cfe69396dab1d28649dfdeee017dec5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer4\u0022,\u0022AdditionalContext\u0022:4}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:50 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "5cfe6939-6dab-1d28-649d-fdeee017dec5", + "x-ms-request-id": "a2ec3d5e-a29f-49bb-8ba5-7cc2870f36a4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-3f14a52a6d112f4f-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "97843a57fb30b14b32b83f44c397b771", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer5\u0022,\u0022AdditionalContext\u0022:5}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "97843a57-fb30-b14b-32b8-3f44c397b771", + "x-ms-request-id": "76596123-9a88-4306-ab22-0715b050c79d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-46b6b57deb66854d-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "932ac57ad309a421dd7844f0086330bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer6\u0022,\u0022AdditionalContext\u0022:6}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "932ac57a-d309-a421-dd78-44f0086330bc", + "x-ms-request-id": "eba631d5-d3c5-49d3-9bb2-3db61ae96266" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-0acb3bdc64f3554c-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "ea6be2ec36543d111e4c2af32ee35acc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer7\u0022,\u0022AdditionalContext\u0022:7}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:51 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "ea6be2ec-3654-3d11-1e4c-2af32ee35acc", + "x-ms-request-id": "9df87cbb-9078-4ce3-8894-45b850335f6b" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Encoding": "gzip", + "Content-Length": "86", + "Content-Type": "application/json", + "traceparent": "00-ba704cd93135eb49a8d0926b0e49fe1d-7c74a6442b3b4c4b-00", + "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220923.1 (.NET Core 3.1.29; Microsoft Windows 10.0.22621)", + "x-ms-client-request-id": "1b738ce64bed84bb18dfbab7b75aa9cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": "[{\u0022Time\u0022:\u00222022-09-23T12:09:52.7696375\u0022,\u0022Computer\u0022:\u0022Computer8\u0022,\u0022AdditionalContext\u0022:8}]]", + "StatusCode": 204, + "ResponseHeaders": { + "Date": "Fri, 23 Sep 2022 19:09:52 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "x-ms-client-request-id": "1b738ce6-4bed-84bb-18df-bab7b75aa9cf", + "x-ms-request-id": "79229780-7e7b-4ec0-b589-a4eceffab41f" }, "ResponseBody": null } @@ -36,7 +222,7 @@ "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", - "DateTimeOffsetNow": "2022-08-31T15:04:00.7594842-07:00", - "RandomSeed": "1879437609" + "DateTimeOffsetNow": "2022-09-23T12:09:52.7696375-07:00", + "RandomSeed": "455826279" } } diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsync.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsync.json deleted file mode 100644 index 425a54edb58ce..0000000000000 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsync.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Encoding": "gzip", - "Content-Length": "165", - "Content-Type": "application/json", - "traceparent": "00-6dc0330ab3fc7748acfc1cee3aea1b5a-4148cc152b05054d-00", - "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220829.1 (.NET Core 3.1.28; Microsoft Windows 10.0.22000)", - "x-ms-client-request-id": "9c9d45ee7184a59cda895e4a64a20470", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": [ - "\u001F\uFFFD\b\u0000\u0000\u0000\u0000\u0000\u0000\n", - "\uFFFD\uFFFDV\n", - "\uFFFD\uFFFDMU\uFFFDR2202\uFFFD5\uFFFD\uFFFD56\f14\uFFFD20\uFFFD20\uFFFD3166003W\uFFFDQr\uFFFD\uFFFD-(-I-\u0002*\uFFFD1\r", - "\uFFFD\u008E))\uFFFD%\uFFFD\uFFFDy\uFFFD9\uFFFD\uFFFDy%\uFFFD\u0015%JVF\uFFFD:\uFFFDi\uFFFD\uFFFDL\uFFFD\uFFFDX\u0000\u0000\u0000\u0000\uFFFD\uFFFD" - ], - "StatusCode": 204, - "ResponseHeaders": { - "Date": "Wed, 31 Aug 2022 22:03:59 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "9c9d45ee-7184-a59c-da89-5e4a64a20470", - "x-ms-request-id": "88502ceb-a343-4bbc-b0f7-de719ea68e6e" - }, - "ResponseBody": null - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": null, - "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", - "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", - "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", - "DateTimeOffsetNow": "2022-08-31T15:04:00.4330067-07:00", - "RandomSeed": "1884507666" - } -} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsyncAsync.json b/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsyncAsync.json deleted file mode 100644 index 12cb3ffe6040d..0000000000000 --- a/sdk/monitor/Azure.Monitor.Ingestion/tests/SessionRecords/MonitorIngestionLiveTest/ValidInputFromObjectAsJsonNoBatchingAsyncAsync.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com/dataCollectionRules/dcr-981bcfe0506f41f5b5168f3368499cfa/streams/Custom-MyTableRawData?api-version=2021-11-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Encoding": "gzip", - "Content-Length": "169", - "Content-Type": "application/json", - "traceparent": "00-764ffcd90b48a94ebea5a6f50f1713be-016616516f606544-00", - "User-Agent": "azsdk-net-Monitor.Ingestion/1.0.0-alpha.20220829.1 (.NET Core 3.1.28; Microsoft Windows 10.0.22000)", - "x-ms-client-request-id": "f31d755bc8e36cf078144cd49dd4d580", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": [ - "\u001F\uFFFD\b\u0000\u0000\u0000\u0000\u0000\u0000\n", - "\uFFFD\uFFFDV\n", - "\uFFFD\uFFFDMU\uFFFDR2202\uFFFD5\uFFFD\uFFFD56\f14\uFFFD20\uFFFD20\uFFFD3\uFFFD4\uFFFD07S\uFFFDQr\uFFFD\uFFFD-(-I-\u0002\uFFFD\uFFFD1\r", - "\uFFFD\u008E))\uFFFD%\uFFFD\uFFFDy\uFFFD9\uFFFD\uFFFDy%\uFFFD\u0015%JVF\uFFFD:d\u001Bi\uFFFD\uFFFDH\uFFFD\uFFFDX\u0000\u0000\u0000\u0000\uFFFD\uFFFD" - ], - "StatusCode": 204, - "ResponseHeaders": { - "Date": "Wed, 31 Aug 2022 22:04:00 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "x-ms-client-request-id": "f31d755b-c8e3-6cf0-7814-4cd49dd4d580", - "x-ms-request-id": "719067d3-89fc-452e-aed6-0f95c89f53f6" - }, - "ResponseBody": null - } - ], - "Variables": { - "AZURE_AUTHORITY_HOST": null, - "AZURE_MONITOR_INGESTION_DATA_COLLECTION_ENDPOINT": "https://nibhati-dce-final-vhac.westus2-1.ingest.monitor.azure.com", - "AZURE_MONITOR_INGESTION_LOGS_DCR_RULE_ID": "dcr-981bcfe0506f41f5b5168f3368499cfa", - "AZURE_MONITOR_INGESTION_LOGS_DCR_STREAM_NAME": "Custom-MyTableRawData", - "DateTimeOffsetNow": "2022-08-31T15:04:01.0958760-07:00", - "RandomSeed": "1028301772" - } -}