From 7f9ea76577581445fa6194e403f5fc111130c342 Mon Sep 17 00:00:00 2001 From: Caio Saldanha Date: Fri, 4 Jun 2021 04:00:09 -0700 Subject: [PATCH] [MetricsAdvisor] Fixed UpdateAlertConfiguration methods (#21514) --- .../Azure.AI.MetricsAdvisor/CHANGELOG.md | 1 + .../Azure.AI.MetricsAdvisor.netstandard2.0.cs | 14 +- .../src/MetricsAdvisorAdministrationClient.cs | 19 +- .../MetricAnomalyAlertConfiguration.cs | 4 +- .../Models/AlertTriggering/TopNGroupScope.cs | 6 +- .../AnomalyAlertConfigurationLiveTests.cs | 9 +- ...ationWithMultipleMetricConfigurations.json | 98 +++--- ...WithMultipleMetricConfigurationsAsync.json | 98 +++--- ...ionalSingleMetricConfigurationMembers.json | 160 ++++----- ...SingleMetricConfigurationMembersAsync.json | 160 ++++----- ...lertConfigurationWithSeriesGroupScope.json | 86 +++-- ...onfigurationWithSeriesGroupScopeAsync.json | 86 +++-- ...AndGetAlertConfigurationWithTopNScope.json | 86 +++-- ...tAlertConfigurationWithTopNScopeAsync.json | 86 +++-- ...figurationWithWholeSeriesScope(False).json | 86 +++-- ...ationWithWholeSeriesScope(False)Async.json | 86 +++-- ...nfigurationWithWholeSeriesScope(True).json | 86 +++-- ...rationWithWholeSeriesScope(True)Async.json | 86 +++-- .../DeleteAlertConfiguration(False).json | 83 ++--- .../DeleteAlertConfiguration(False)Async.json | 81 ++--- .../DeleteAlertConfiguration(True).json | 83 ++--- .../DeleteAlertConfiguration(True)Async.json | 83 ++--- ...gurationWithEveryMemberAndGetInstance.json | 274 +++++++++------- ...ionWithEveryMemberAndGetInstanceAsync.json | 274 +++++++++------- ...WithMinimumSetupAndGetInstance(False).json | 310 +++++++++--------- ...inimumSetupAndGetInstance(False)Async.json | 310 +++++++++--------- ...nWithMinimumSetupAndGetInstance(True).json | 310 +++++++++--------- ...MinimumSetupAndGetInstance(True)Async.json | 310 +++++++++--------- .../GetAnomaliesWithMinimumSetup(False).json | 12 +- ...AnomaliesWithMinimumSetup(False)Async.json | 12 +- .../GetAnomaliesWithMinimumSetup(True).json | 12 +- ...tAnomaliesWithMinimumSetup(True)Async.json | 12 +- ...imensionValuesWithMinimumSetup(False).json | 22 +- ...ionValuesWithMinimumSetup(False)Async.json | 22 +- ...DimensionValuesWithMinimumSetup(True).json | 22 +- ...sionValuesWithMinimumSetup(True)Async.json | 22 +- .../GetMetricEnrichedSeriesData(False).json | 12 +- ...tMetricEnrichedSeriesData(False)Async.json | 12 +- .../GetMetricEnrichedSeriesData(True).json | 12 +- ...etMetricEnrichedSeriesData(True)Async.json | 12 +- ...hOptionalDetectionConfigurationFilter.json | 36 +- ...onalDetectionConfigurationFilterAsync.json | 36 +- 42 files changed, 1792 insertions(+), 1839 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md index 96e9541fd1ffb..c1ecdc81715cb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md @@ -10,6 +10,7 @@ - Added setters to models that use the Update APIs to make updating easier. ### Breaking Changes +- Update methods will now return the updated entity instead of an empty response. For example, `UpdateDataFeed` now returns a `Response`. - `NotificationHook.ExternalLink` and `WebNotificationHook.Endpoint` are now of type `Uri`. - Removed setter from `GetIncidentsForDetectionConfigurationOptions.DimensionsToFilter`. Elements can be added directly to it without user instantiation. - Renamed all `SkipCount` listing options to `Skip`. Affected classes include `GetAlertsOptions`, `GetDataFeedsOptions`, `GetHooksOptions`, and others. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs index 8231aa1318270..9c7a4c71929b1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs @@ -293,8 +293,8 @@ public MetricsAdvisorAdministrationClient(System.Uri endpoint, Azure.Core.TokenC public virtual Azure.AsyncPageable GetHooksAsync(Azure.AI.MetricsAdvisor.Administration.GetHooksOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RefreshDataFeedIngestion(string dataFeedId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task RefreshDataFeedIngestionAsync(string dataFeedId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response UpdateAlertConfiguration(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAlertConfigurationAsync(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateAlertConfiguration(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAlertConfigurationAsync(string alertConfigurationId, Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UpdateDataFeed(string dataFeedId, Azure.AI.MetricsAdvisor.Models.DataFeed dataFeed, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task UpdateDataFeedAsync(string dataFeedId, Azure.AI.MetricsAdvisor.Models.DataFeed dataFeed, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UpdateDatasourceCredential(Azure.AI.MetricsAdvisor.Models.DatasourceCredential datasourceCredential, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -915,9 +915,9 @@ public partial class MetricAnomalyAlertConfiguration { public MetricAnomalyAlertConfiguration(string detectionConfigurationId, Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertScope alertScope) { } public Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertConditions AlertConditions { get { throw null; } set { } } - public Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertScope AlertScope { get { throw null; } } + public Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertScope AlertScope { get { throw null; } set { } } public Azure.AI.MetricsAdvisor.Models.MetricAnomalyAlertSnoozeCondition AlertSnoozeCondition { get { throw null; } set { } } - public string DetectionConfigurationId { get { throw null; } } + public string DetectionConfigurationId { get { throw null; } set { } } public bool? UseDetectionResultToFilterAnomalies { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1161,9 +1161,9 @@ public SuppressCondition(int minimumNumber, double minimumRatio) { } public partial class TopNGroupScope { public TopNGroupScope(int top, int period, int minimumTopCount) { } - public int MinimumTopCount { get { throw null; } } - public int Period { get { throw null; } } - public int Top { get { throw null; } } + public int MinimumTopCount { get { throw null; } set { } } + public int Period { get { throw null; } set { } } + public int Top { get { throw null; } set { } } } public partial class WebNotificationHook : Azure.AI.MetricsAdvisor.Models.NotificationHook { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs index 06d20f574f9de..2c540c55c0b2c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs @@ -1201,13 +1201,13 @@ public virtual Response CreateAlertConfiguration(Anom /// The containing the updates. /// A controlling the request lifetime. /// - /// A containing the result of the operation. + /// A containing the result of the operation. The result is an + /// instance containing information about the updated configuration. /// /// or is null. /// is empty or not a valid GUID. - public virtual async Task UpdateAlertConfigurationAsync(string alertConfigurationId, AnomalyAlertConfiguration alertConfiguration, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAlertConfigurationAsync(string alertConfigurationId, AnomalyAlertConfiguration alertConfiguration, CancellationToken cancellationToken = default) { - /* Guid alertConfigurationGuid = ClientCommon.ValidateGuid(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNull(alertConfiguration, nameof(alertConfiguration)); if (!string.IsNullOrEmpty(alertConfiguration.Id) && !alertConfigurationId.Equals(alertConfiguration.Id, StringComparison.OrdinalIgnoreCase)) @@ -1228,10 +1228,6 @@ public virtual async Task UpdateAlertConfigurationAsync(string alertCo scope.Failed(e); throw; } - */ - - await Task.CompletedTask.ConfigureAwait(false); - return default; } /// @@ -1241,13 +1237,13 @@ public virtual async Task UpdateAlertConfigurationAsync(string alertCo /// The containing the updates. /// A controlling the request lifetime. /// - /// A containing the result of the operation. + /// A containing the result of the operation. The result is an + /// instance containing information about the updated configuration. /// /// or is null. /// is empty or not a valid GUID. - public virtual Response UpdateAlertConfiguration(string alertConfigurationId, AnomalyAlertConfiguration alertConfiguration, CancellationToken cancellationToken = default) + public virtual Response UpdateAlertConfiguration(string alertConfigurationId, AnomalyAlertConfiguration alertConfiguration, CancellationToken cancellationToken = default) { - /* Guid alertConfigurationGuid = ClientCommon.ValidateGuid(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNull(alertConfiguration, nameof(alertConfiguration)); if (!string.IsNullOrEmpty(alertConfiguration.Id) && !alertConfigurationId.Equals(alertConfiguration.Id, StringComparison.OrdinalIgnoreCase)) @@ -1268,9 +1264,6 @@ public virtual Response UpdateAlertConfiguration(string alertConfigurationId, An scope.Failed(e); throw; } - */ - - return default; } /// diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/MetricAnomalyAlertConfiguration.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/MetricAnomalyAlertConfiguration.cs index ae33ae90e04e2..dd47f65429d39 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/MetricAnomalyAlertConfiguration.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/MetricAnomalyAlertConfiguration.cs @@ -47,12 +47,12 @@ internal MetricAnomalyAlertConfiguration(string detectionConfigurationId, Metric /// The identifier of the anomaly detection configuration to which this configuration applies. /// [CodeGenMember("AnomalyDetectionConfigurationId")] - public string DetectionConfigurationId { get; } + public string DetectionConfigurationId { get; set; } /// /// Selects which set of time series should trigger alerts. /// - public MetricAnomalyAlertScope AlertScope { get; } + public MetricAnomalyAlertScope AlertScope { get; set; } /// /// If defined, this won't trigger alerts by itself. It diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/TopNGroupScope.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/TopNGroupScope.cs index 71a2b359e1d6d..495bfbdf99d7e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/TopNGroupScope.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AlertTriggering/TopNGroupScope.cs @@ -31,17 +31,17 @@ public TopNGroupScope(int top, int period, int minimumTopCount) /// /// The number of timestamps to take into account. /// - public int Top { get; } + public int Top { get; set; } /// /// The number of items a period contains. /// - public int Period { get; } + public int Period { get; set; } /// /// The number of anomalies that must be in the specified number of timestamps to send an alert. /// [CodeGenMember("MinTopCount")] - public int MinimumTopCount { get; } + public int MinimumTopCount { get; set; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 1421e79f59b0a..b03279b7232f4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -351,7 +351,6 @@ public async Task CreateAndGetAlertConfigurationWithMultipleMetricConfigurations [RecordedTest] [TestCase(true)] [TestCase(false)] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/21177")] public async Task UpdateAlertConfigurationWithMinimumSetupAndGetInstance(bool useTokenCrendential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCrendential); @@ -359,7 +358,8 @@ public async Task UpdateAlertConfigurationWithMinimumSetupAndGetInstance(bool us // Configure the Metric Anomaly Alert Configurations to be used. string hookName = Recording.GenerateAlphaNumericId("hook"); - var hookToCreate = new WebNotificationHook() { Name = hookName, Endpoint = new Uri("http://contoso.com/") }; + var hookToCreate = new EmailNotificationHook() { Name = hookName, EmailsToAlert = { "fake@email.com" } }; + await using var disposableHook = await DisposableNotificationHook.CreateHookAsync(adminClient, hookToCreate); var scope = MetricAnomalyAlertScope.GetScopeForWholeSeries(); @@ -387,7 +387,6 @@ public async Task UpdateAlertConfigurationWithMinimumSetupAndGetInstance(bool us string configName = Recording.GenerateAlphaNumericId("config"); var hookIds = new List() { disposableHook.Id }; - var metricAlertConfigs = new List() { metricAlertConfig0, metricAlertConfig1 }; var configToCreate = new AnomalyAlertConfiguration() { @@ -582,7 +581,6 @@ public async Task UpdateAlertConfigurationWithMinimumSetupAndNewInstance() } [RecordedTest] - [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/21177")] public async Task UpdateAlertConfigurationWithEveryMemberAndGetInstance() { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); @@ -590,7 +588,8 @@ public async Task UpdateAlertConfigurationWithEveryMemberAndGetInstance() // Configure the Metric Anomaly Alert Configurations to be used. string hookName = Recording.GenerateAlphaNumericId("hook"); - var hookToCreate = new WebNotificationHook() { Name = hookName, Endpoint = new Uri("http://contoso.com/") }; + var hookToCreate = new EmailNotificationHook() { Name = hookName, EmailsToAlert = { "fake@email.com" } }; + await using var disposableHook = await DisposableNotificationHook.CreateHookAsync(adminClient, hookToCreate); var scope = MetricAnomalyAlertScope.GetScopeForWholeSeries(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurations.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurations.json index 34e4be8f29eec..3659154d94807 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurations.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurations.json @@ -8,11 +8,8 @@ "Content-Length": "415", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ec5d509ab279b54e9604fafda4d478ab-40b14e558895d441-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-cf7982a192dc154ab6e3f82217a9a505-38f7a791cab2934c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "0bd7bcf3a83a0bef03cdc015db3f9a65", "x-ms-return-client-request-id": "true" @@ -43,28 +40,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "0ebca538-6862-4ef0-bc17-650a3e245495", + "apim-request-id": "0ce263aa-e65e-422c-8c58-0b6c912a3b79", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:27 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c1648595-393f-4770-8ad5-7d56b1400718", + "Date": "Fri, 04 Jun 2021 10:25:36 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e306c0d8-3784-43c6-988c-29bb039f0619", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "310", - "X-Request-ID": "0ebca538-6862-4ef0-bc17-650a3e245495" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "180", + "x-request-id": "0ce263aa-e65e-422c-8c58-0b6c912a3b79" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c1648595-393f-4770-8ad5-7d56b1400718", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e306c0d8-3784-43c6-988c-29bb039f0619", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ec5d509ab279b54e9604fafda4d478ab-9d4161c76e6e1249-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-cf7982a192dc154ab6e3f82217a9a505-b34a11a731031a4c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "1b99e95263bf7c8b16b41db9fef765a1", "x-ms-return-client-request-id": "true" @@ -72,20 +66,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "39bcac45-3761-4607-9762-3a4f6aa1183c", - "Content-Length": "586", + "apim-request-id": "6f4ba23d-dfaf-4c20-8341-e6341ca7c8f7", + "Content-Length": "644", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:27 GMT", + "Date": "Fri, 04 Jun 2021 10:25:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "253", - "X-Request-ID": "39bcac45-3761-4607-9762-3a4f6aa1183c" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "133", + "x-request-id": "6f4ba23d-dfaf-4c20-8341-e6341ca7c8f7" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "c1648595-393f-4770-8ad5-7d56b1400718", + "anomalyAlertingConfigurationId": "e306c0d8-3784-43c6-988c-29bb039f0619", "name": "configRUbHcTl2", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -95,7 +90,8 @@ "valueFilter": { "upper": 20.0, "direction": "Up", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -105,23 +101,21 @@ "valueFilter": { "lower": 10.0, "direction": "Down", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } } ] } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c1648595-393f-4770-8ad5-7d56b1400718", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e306c0d8-3784-43c6-988c-29bb039f0619", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f573c7504149a74bb3f6f44618490f77-1b232ae0c1cca144-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6a0facda07b4304fb62865fe44fb55bc-02831fa377dcb248-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "922cfe452c5ed4e78f2a22a55492480a", "x-ms-return-client-request-id": "true" @@ -129,20 +123,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "54ac5f79-db2a-4644-b607-a71ee60148e0", - "Content-Length": "586", + "apim-request-id": "199f2ee9-e30b-4d3b-a13b-57bd8f1a30b5", + "Content-Length": "644", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:31 GMT", + "Date": "Fri, 04 Jun 2021 10:25:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3733", - "X-Request-ID": "54ac5f79-db2a-4644-b607-a71ee60148e0" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "119", + "x-request-id": "199f2ee9-e30b-4d3b-a13b-57bd8f1a30b5" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "c1648595-393f-4770-8ad5-7d56b1400718", + "anomalyAlertingConfigurationId": "e306c0d8-3784-43c6-988c-29bb039f0619", "name": "configRUbHcTl2", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -152,7 +147,8 @@ "valueFilter": { "upper": 20.0, "direction": "Up", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -162,23 +158,21 @@ "valueFilter": { "lower": 10.0, "direction": "Down", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } } ] } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c1648595-393f-4770-8ad5-7d56b1400718", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e306c0d8-3784-43c6-988c-29bb039f0619", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-baa5b97bd27d734b87ede5a84196463b-36df7bd7ebda8748-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-17247b6dccb63d4d9d20652739452651-e543aa6d8cc14f4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "1f8c5904f60c9000305af4868a360d0c", "x-ms-return-client-request-id": "true" @@ -186,13 +180,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "893c0ddc-c316-4b34-8ab2-c7f5e03bb903", + "apim-request-id": "4f870177-c1d1-44b2-96b8-8a792e62fcdc", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:31 GMT", + "Date": "Fri, 04 Jun 2021 10:25:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "138", - "X-Request-ID": "893c0ddc-c316-4b34-8ab2-c7f5e03bb903" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "151", + "x-request-id": "4f870177-c1d1-44b2-96b8-8a792e62fcdc" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurationsAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurationsAsync.json index d17045250f773..4caba398b60b2 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurationsAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithMultipleMetricConfigurationsAsync.json @@ -8,11 +8,8 @@ "Content-Length": "415", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c4c32d22b1d29645b2973e5dd5190ad2-c36afe13fa45c74e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-34dc1301a7304d4580004882392feab7-7d1049fcf48c514a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "9c53efbbd99947cdf9cbfa628f01f571", "x-ms-return-client-request-id": "true" @@ -43,28 +40,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "705025c8-c71b-4def-b76c-c4a80c6e5d40", + "apim-request-id": "1583c334-a915-43b2-adbe-4e758dababba", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:59 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3394e032-9777-4c82-89f1-29aa010ef577", + "Date": "Fri, 04 Jun 2021 10:26:44 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/6d05291f-9b40-4adb-b99f-a1e1f5703719", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "126", - "X-Request-ID": "705025c8-c71b-4def-b76c-c4a80c6e5d40" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "150", + "x-request-id": "1583c334-a915-43b2-adbe-4e758dababba" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3394e032-9777-4c82-89f1-29aa010ef577", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/6d05291f-9b40-4adb-b99f-a1e1f5703719", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c4c32d22b1d29645b2973e5dd5190ad2-4d4d794f99374f41-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-34dc1301a7304d4580004882392feab7-0407b9fa3f070e4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "4d52fdfaf7a88a9e2977f5270179bf77", "x-ms-return-client-request-id": "true" @@ -72,20 +66,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0f406827-4848-419f-96c4-230720cd4211", - "Content-Length": "586", + "apim-request-id": "b6572d9f-1899-4ff4-983f-a2e3ea6e6e69", + "Content-Length": "644", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:59 GMT", + "Date": "Fri, 04 Jun 2021 10:26:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "X-Request-ID": "0f406827-4848-419f-96c4-230720cd4211" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "106", + "x-request-id": "b6572d9f-1899-4ff4-983f-a2e3ea6e6e69" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "3394e032-9777-4c82-89f1-29aa010ef577", + "anomalyAlertingConfigurationId": "6d05291f-9b40-4adb-b99f-a1e1f5703719", "name": "configtP7ePBS1", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -95,7 +90,8 @@ "valueFilter": { "upper": 20.0, "direction": "Up", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -105,23 +101,21 @@ "valueFilter": { "lower": 10.0, "direction": "Down", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } } ] } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3394e032-9777-4c82-89f1-29aa010ef577", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/6d05291f-9b40-4adb-b99f-a1e1f5703719", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-345843426b916b40a50faedb7c862f3f-2186cbbec74f224e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-9c6b93cec94e324abc158c15ee4c8022-de88b16457768747-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "49f336d7665629a5f7703d234871214a", "x-ms-return-client-request-id": "true" @@ -129,20 +123,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3ef600e0-32c8-4560-a445-11258c5c93a5", - "Content-Length": "586", + "apim-request-id": "c99e113e-d15c-4f12-9386-3e4a24f5990e", + "Content-Length": "644", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:59 GMT", + "Date": "Fri, 04 Jun 2021 10:26:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "88", - "X-Request-ID": "3ef600e0-32c8-4560-a445-11258c5c93a5" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "114", + "x-request-id": "c99e113e-d15c-4f12-9386-3e4a24f5990e" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "3394e032-9777-4c82-89f1-29aa010ef577", + "anomalyAlertingConfigurationId": "6d05291f-9b40-4adb-b99f-a1e1f5703719", "name": "configtP7ePBS1", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -152,7 +147,8 @@ "valueFilter": { "upper": 20.0, "direction": "Up", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -162,23 +158,21 @@ "valueFilter": { "lower": 10.0, "direction": "Down", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } } ] } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3394e032-9777-4c82-89f1-29aa010ef577", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/6d05291f-9b40-4adb-b99f-a1e1f5703719", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b765d5ea4cd1c345b490f42efd880384-9c7eaf78d10a6044-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-f3a638cd074d6543a364006e656ecbc4-ea0076da3661ea4a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "5004424d862ec34251c87221e4a5467f", "x-ms-return-client-request-id": "true" @@ -186,13 +180,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "1fc63aff-c228-4866-b25a-4fcbc966d8b4", + "apim-request-id": "44e7bbdd-365c-4081-a6c9-6909e21f0533", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:59 GMT", + "Date": "Fri, 04 Jun 2021 10:26:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "122", - "X-Request-ID": "1fc63aff-c228-4866-b25a-4fcbc966d8b4" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "160", + "x-request-id": "44e7bbdd-365c-4081-a6c9-6909e21f0533" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembers.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembers.json index b75a9dba83a4b..1e61c550a75ca 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembers.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembers.json @@ -8,8 +8,8 @@ "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-413f102f753a704792df94804ce607ad-88c2df3e3ab9e741-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-26d204c876d0e744b4ca2faba7ed03e9-4499a29be483124d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "6c2e4c3c49b1f0f9f6281f083be8def1", "x-ms-return-client-request-id": "true" @@ -25,25 +25,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "3ac8a576-0985-4f73-9376-9b9f3dfb4b95", + "apim-request-id": "6abf1bc0-2504-4588-b7ea-1a66a4492fea", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:22:49 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a8c00501-d80a-4886-86f9-1cc4cc2bd749", + "Date": "Fri, 04 Jun 2021 10:25:37 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/98a5557d-c480-4ad0-b726-a1878df900c4", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5441", - "x-request-id": "3ac8a576-0985-4f73-9376-9b9f3dfb4b95" + "x-envoy-upstream-service-time": "702", + "x-request-id": "6abf1bc0-2504-4588-b7ea-1a66a4492fea" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a8c00501-d80a-4886-86f9-1cc4cc2bd749", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/98a5557d-c480-4ad0-b726-a1878df900c4", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-413f102f753a704792df94804ce607ad-f7807d1f6948f94f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-26d204c876d0e744b4ca2faba7ed03e9-f818150a1fc2944f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "03ec1029e02f878bc06fdbc287833173", "x-ms-return-client-request-id": "true" @@ -51,17 +51,17 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4dd0b712-5e0b-43e9-affa-cce1eaa768a0", + "apim-request-id": "260fbd95-3fc8-46a2-8c6f-3b06235d6d3d", "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:22:49 GMT", + "Date": "Fri, 04 Jun 2021 10:25:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "255", - "x-request-id": "4dd0b712-5e0b-43e9-affa-cce1eaa768a0" + "x-envoy-upstream-service-time": "169", + "x-request-id": "260fbd95-3fc8-46a2-8c6f-3b06235d6d3d" }, "ResponseBody": { - "hookId": "a8c00501-d80a-4886-86f9-1cc4cc2bd749", + "hookId": "98a5557d-c480-4ad0-b726-a1878df900c4", "hookName": "hookVhcyeEA7", "hookType": "Email", "externalLink": "", @@ -84,8 +84,8 @@ "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0b2eff695e04d649af4937993d1c8f0a-55f74d414575b641-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-9076f54b84d38643abe9413125b28271-c6099d713a0e4f49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "15e82801f7d1f0ee5d870e895db36342", "x-ms-return-client-request-id": "true" @@ -101,25 +101,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "55e920b3-d93a-4c13-8ef1-c8f636fb580f", + "apim-request-id": "836ab3df-a395-4247-9041-173c4e399da7", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:22:50 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7f85762c-9a77-4554-8fbe-67b25989e6f4", + "Date": "Fri, 04 Jun 2021 10:25:38 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/846278d2-665c-4464-8626-5b14696afc12", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "365", - "x-request-id": "55e920b3-d93a-4c13-8ef1-c8f636fb580f" + "x-envoy-upstream-service-time": "507", + "x-request-id": "836ab3df-a395-4247-9041-173c4e399da7" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7f85762c-9a77-4554-8fbe-67b25989e6f4", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/846278d2-665c-4464-8626-5b14696afc12", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0b2eff695e04d649af4937993d1c8f0a-9d4d171c786b924e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-9076f54b84d38643abe9413125b28271-99327483508e284b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "097a556339675b8ac0a6ac426e376972", "x-ms-return-client-request-id": "true" @@ -127,17 +127,17 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6199ee95-6b21-4c90-8e8c-ddad817a692e", + "apim-request-id": "49fabe54-e445-4fcb-a10e-8c968e90dd7b", "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:22:50 GMT", + "Date": "Fri, 04 Jun 2021 10:25:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "197", - "x-request-id": "6199ee95-6b21-4c90-8e8c-ddad817a692e" + "x-envoy-upstream-service-time": "170", + "x-request-id": "49fabe54-e445-4fcb-a10e-8c968e90dd7b" }, "ResponseBody": { - "hookId": "7f85762c-9a77-4554-8fbe-67b25989e6f4", + "hookId": "846278d2-665c-4464-8626-5b14696afc12", "hookName": "hookgCRgOMal", "hookType": "Email", "externalLink": "", @@ -160,8 +160,8 @@ "Content-Length": "596", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8236eb2353aa6a4e9fc3e99b5fe26385-235a85922e49834b-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-90ef1f7c2670754ea9d4d69322a479a5-79605e0916e1394c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "a7a6fb2102d10c2a0b995e3109270bc8", "x-ms-return-client-request-id": "true" @@ -170,8 +170,8 @@ "name": "config3oyTAJJN", "description": "This hook was created to test the .NET client.", "hookIds": [ - "a8c00501-d80a-4886-86f9-1cc4cc2bd749", - "7f85762c-9a77-4554-8fbe-67b25989e6f4" + "98a5557d-c480-4ad0-b726-a1878df900c4", + "846278d2-665c-4464-8626-5b14696afc12" ], "metricAlertingConfigurations": [ { @@ -198,25 +198,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "a9d145ff-5f54-46a2-abae-36168982bef5", + "apim-request-id": "ed09349e-c4db-46fc-b3e3-0c1f6322535c", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:22:55 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/9be2c027-ac50-491e-987b-3262ee8ccc60", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a55aab3e-74b3-4d77-8669-100603e5d0b8", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5249", - "x-request-id": "a9d145ff-5f54-46a2-abae-36168982bef5" + "x-envoy-upstream-service-time": "199", + "x-request-id": "ed09349e-c4db-46fc-b3e3-0c1f6322535c" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/9be2c027-ac50-491e-987b-3262ee8ccc60", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a55aab3e-74b3-4d77-8669-100603e5d0b8", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8236eb2353aa6a4e9fc3e99b5fe26385-aac44b66810f154f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-90ef1f7c2670754ea9d4d69322a479a5-69f356156094b445-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "2b558d9dac4b25821e9c92b0ad504299", "x-ms-return-client-request-id": "true" @@ -224,23 +224,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8913026b-87ef-43eb-8770-d26836bbdcf0", + "apim-request-id": "7a70743f-84ef-405a-8f52-458181b48f3b", "Content-Length": "741", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:22:55 GMT", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "173", - "x-request-id": "8913026b-87ef-43eb-8770-d26836bbdcf0" + "x-envoy-upstream-service-time": "98", + "x-request-id": "7a70743f-84ef-405a-8f52-458181b48f3b" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "9be2c027-ac50-491e-987b-3262ee8ccc60", + "anomalyAlertingConfigurationId": "a55aab3e-74b3-4d77-8669-100603e5d0b8", "name": "config3oyTAJJN", "description": "This hook was created to test the .NET client.", "splitAlertByDimensions": [], "hookIds": [ - "7f85762c-9a77-4554-8fbe-67b25989e6f4", - "a8c00501-d80a-4886-86f9-1cc4cc2bd749" + "846278d2-665c-4464-8626-5b14696afc12", + "98a5557d-c480-4ad0-b726-a1878df900c4" ], "metricAlertingConfigurations": [ { @@ -269,13 +269,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/9be2c027-ac50-491e-987b-3262ee8ccc60", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a55aab3e-74b3-4d77-8669-100603e5d0b8", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6994e6f1740ffa458867ad228b093178-4d83313c09cac54c-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-810f85627e92ab48b5b83375223b8afc-878a1cd4c759e442-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "6be74936e292be8a7c9f36d4d83769cf", "x-ms-return-client-request-id": "true" @@ -283,23 +283,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3777cefd-de7b-46a6-bf15-ae76ceb2298e", + "apim-request-id": "df1f5aaf-00d6-4fad-bbe0-b1c8a374e2e6", "Content-Length": "741", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:23:02 GMT", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5198", - "x-request-id": "3777cefd-de7b-46a6-bf15-ae76ceb2298e" + "x-envoy-upstream-service-time": "100", + "x-request-id": "df1f5aaf-00d6-4fad-bbe0-b1c8a374e2e6" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "9be2c027-ac50-491e-987b-3262ee8ccc60", + "anomalyAlertingConfigurationId": "a55aab3e-74b3-4d77-8669-100603e5d0b8", "name": "config3oyTAJJN", "description": "This hook was created to test the .NET client.", "splitAlertByDimensions": [], "hookIds": [ - "7f85762c-9a77-4554-8fbe-67b25989e6f4", - "a8c00501-d80a-4886-86f9-1cc4cc2bd749" + "846278d2-665c-4464-8626-5b14696afc12", + "98a5557d-c480-4ad0-b726-a1878df900c4" ], "metricAlertingConfigurations": [ { @@ -328,13 +328,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/9be2c027-ac50-491e-987b-3262ee8ccc60", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a55aab3e-74b3-4d77-8669-100603e5d0b8", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-46bff2479ecc304a80081607a637285d-c6060c96f81e6145-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-365019093a0e954a85b532e57af73d80-6c4028c4051a9a48-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "72753ea1f37375e57980893570795fbb", "x-ms-return-client-request-id": "true" @@ -342,24 +342,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "46e27ff6-6cc3-4650-9e30-cbddb82c9c2c", + "apim-request-id": "5e01baa4-9940-43bb-aef8-ca873e84baa9", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:02 GMT", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "188", - "x-request-id": "46e27ff6-6cc3-4650-9e30-cbddb82c9c2c" + "x-envoy-upstream-service-time": "144", + "x-request-id": "5e01baa4-9940-43bb-aef8-ca873e84baa9" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7f85762c-9a77-4554-8fbe-67b25989e6f4", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/846278d2-665c-4464-8626-5b14696afc12", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-80beed9dc3e09b458b00988af468b39a-42e3cbe483f5cc47-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-f5f4dec856f79a46894012db342fc29e-4931e05c01ce0546-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "c0fbc4569f40bb350297aeab76ad4de7", "x-ms-return-client-request-id": "true" @@ -367,24 +367,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "07a53ea1-8fc8-4047-a114-0f2e5c4ddab2", + "apim-request-id": "02448a9d-3926-4c25-80c6-823a7ca93ba8", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:02 GMT", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "254", - "x-request-id": "07a53ea1-8fc8-4047-a114-0f2e5c4ddab2" + "x-envoy-upstream-service-time": "202", + "x-request-id": "02448a9d-3926-4c25-80c6-823a7ca93ba8" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a8c00501-d80a-4886-86f9-1cc4cc2bd749", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/98a5557d-c480-4ad0-b726-a1878df900c4", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9ddb5b8a20ebde48814a545bbad9cffe-3ff7a13fb4643443-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-f782094c8929e442905b46e5d2f958f1-3fb25cfdf865b84f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "6e0fc332cfda42266372f21258544e02", "x-ms-return-client-request-id": "true" @@ -392,13 +392,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "aafafb7b-c354-4b78-8420-8612b188bba4", + "apim-request-id": "2398b8ea-6a96-45c3-b880-f84586c1bec4", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:02 GMT", + "Date": "Fri, 04 Jun 2021 10:25:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "293", - "x-request-id": "aafafb7b-c354-4b78-8420-8612b188bba4" + "x-envoy-upstream-service-time": "183", + "x-request-id": "2398b8ea-6a96-45c3-b880-f84586c1bec4" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembersAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembersAsync.json index 8a18a00347c8b..1383715680aeb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembersAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithOptionalSingleMetricConfigurationMembersAsync.json @@ -8,8 +8,8 @@ "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c10f208cd9670a49b391dd2e47638770-315ee5321cc74248-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-cbe7479de4990f46a24ce7b965033040-e911f096ad433e4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "495704b88ec4916bd0f05e38f0568269", "x-ms-return-client-request-id": "true" @@ -25,25 +25,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "32b75ec3-6765-47b6-b103-5e24b8f82d2f", + "apim-request-id": "ea354e9a-760c-4316-8dd0-4670fecc12f4", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:08 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/33b31d3c-d62c-49fc-80e1-22345bcdcc4e", + "Date": "Fri, 04 Jun 2021 10:26:45 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/2c24a19d-aea2-440c-ad74-3eac5ef89135", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5381", - "x-request-id": "32b75ec3-6765-47b6-b103-5e24b8f82d2f" + "x-envoy-upstream-service-time": "618", + "x-request-id": "ea354e9a-760c-4316-8dd0-4670fecc12f4" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/33b31d3c-d62c-49fc-80e1-22345bcdcc4e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/2c24a19d-aea2-440c-ad74-3eac5ef89135", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c10f208cd9670a49b391dd2e47638770-c8fe8519bc9fde40-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-cbe7479de4990f46a24ce7b965033040-cf27dc5247d29445-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "cd50283ff6b9348d46029618c90c039e", "x-ms-return-client-request-id": "true" @@ -51,17 +51,17 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9a6d4807-7812-436e-b144-15fef603c8ac", + "apim-request-id": "f3b23cde-3e95-43d0-b647-e65ad88fb712", "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:23:09 GMT", + "Date": "Fri, 04 Jun 2021 10:26:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "301", - "x-request-id": "9a6d4807-7812-436e-b144-15fef603c8ac" + "x-envoy-upstream-service-time": "177", + "x-request-id": "f3b23cde-3e95-43d0-b647-e65ad88fb712" }, "ResponseBody": { - "hookId": "33b31d3c-d62c-49fc-80e1-22345bcdcc4e", + "hookId": "2c24a19d-aea2-440c-ad74-3eac5ef89135", "hookName": "hookV8Nrq89J", "hookType": "Email", "externalLink": "", @@ -84,8 +84,8 @@ "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9efee0e4d1c8ec4d9a2e4d7ec3ff7ba3-98e311178ba7234f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-f439b29e2c3560488a1863160d799416-7e6100af210bdc40-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "1cdf98d0872d3345a570091e3279930b", "x-ms-return-client-request-id": "true" @@ -101,25 +101,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "9ceea8b4-76ed-4d1e-90bc-c11f3db5b10a", + "apim-request-id": "5f0666bd-c15a-42aa-a06e-d28d27af0104", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:14 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d1ab81af-d985-4c9f-bd6f-6b32aabb9f43", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/8f2e028d-b340-4949-a02a-37be86588003", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5681", - "x-request-id": "9ceea8b4-76ed-4d1e-90bc-c11f3db5b10a" + "x-envoy-upstream-service-time": "586", + "x-request-id": "5f0666bd-c15a-42aa-a06e-d28d27af0104" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d1ab81af-d985-4c9f-bd6f-6b32aabb9f43", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/8f2e028d-b340-4949-a02a-37be86588003", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9efee0e4d1c8ec4d9a2e4d7ec3ff7ba3-339face07ea6ed49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-f439b29e2c3560488a1863160d799416-82573f7a763eb34d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "3066d198c508c184762203c2f752c8c4", "x-ms-return-client-request-id": "true" @@ -127,17 +127,17 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "76d9f34b-987e-4a67-ad7b-07e615b9236d", + "apim-request-id": "80bed311-4906-40ee-9336-870963eae934", "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:23:20 GMT", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5223", - "x-request-id": "76d9f34b-987e-4a67-ad7b-07e615b9236d" + "x-envoy-upstream-service-time": "181", + "x-request-id": "80bed311-4906-40ee-9336-870963eae934" }, "ResponseBody": { - "hookId": "d1ab81af-d985-4c9f-bd6f-6b32aabb9f43", + "hookId": "8f2e028d-b340-4949-a02a-37be86588003", "hookName": "hookghHUkSkB", "hookType": "Email", "externalLink": "", @@ -160,8 +160,8 @@ "Content-Length": "596", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-746f709949c41e45a9e2b44c9ef6177a-e5da5092aca6b14e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-9aedd9aa77a2d142ad1aae85da0b5119-93c0f517cf7d1a4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "49271de36feccc026e8a80f7a5d3960b", "x-ms-return-client-request-id": "true" @@ -170,8 +170,8 @@ "name": "configkH1QfClp", "description": "This hook was created to test the .NET client.", "hookIds": [ - "33b31d3c-d62c-49fc-80e1-22345bcdcc4e", - "d1ab81af-d985-4c9f-bd6f-6b32aabb9f43" + "2c24a19d-aea2-440c-ad74-3eac5ef89135", + "8f2e028d-b340-4949-a02a-37be86588003" ], "metricAlertingConfigurations": [ { @@ -198,25 +198,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "2c5fe744-1c53-451a-a3e4-da53fa6fbdf9", + "apim-request-id": "3af4adc4-e4ba-4d99-a2f2-6aad4412e452", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:21 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4c9f397d-12de-4753-9d75-bcade46a191c", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/8d13f047-861f-4b40-be9c-cc76e1ce0d31", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "172", - "x-request-id": "2c5fe744-1c53-451a-a3e4-da53fa6fbdf9" + "x-envoy-upstream-service-time": "179", + "x-request-id": "3af4adc4-e4ba-4d99-a2f2-6aad4412e452" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4c9f397d-12de-4753-9d75-bcade46a191c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/8d13f047-861f-4b40-be9c-cc76e1ce0d31", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-746f709949c41e45a9e2b44c9ef6177a-41c98012cef6e843-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-9aedd9aa77a2d142ad1aae85da0b5119-f0e86f05667bc143-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "0ba61d138383533ba7453273113b9431", "x-ms-return-client-request-id": "true" @@ -224,23 +224,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "af93f54d-0540-48c2-b103-01b804f3d2f3", + "apim-request-id": "7adb674c-1723-4da1-b731-a85958a5bd7d", "Content-Length": "741", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:23:21 GMT", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "112", - "x-request-id": "af93f54d-0540-48c2-b103-01b804f3d2f3" + "x-envoy-upstream-service-time": "99", + "x-request-id": "7adb674c-1723-4da1-b731-a85958a5bd7d" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "4c9f397d-12de-4753-9d75-bcade46a191c", + "anomalyAlertingConfigurationId": "8d13f047-861f-4b40-be9c-cc76e1ce0d31", "name": "configkH1QfClp", "description": "This hook was created to test the .NET client.", "splitAlertByDimensions": [], "hookIds": [ - "33b31d3c-d62c-49fc-80e1-22345bcdcc4e", - "d1ab81af-d985-4c9f-bd6f-6b32aabb9f43" + "2c24a19d-aea2-440c-ad74-3eac5ef89135", + "8f2e028d-b340-4949-a02a-37be86588003" ], "metricAlertingConfigurations": [ { @@ -269,13 +269,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4c9f397d-12de-4753-9d75-bcade46a191c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/8d13f047-861f-4b40-be9c-cc76e1ce0d31", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ce7fb9f499f65044a26d03e93eef57c2-ca3bed25bae8ef41-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-d04cc5f41aef3342a23e691df46a0627-cf6809c09b92bf41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "eb4dae963b9d07d41f37536dd1d01e19", "x-ms-return-client-request-id": "true" @@ -283,23 +283,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f69cbfed-55ac-4e7f-8515-d3fe31269784", + "apim-request-id": "f1ffd637-4ed5-4077-b815-2b8da976c726", "Content-Length": "741", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 04:23:26 GMT", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5256", - "x-request-id": "f69cbfed-55ac-4e7f-8515-d3fe31269784" + "x-envoy-upstream-service-time": "128", + "x-request-id": "f1ffd637-4ed5-4077-b815-2b8da976c726" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "4c9f397d-12de-4753-9d75-bcade46a191c", + "anomalyAlertingConfigurationId": "8d13f047-861f-4b40-be9c-cc76e1ce0d31", "name": "configkH1QfClp", "description": "This hook was created to test the .NET client.", "splitAlertByDimensions": [], "hookIds": [ - "33b31d3c-d62c-49fc-80e1-22345bcdcc4e", - "d1ab81af-d985-4c9f-bd6f-6b32aabb9f43" + "2c24a19d-aea2-440c-ad74-3eac5ef89135", + "8f2e028d-b340-4949-a02a-37be86588003" ], "metricAlertingConfigurations": [ { @@ -328,13 +328,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4c9f397d-12de-4753-9d75-bcade46a191c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/8d13f047-861f-4b40-be9c-cc76e1ce0d31", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-26b74c5218baa049a1a48d74e5e9ac94-09c08f253579dc4a-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-c2973d4a10c6d74982982ad050960c11-419e66ec13f3054b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "59445c282fbf5f34e2d3a1a73d8ebb33", "x-ms-return-client-request-id": "true" @@ -342,24 +342,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "c3c8c674-3c8b-4089-84e1-de692d393e49", + "apim-request-id": "aa1c1ce4-3bc0-4b59-88eb-7fb443c2336d", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:27 GMT", + "Date": "Fri, 04 Jun 2021 10:26:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "147", - "x-request-id": "c3c8c674-3c8b-4089-84e1-de692d393e49" + "x-envoy-upstream-service-time": "117", + "x-request-id": "aa1c1ce4-3bc0-4b59-88eb-7fb443c2336d" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/d1ab81af-d985-4c9f-bd6f-6b32aabb9f43", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/8f2e028d-b340-4949-a02a-37be86588003", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4ceb352e55082d43823afebc64cb3b19-d3827b23ea58b548-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-d3a0c7963863c84da614714c3b8742d5-c4b897a465a73c46-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "f7614ef6aa86d76e499feb4c30ce82d7", "x-ms-return-client-request-id": "true" @@ -367,24 +367,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "c0b9be6c-f4c4-4d7f-953d-906db50228d2", + "apim-request-id": "9e7f3d7b-8e2b-44f9-97a5-37587da50289", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:27 GMT", + "Date": "Fri, 04 Jun 2021 10:26:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "272", - "x-request-id": "c0b9be6c-f4c4-4d7f-953d-906db50228d2" + "x-envoy-upstream-service-time": "181", + "x-request-id": "9e7f3d7b-8e2b-44f9-97a5-37587da50289" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/33b31d3c-d62c-49fc-80e1-22345bcdcc4e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/2c24a19d-aea2-440c-ad74-3eac5ef89135", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5199d96c7f4b464894cc5a56eb942ae8-fa4749204088bf4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210601.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-0bfb038925fbff479e5dc20e49673ca4-a133fac460908343-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "b54a18263af666727aed09c99a2cc991", "x-ms-return-client-request-id": "true" @@ -392,13 +392,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "7fecdbe6-90a9-4301-8dfe-8b7f3350b2db", + "apim-request-id": "3c78e69d-07ac-480e-b954-24ec4dc1a799", "Content-Length": "0", - "Date": "Wed, 02 Jun 2021 04:23:32 GMT", + "Date": "Fri, 04 Jun 2021 10:26:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5261", - "x-request-id": "7fecdbe6-90a9-4301-8dfe-8b7f3350b2db" + "x-envoy-upstream-service-time": "195", + "x-request-id": "3c78e69d-07ac-480e-b954-24ec4dc1a799" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScope.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScope.json index 03edcbc2e95fe..483afcba8bf92 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScope.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScope.json @@ -8,11 +8,8 @@ "Content-Length": "232", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dfda9eb5a8a30e4dab0c1431330e38e3-9effd487cafb1546-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-676ddc2922962941abf54c9505faa2e1-0f64675950333a49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "b445f7e4ac579422b261a2b83c18cefc", "x-ms-return-client-request-id": "true" @@ -34,28 +31,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "85f6f9c5-3243-434a-9f8e-1c2edd99bbde", + "apim-request-id": "b7c4e82b-ccec-4d86-87e1-0b887c81682e", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:42 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "Date": "Fri, 04 Jun 2021 10:25:40 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/0dc5027f-5a1e-42da-a15f-6859adce51bd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "179", - "X-Request-ID": "85f6f9c5-3243-434a-9f8e-1c2edd99bbde" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "227", + "x-request-id": "b7c4e82b-ccec-4d86-87e1-0b887c81682e" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/0dc5027f-5a1e-42da-a15f-6859adce51bd", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dfda9eb5a8a30e4dab0c1431330e38e3-b982b40f5405df45-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-676ddc2922962941abf54c9505faa2e1-9df44b6df2a3b546-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "75420facd7f99819ab512aeb99d432b9", "x-ms-return-client-request-id": "true" @@ -63,19 +57,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8f5a6967-50e0-4dca-81c4-6f6c96c394fd", - "Content-Length": "347", + "apim-request-id": "624e387f-0958-43d4-aed8-3d6eb08f5f55", + "Content-Length": "375", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:42 GMT", + "Date": "Fri, 04 Jun 2021 10:25:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "X-Request-ID": "8f5a6967-50e0-4dca-81c4-6f6c96c394fd" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "108", + "x-request-id": "624e387f-0958-43d4-aed8-3d6eb08f5f55" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "anomalyAlertingConfigurationId": "0dc5027f-5a1e-42da-a15f-6859adce51bd", "name": "configCpHBcSmG", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -92,16 +87,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/0dc5027f-5a1e-42da-a15f-6859adce51bd", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d2e02a694114de4f8b84bb2e37e0f396-2f0be0c5fb0a554c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-76578d3de375c647b5c041acf81d3ead-b0338001b98d0a44-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "d942bc757aea71c30cbf5e4622befb1a", "x-ms-return-client-request-id": "true" @@ -109,19 +101,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f9392c6a-5ee6-4368-b95a-8232601eba3d", - "Content-Length": "347", + "apim-request-id": "92717302-d6b5-491d-a720-5b5aa84c1489", + "Content-Length": "375", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:42 GMT", + "Date": "Fri, 04 Jun 2021 10:25:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "104", - "X-Request-ID": "f9392c6a-5ee6-4368-b95a-8232601eba3d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "115", + "x-request-id": "92717302-d6b5-491d-a720-5b5aa84c1489" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "anomalyAlertingConfigurationId": "0dc5027f-5a1e-42da-a15f-6859adce51bd", "name": "configCpHBcSmG", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -138,16 +131,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ae83ceed-4ace-4bd9-b38d-3c1a7c8daa12", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/0dc5027f-5a1e-42da-a15f-6859adce51bd", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ccba1c73f81cfa4e9facf2870b233155-ac4f6a611ff87345-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-c323d40ba508654ba9e874863b4321f8-9a297d9cd2f7814e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "b14fb8e69cfc0d79ddac08068136fade", "x-ms-return-client-request-id": "true" @@ -155,13 +145,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "e23dfaa4-692d-4255-8e84-d8ac1183da98", + "apim-request-id": "72be0c2e-5425-4b54-a13f-6294f59f583f", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:43 GMT", + "Date": "Fri, 04 Jun 2021 10:25:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "114", - "X-Request-ID": "e23dfaa4-692d-4255-8e84-d8ac1183da98" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "72be0c2e-5425-4b54-a13f-6294f59f583f" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScopeAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScopeAsync.json index 9aecbd1ac9488..999778a2dbc08 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScopeAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithSeriesGroupScopeAsync.json @@ -8,11 +8,8 @@ "Content-Length": "232", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d337533e6d86e9419a7018d0709e2770-516217be549e354c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-201d498da078d241a28fea9e21f93de2-a69ad6941d2cb54f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "bca4cb4e370f4adce81c5398b92e5b5e", "x-ms-return-client-request-id": "true" @@ -34,28 +31,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "246a065c-82ed-42fc-832a-a7f269033bfc", + "apim-request-id": "071f3227-3162-467e-94df-f44b038228fd", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:03 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "Date": "Fri, 04 Jun 2021 10:26:47 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3dc19448-5390-431f-a1eb-027bcd06de86", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "175", - "X-Request-ID": "246a065c-82ed-42fc-832a-a7f269033bfc" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "197", + "x-request-id": "071f3227-3162-467e-94df-f44b038228fd" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3dc19448-5390-431f-a1eb-027bcd06de86", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d337533e6d86e9419a7018d0709e2770-7d470e80cb8c334d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-201d498da078d241a28fea9e21f93de2-88c6948445afb345-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "11aca2138e4a4caac898e4954fa51a60", "x-ms-return-client-request-id": "true" @@ -63,19 +57,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c0374a7f-a73b-4fec-94fd-8ba211c52c40", - "Content-Length": "347", + "apim-request-id": "5103622a-5fa1-4cb1-97a3-f513bf300b92", + "Content-Length": "375", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:03 GMT", + "Date": "Fri, 04 Jun 2021 10:26:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "99", - "X-Request-ID": "c0374a7f-a73b-4fec-94fd-8ba211c52c40" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "105", + "x-request-id": "5103622a-5fa1-4cb1-97a3-f513bf300b92" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "anomalyAlertingConfigurationId": "3dc19448-5390-431f-a1eb-027bcd06de86", "name": "configInSGyQiJ", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -92,16 +87,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3dc19448-5390-431f-a1eb-027bcd06de86", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-91e8716b34d63640866c6426c50ea57d-bacdca9fd528404e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-c02662376308804cbe4b4231a72a05e4-1cdbc89903da994e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "d490af8642c63bcb6ecca9046984fc4b", "x-ms-return-client-request-id": "true" @@ -109,19 +101,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9dafc9c6-eab3-4d46-8f8f-f7c7142ae6b7", - "Content-Length": "347", + "apim-request-id": "cd810082-5e99-433d-90f8-069f2a2e373c", + "Content-Length": "375", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", + "Date": "Fri, 04 Jun 2021 10:26:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "X-Request-ID": "9dafc9c6-eab3-4d46-8f8f-f7c7142ae6b7" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "117", + "x-request-id": "cd810082-5e99-433d-90f8-069f2a2e373c" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "anomalyAlertingConfigurationId": "3dc19448-5390-431f-a1eb-027bcd06de86", "name": "configInSGyQiJ", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -138,16 +131,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1b2a291d-5ba4-4a67-a86f-d2a4ee319c2e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3dc19448-5390-431f-a1eb-027bcd06de86", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5b3b4bd6603f7c468ef88e1c368aae2f-595e381ea7c76047-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-06160a9f5484e246ac573af0c54e70c9-11b3db4a65c9c142-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "747754bc9be6bfea2158f3765346fa43", "x-ms-return-client-request-id": "true" @@ -155,13 +145,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "832cb28c-513f-416f-a1d4-475f4baa1488", + "apim-request-id": "c8faf41b-8567-447c-8231-e89676671c65", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", + "Date": "Fri, 04 Jun 2021 10:26:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "111", - "X-Request-ID": "832cb28c-513f-416f-a1d4-475f4baa1488" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "126", + "x-request-id": "c8faf41b-8567-447c-8231-e89676671c65" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScope.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScope.json index cc8355e9f2d63..993c40a2547cf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScope.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScope.json @@ -8,11 +8,8 @@ "Content-Length": "231", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-35dcce10f691e54fbd17dc11366d2179-bdc305abb72f874a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-3ae60993c761ec4bbc4e21ca95636c7c-ad1688a780fe2046-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "f73903b0ce09111b4025e817eb4e3e2e", "x-ms-return-client-request-id": "true" @@ -34,28 +31,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "1bf1d23e-4aed-489b-ac7a-9fab3178979e", + "apim-request-id": "a108177b-32ec-4914-8e3b-f69e2d329cb6", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:43 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "Date": "Fri, 04 Jun 2021 10:25:40 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/b422e4e3-dad7-4db6-a8db-5043eabc4665", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "X-Request-ID": "1bf1d23e-4aed-489b-ac7a-9fab3178979e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "119", + "x-request-id": "a108177b-32ec-4914-8e3b-f69e2d329cb6" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/b422e4e3-dad7-4db6-a8db-5043eabc4665", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-35dcce10f691e54fbd17dc11366d2179-9723314851291847-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-3ae60993c761ec4bbc4e21ca95636c7c-b1829c7e20c7fb49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "032d37b14d7ebbff6a1d927a1e88c82a", "x-ms-return-client-request-id": "true" @@ -63,19 +57,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5bfb21df-1f9d-4de2-aa50-115b4ab688f4", - "Content-Length": "346", + "apim-request-id": "401fd9cf-909e-4ab6-8d6e-f35df4c66906", + "Content-Length": "374", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:43 GMT", + "Date": "Fri, 04 Jun 2021 10:25:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "111", - "X-Request-ID": "5bfb21df-1f9d-4de2-aa50-115b4ab688f4" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "106", + "x-request-id": "401fd9cf-909e-4ab6-8d6e-f35df4c66906" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "anomalyAlertingConfigurationId": "b422e4e3-dad7-4db6-a8db-5043eabc4665", "name": "configcUJctDmU", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -92,16 +87,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/b422e4e3-dad7-4db6-a8db-5043eabc4665", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-635a534d81754c4ea433088998d10165-5b41b8690df0aa4e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2373ed40af98704cb3d7397c8ac688ad-e81664f7a8da0b45-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "c91ca633ef75a9a75c5faa0f56b5fea4", "x-ms-return-client-request-id": "true" @@ -109,19 +101,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "afd0c926-ba05-44b4-985c-b4f39f8044df", - "Content-Length": "346", + "apim-request-id": "5a634fd0-c8fc-417d-b7c6-d6bdbe08f76e", + "Content-Length": "374", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:43 GMT", + "Date": "Fri, 04 Jun 2021 10:25:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "X-Request-ID": "afd0c926-ba05-44b4-985c-b4f39f8044df" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "102", + "x-request-id": "5a634fd0-c8fc-417d-b7c6-d6bdbe08f76e" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "anomalyAlertingConfigurationId": "b422e4e3-dad7-4db6-a8db-5043eabc4665", "name": "configcUJctDmU", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -138,16 +131,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/bf1e1800-4945-4ca0-bb89-c21bb6993f37", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/b422e4e3-dad7-4db6-a8db-5043eabc4665", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-151601bd25ed4a4eaf18836846a1507f-a854f08226a31644-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2bc803e71a33bd4b9427237993a92361-2172eb04c116da48-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "cce2b5751e7262d9037e8cec3ba1f3b7", "x-ms-return-client-request-id": "true" @@ -155,13 +145,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "90d41a57-62a4-4989-9178-7edb3aac16c1", + "apim-request-id": "7655131d-afa9-46e0-b302-23b4dca7bda9", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:43 GMT", + "Date": "Fri, 04 Jun 2021 10:25:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "109", - "X-Request-ID": "90d41a57-62a4-4989-9178-7edb3aac16c1" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "117", + "x-request-id": "7655131d-afa9-46e0-b302-23b4dca7bda9" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScopeAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScopeAsync.json index 6414d80a62ec3..330a8b8724f9b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScopeAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithTopNScopeAsync.json @@ -8,11 +8,8 @@ "Content-Length": "231", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d13a0f64cd1769459bd89788a9555df7-8638889d632ca44a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-9c0765c8e572a34ebb3af6951ba72016-c067bb1e86f41145-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "c4b4dfc18a3c2ad0b022f2785de7a0f5", "x-ms-return-client-request-id": "true" @@ -34,28 +31,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "cd361c61-4f20-495b-ac63-038487cbcfd0", + "apim-request-id": "79d7d554-2abc-4e0b-9895-96e6539a9709", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "Date": "Fri, 04 Jun 2021 10:26:48 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "112", - "X-Request-ID": "cd361c61-4f20-495b-ac63-038487cbcfd0" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "127", + "x-request-id": "79d7d554-2abc-4e0b-9895-96e6539a9709" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d13a0f64cd1769459bd89788a9555df7-6215123923cb0747-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-9c0765c8e572a34ebb3af6951ba72016-cffd2be6e250544d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "5392b0d9389b56ca2b410b6336d0bddd", "x-ms-return-client-request-id": "true" @@ -63,19 +57,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8198b74c-6505-46c0-9961-7fcdc2b4bd0d", - "Content-Length": "346", + "apim-request-id": "97af647c-5d1c-4452-8fa2-2acf72baa81d", + "Content-Length": "374", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", + "Date": "Fri, 04 Jun 2021 10:26:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "125", - "X-Request-ID": "8198b74c-6505-46c0-9961-7fcdc2b4bd0d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "99", + "x-request-id": "97af647c-5d1c-4452-8fa2-2acf72baa81d" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "anomalyAlertingConfigurationId": "2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "name": "configscgv9Oyh", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -92,16 +87,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cf226d5ca722bc40a82e8a668857e9dc-0434eba3cc35094b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2fdcffc2a14b0e458790499ffaba838e-64bebe6138ed0646-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "df8d3641c0aa3b0ec8a053ccd484094c", "x-ms-return-client-request-id": "true" @@ -109,19 +101,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "311d9f01-563c-463f-ac41-85b8cbb5cee6", - "Content-Length": "346", + "apim-request-id": "6519d27f-f2bf-4190-9e58-87363c173385", + "Content-Length": "374", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", + "Date": "Fri, 04 Jun 2021 10:26:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "X-Request-ID": "311d9f01-563c-463f-ac41-85b8cbb5cee6" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "95", + "x-request-id": "6519d27f-f2bf-4190-9e58-87363c173385" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "anomalyAlertingConfigurationId": "2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "name": "configscgv9Oyh", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -138,16 +131,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/a5f9e89b-ae5b-4c97-bb21-6d159eeb07e1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2eb46d1f-c904-4e4e-89aa-1bf3482fbb59", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-45a9bb16fc71a1449b667c44915e6812-ba746901a8992f44-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-036b339a71760f44ab9c4263f0cc9dac-fcc50ee3300e694f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "2d21bb611a2188d1145e99fa7e6cf3e0", "x-ms-return-client-request-id": "true" @@ -155,13 +145,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "d4bff2a6-afd9-4b5b-8b32-222b9dca6905", + "apim-request-id": "8c6484be-4ef8-40a7-9b0a-96aec64df798", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:04 GMT", + "Date": "Fri, 04 Jun 2021 10:26:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "113", - "X-Request-ID": "d4bff2a6-afd9-4b5b-8b32-222b9dca6905" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5149", + "x-request-id": "8c6484be-4ef8-40a7-9b0a-96aec64df798" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False).json index 34e1972c47fa7..4ebcc1b2b7a6f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False).json @@ -8,11 +8,8 @@ "Content-Length": "171", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-eb36bfa634ba9b4f93afe585a77a9353-e864ab3f06e1bf4d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-778fcb3c69da294eadc653c00561ae3a-aeb2d5dba2fa0f4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "d28ee219cc50a62d312372ef51ad5912", "x-ms-return-client-request-id": "true" @@ -29,28 +26,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "b22c7c90-17ef-4546-88ec-4998e1098646", + "apim-request-id": "73112b47-642d-4d59-9ea9-f16ae6a3b85f", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:53 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "Date": "Fri, 04 Jun 2021 10:26:00 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136", - "X-Request-ID": "b22c7c90-17ef-4546-88ec-4998e1098646" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "73112b47-642d-4d59-9ea9-f16ae6a3b85f" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-eb36bfa634ba9b4f93afe585a77a9353-a795865a69eb6940-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-778fcb3c69da294eadc653c00561ae3a-8ca51c1493e1db43-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "fb4f2be40eb16f54ed2c411bd5c7add5", "x-ms-return-client-request-id": "true" @@ -58,19 +52,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5ea61185-3d9c-4161-b2cc-bac6090f8dc7", - "Content-Length": "286", + "apim-request-id": "cd4b2505-44b6-47cf-b9bc-29f722f92929", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:53 GMT", + "Date": "Fri, 04 Jun 2021 10:26:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "93", - "X-Request-ID": "5ea61185-3d9c-4161-b2cc-bac6090f8dc7" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "101", + "x-request-id": "cd4b2505-44b6-47cf-b9bc-29f722f92929" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "anomalyAlertingConfigurationId": "4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "name": "configBWFDTI5K", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -82,16 +77,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3a46c6010aafb848a0820bf5ea3d1183-70e93ec62aa61b4b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-b6024885b88e8041809ffbb132436a62-43936659940e674c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "7c409f3914abdd93f8b5b5692f268212", "x-ms-return-client-request-id": "true" @@ -99,19 +91,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ddf18b27-3b06-4477-871f-436055d7e238", - "Content-Length": "286", + "apim-request-id": "ab057f84-4e0b-4ade-ae1e-0ee19e29c7d7", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:53 GMT", + "Date": "Fri, 04 Jun 2021 10:26:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "X-Request-ID": "ddf18b27-3b06-4477-871f-436055d7e238" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5125", + "x-request-id": "ab057f84-4e0b-4ade-ae1e-0ee19e29c7d7" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "anomalyAlertingConfigurationId": "4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "name": "configBWFDTI5K", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -123,16 +116,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/529bc28f-9a0c-4801-a5ac-9ebe53c9f1f8", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/4bbb9a69-2495-4f6b-a3a8-bb3b6d5b6e93", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-82488c404fa9cd449b1394c3d860e059-18a77a95190e6747-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-914a153b0643754da20edd8eccf7a36d-b7f11f90c3e95b4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "783efb7804250a008d1fe5248a11d06a", "x-ms-return-client-request-id": "true" @@ -140,13 +130,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "4a9addd1-9d6c-408a-ae23-85c5e724452a", + "apim-request-id": "ac8a8046-c994-4ec2-b481-c252289d9197", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:53 GMT", + "Date": "Fri, 04 Jun 2021 10:26:06 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "121", - "X-Request-ID": "4a9addd1-9d6c-408a-ae23-85c5e724452a" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "113", + "x-request-id": "ac8a8046-c994-4ec2-b481-c252289d9197" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False)Async.json index c48daafb66ba8..c5f11b0ef55fb 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(False)Async.json @@ -8,11 +8,8 @@ "Content-Length": "171", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2740d677f4b43a4bba54ba82e26d9cb4-9e24dc40dfaf3041-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-473ab5e7cbe7b7468e6b83049433bb2e-0f8dbfb46c5c5443-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "6c05e891ad99e3f2aaa010c902014a37", "x-ms-return-client-request-id": "true" @@ -29,28 +26,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "03c6a5a6-5843-474c-a56b-7aa4baea966b", + "apim-request-id": "aa9553ac-1918-495a-8e63-fce5e4a060ff", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:10 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "Date": "Fri, 04 Jun 2021 10:27:16 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/10b14914-9049-40cf-838c-80dcfc7ed7f0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "116", - "X-Request-ID": "03c6a5a6-5843-474c-a56b-7aa4baea966b" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "127", + "x-request-id": "aa9553ac-1918-495a-8e63-fce5e4a060ff" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/10b14914-9049-40cf-838c-80dcfc7ed7f0", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2740d677f4b43a4bba54ba82e26d9cb4-e2134794190aa84d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-473ab5e7cbe7b7468e6b83049433bb2e-bd918d3bd4731749-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "bd9536f24e125a77b73dd10c13c039ce", "x-ms-return-client-request-id": "true" @@ -58,19 +52,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e9f36990-7a68-4581-967f-6f5cbb82d5b2", - "Content-Length": "286", + "apim-request-id": "37b8e90a-90ff-41a5-888e-4a10cc55dfec", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:11 GMT", + "Date": "Fri, 04 Jun 2021 10:27:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83", - "X-Request-ID": "e9f36990-7a68-4581-967f-6f5cbb82d5b2" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "92", + "x-request-id": "37b8e90a-90ff-41a5-888e-4a10cc55dfec" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "anomalyAlertingConfigurationId": "10b14914-9049-40cf-838c-80dcfc7ed7f0", "name": "configVozWhYXK", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -82,16 +77,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/10b14914-9049-40cf-838c-80dcfc7ed7f0", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-59d2e7fe0db83046b53a2ae4a89eb75f-1da4b4c7863cc142-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2382ea46dc3b2c44941d680dc077c993-863d62718f2a5d4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "56f986d4c98e36576b28598314f001da", "x-ms-return-client-request-id": "true" @@ -99,19 +91,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9f0a0e0b-333b-40fe-b3d7-447be5da822c", - "Content-Length": "286", + "apim-request-id": "93802d25-3006-41cd-b68a-46c648bcc648", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:11 GMT", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "92", - "X-Request-ID": "9f0a0e0b-333b-40fe-b3d7-447be5da822c" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "100", + "x-request-id": "93802d25-3006-41cd-b68a-46c648bcc648" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "anomalyAlertingConfigurationId": "10b14914-9049-40cf-838c-80dcfc7ed7f0", "name": "configVozWhYXK", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -123,16 +116,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/1bb8281e-0a75-4284-b6c9-094dcc58bbab", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/10b14914-9049-40cf-838c-80dcfc7ed7f0", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cf9ed5713671d1469508176b0ebeebbc-a2f54b03a0a03e41-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-98443d030813ee40ad0fcea920cdf937-3cd258799b23c54b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "fd7c40bf92c5425470abb45cdbe6cfea", "x-ms-return-client-request-id": "true" @@ -140,13 +130,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "0544311c-3ed5-46f9-b1a2-c6f66cbe014f", + "apim-request-id": "99bed8f0-5220-4ece-9b71-5e2ce9a7b3bf", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:11 GMT", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "91", - "X-Request-ID": "0544311c-3ed5-46f9-b1a2-c6f66cbe014f" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "137", + "x-request-id": "99bed8f0-5220-4ece-9b71-5e2ce9a7b3bf" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True).json index 5c4bdeb914687..776cb883624b0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True).json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "171", "Content-Type": "application/json", - "traceparent": "00-5b9027a45a3e6e4c9a7393cacfe4cc90-73bdd33cd0fca04a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ae35ef9a429fa14a92e0eb246385eb71-377955ab2969cb42-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4b50290ef58247e362f5d598bf15eb99", "x-ms-return-client-request-id": "true" }, @@ -28,47 +25,45 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "3df3dee8-1ca5-439e-898c-a3a129e48865", + "apim-request-id": "c1a5c348-51b1-49c9-b2ef-fdb41163d369", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:51 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e7f0782b-be7c-4789-b605-93b53ef5055e", + "Date": "Fri, 04 Jun 2021 10:25:45 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/900ec4da-7ef5-4022-8a57-47ed43f56b01", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "177", - "X-Request-ID": "3df3dee8-1ca5-439e-898c-a3a129e48865" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "232", + "x-request-id": "c1a5c348-51b1-49c9-b2ef-fdb41163d369" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e7f0782b-be7c-4789-b605-93b53ef5055e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/900ec4da-7ef5-4022-8a57-47ed43f56b01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-5b9027a45a3e6e4c9a7393cacfe4cc90-91a52ad6a83f544e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ae35ef9a429fa14a92e0eb246385eb71-5202850f3bb1ff47-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a4bd9802bdca7679d3645c425ca73982", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c76ab821-42c8-48cf-96e9-9c04babe5e96", - "Content-Length": "286", + "apim-request-id": "8821e770-e04b-4799-82a1-36abe287d293", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:52 GMT", + "Date": "Fri, 04 Jun 2021 10:25:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "140", - "X-Request-ID": "c76ab821-42c8-48cf-96e9-9c04babe5e96" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "3613", + "x-request-id": "8821e770-e04b-4799-82a1-36abe287d293" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "e7f0782b-be7c-4789-b605-93b53ef5055e", + "anomalyAlertingConfigurationId": "900ec4da-7ef5-4022-8a57-47ed43f56b01", "name": "config20SWrjvv", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -80,35 +75,33 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e7f0782b-be7c-4789-b605-93b53ef5055e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/900ec4da-7ef5-4022-8a57-47ed43f56b01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-4539f84f5c3de34097be2e4088cb82fb-14eafd7fbb273f44-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0b0bc04d57254647ba7fb1ade9f80b21-f4bb22490af7ff41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c3c20d000600a30b5d95107825917eec", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9c92f12e-9c0a-4a19-906e-a699756c0a00", - "Content-Length": "286", + "apim-request-id": "dd3b3b13-0066-42e1-a1c0-e72575b9421e", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:52 GMT", + "Date": "Fri, 04 Jun 2021 10:25:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "242", - "X-Request-ID": "9c92f12e-9c0a-4a19-906e-a699756c0a00" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5130", + "x-request-id": "dd3b3b13-0066-42e1-a1c0-e72575b9421e" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "e7f0782b-be7c-4789-b605-93b53ef5055e", + "anomalyAlertingConfigurationId": "900ec4da-7ef5-4022-8a57-47ed43f56b01", "name": "config20SWrjvv", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -120,29 +113,26 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/e7f0782b-be7c-4789-b605-93b53ef5055e", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/900ec4da-7ef5-4022-8a57-47ed43f56b01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-494c40ba024d104b934c97cc290b1953-d4afd9091b86a645-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-11d6fa682ae491428dd1ae85dc728299-f769be60606b624c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "35bd04cf194351d5afd9771d99a0ebbb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "fca71814-560d-4753-a0f5-6201c694ccde", + "apim-request-id": "b5ed0853-b0ce-4942-a2c8-a245ca345cb6", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:52 GMT", + "Date": "Fri, 04 Jun 2021 10:26:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "X-Request-ID": "fca71814-560d-4753-a0f5-6201c694ccde" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5137", + "x-request-id": "b5ed0853-b0ce-4942-a2c8-a245ca345cb6" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True)Async.json index a7fe450b607ba..3523175e84f98 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/CreateAndGetAlertConfigurationWithWholeSeriesScope(True)Async.json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "171", "Content-Type": "application/json", - "traceparent": "00-2b991c4f24316043aa877989d5904160-fec99d0888163b46-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0a07e9c90cc83240bb11b82f9c1a1522-2dcc3c31c97acd41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "97236ec6aa5d3611e3b5616329e39190", "x-ms-return-client-request-id": "true" }, @@ -28,47 +25,45 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "bab8986d-d6f3-496e-8723-e541410460a7", + "apim-request-id": "0150b926-1ea2-48d6-a8e4-1dfa69b38ac5", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:10 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "Date": "Fri, 04 Jun 2021 10:27:00 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/51f0fe05-04c8-4ea0-adce-866348f1762e", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "X-Request-ID": "bab8986d-d6f3-496e-8723-e541410460a7" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5141", + "x-request-id": "0150b926-1ea2-48d6-a8e4-1dfa69b38ac5" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/51f0fe05-04c8-4ea0-adce-866348f1762e", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-2b991c4f24316043aa877989d5904160-b8a3a245287f8040-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0a07e9c90cc83240bb11b82f9c1a1522-4cb5adcfd71c8c45-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "831de2b6ae445c9e08738dc4245fa266", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1f66e4b4-fdc2-4119-8ce6-4d64fa914656", - "Content-Length": "286", + "apim-request-id": "ff00818a-ae29-42de-97d9-a9db36f746ca", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:10 GMT", + "Date": "Fri, 04 Jun 2021 10:27:05 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "31", - "X-Request-ID": "1f66e4b4-fdc2-4119-8ce6-4d64fa914656" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5117", + "x-request-id": "ff00818a-ae29-42de-97d9-a9db36f746ca" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "anomalyAlertingConfigurationId": "51f0fe05-04c8-4ea0-adce-866348f1762e", "name": "configl70tMng4", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -80,35 +75,33 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/51f0fe05-04c8-4ea0-adce-866348f1762e", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-334bd2345fa9ac44930bb907f27f7bb9-2daba49eeb25c74c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-5f617dff0aa74e489ac0396e58ba5271-2f957474e073f74d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "199190b114dbababf7e72d25978e2e5c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "73eb76d9-b6d2-44d6-b6b5-abcb845e3f2d", - "Content-Length": "286", + "apim-request-id": "de5aacab-75b2-4901-974b-386206e5e14a", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:10 GMT", + "Date": "Fri, 04 Jun 2021 10:27:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "X-Request-ID": "73eb76d9-b6d2-44d6-b6b5-abcb845e3f2d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "10221", + "x-request-id": "de5aacab-75b2-4901-974b-386206e5e14a" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "anomalyAlertingConfigurationId": "51f0fe05-04c8-4ea0-adce-866348f1762e", "name": "configl70tMng4", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -120,29 +113,26 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/cf3c41ca-3f69-49a8-88a4-2c3bfce08679", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/51f0fe05-04c8-4ea0-adce-866348f1762e", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-81bedd3841107946bb87a7dea9b2317b-8d9f7fd95c9eb747-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0a1011de4d678b45b49455d169bc7b3d-0f64411e0f40724a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "50b42bca0d5d17edd0c78ee91d4d1184", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "15f5f7a4-033d-435d-96e8-bdb405cda6b1", + "apim-request-id": "f79e5769-0a09-48eb-85e4-758f503f12f6", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:10 GMT", + "Date": "Fri, 04 Jun 2021 10:27:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44", - "X-Request-ID": "15f5f7a4-033d-435d-96e8-bdb405cda6b1" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "48", + "x-request-id": "f79e5769-0a09-48eb-85e4-758f503f12f6" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False).json index 35d1d762e3a10..31068d1768bb7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False).json @@ -8,11 +8,8 @@ "Content-Length": "171", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ac3e04f10576fe43a21350e3a27f6238-5bdf7ab48babc44a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d19fcc9619147e4e974082e6c798ea0d-bb2bb2c73671614e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "e6e3c0caa688d0d75d6ab7e13a2bba6b", "x-ms-return-client-request-id": "true" @@ -29,28 +26,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "068f65ef-25b6-41be-bbd9-1bfb725f7516", + "apim-request-id": "ee8d091a-d524-47e8-a216-777b9b7a00a8", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:52 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/fe7f13a3-d0ee-496a-800c-6e2d9a423993", + "Date": "Fri, 04 Jun 2021 10:26:22 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/14f99cc5-9ee8-4306-91ac-4f71ac03687b", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "X-Request-ID": "068f65ef-25b6-41be-bbd9-1bfb725f7516" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "124", + "x-request-id": "ee8d091a-d524-47e8-a216-777b9b7a00a8" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/fe7f13a3-d0ee-496a-800c-6e2d9a423993", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/14f99cc5-9ee8-4306-91ac-4f71ac03687b", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ac3e04f10576fe43a21350e3a27f6238-cb73030c600f2842-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d19fcc9619147e4e974082e6c798ea0d-ec76ac43813df149-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "7a63e284bbbe335262599329b091c0e5", "x-ms-return-client-request-id": "true" @@ -58,19 +52,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ee843f89-23e1-4656-94bb-1c426482c477", - "Content-Length": "286", + "apim-request-id": "7db595e2-20ae-4762-b93b-02e05c839831", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:52 GMT", + "Date": "Fri, 04 Jun 2021 10:26:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "134", - "X-Request-ID": "ee843f89-23e1-4656-94bb-1c426482c477" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "103", + "x-request-id": "7db595e2-20ae-4762-b93b-02e05c839831" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "fe7f13a3-d0ee-496a-800c-6e2d9a423993", + "anomalyAlertingConfigurationId": "14f99cc5-9ee8-4306-91ac-4f71ac03687b", "name": "configrxUEaA6u", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -82,16 +77,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/fe7f13a3-d0ee-496a-800c-6e2d9a423993", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/14f99cc5-9ee8-4306-91ac-4f71ac03687b", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f9b36f50526c5b468675170b75dd75fe-3508df76254eed49-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-31a676ef86194c4a91764645ff22f01a-c86d434c4c201942-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "204819c93d534653e36768995d308773", "x-ms-return-client-request-id": "true" @@ -99,27 +91,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "0b613f4a-aa7e-4447-83d8-eb3070fdee3d", + "apim-request-id": "748043ee-6d20-4581-ad0a-69072fc48180", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:53 GMT", + "Date": "Fri, 04 Jun 2021 10:26:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "161", - "X-Request-ID": "0b613f4a-aa7e-4447-83d8-eb3070fdee3d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "748043ee-6d20-4581-ad0a-69072fc48180" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/fe7f13a3-d0ee-496a-800c-6e2d9a423993", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/14f99cc5-9ee8-4306-91ac-4f71ac03687b", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f7de2d3ba9133f49b251adb4060e67fe-f106b39bbf18ce4c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-21610a918275d049ad9664783e3d577d-6453d6e06611d14a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "78553300bc910e9f6db0842e13ae20cc", "x-ms-return-client-request-id": "true" @@ -127,18 +116,18 @@ "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "apim-request-id": "43aed9b6-c5ac-43d6-8e29-1240df8bf6d7", + "apim-request-id": "0a18f629-3ede-43d1-ba45-618a5e2ead64", "Content-Length": "123", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:53 GMT", + "Date": "Fri, 04 Jun 2021 10:26:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "81", - "X-Request-ID": "43aed9b6-c5ac-43d6-8e29-1240df8bf6d7" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "72", + "x-request-id": "0a18f629-3ede-43d1-ba45-618a5e2ead64" }, "ResponseBody": { "code": "Not Found", - "message": "Not found this AnomalyAlertingConfiguration. TraceId: 86ee1c65-d4c9-4725-abaa-52fb150177c9" + "message": "Not found this AnomalyAlertingConfiguration. TraceId: 9c69297c-3ddf-4934-a878-d829d4dd5ee6" } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False)Async.json index 67d58fb32c330..4d45d7a865c2f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(False)Async.json @@ -8,11 +8,8 @@ "Content-Length": "171", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a069379a9b9ed84fb5754519f2a07c9e-203ccfd9c431b242-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-9db379e5be7ad74b8af2a524e435ee3d-8d3548d9a565b145-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "a7b3e8bb6c9e31aef9c42fef4fe0a079", "x-ms-return-client-request-id": "true" @@ -29,28 +26,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "74f821e4-032c-412a-b972-106bbeed2e4e", + "apim-request-id": "a6812b7c-dc11-47c7-9dfe-e42e12793564", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/86304639-baa7-4afe-b78e-a81edfcf7535", + "Date": "Fri, 04 Jun 2021 10:27:18 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/967a0afc-d42e-4918-b6e4-d39e6bd3d617", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "106", - "X-Request-ID": "74f821e4-032c-412a-b972-106bbeed2e4e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "a6812b7c-dc11-47c7-9dfe-e42e12793564" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/86304639-baa7-4afe-b78e-a81edfcf7535", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/967a0afc-d42e-4918-b6e4-d39e6bd3d617", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a069379a9b9ed84fb5754519f2a07c9e-d00ed82441907540-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-9db379e5be7ad74b8af2a524e435ee3d-8057a263d57b684d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "e092e16427401beb0e24314108275949", "x-ms-return-client-request-id": "true" @@ -58,19 +52,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1625694f-4b22-4e85-9796-650cd9858a69", - "Content-Length": "286", + "apim-request-id": "8b8478d1-ddc2-44af-b2bb-0ab45d9cbdbc", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "1625694f-4b22-4e85-9796-650cd9858a69" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "93", + "x-request-id": "8b8478d1-ddc2-44af-b2bb-0ab45d9cbdbc" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "86304639-baa7-4afe-b78e-a81edfcf7535", + "anomalyAlertingConfigurationId": "967a0afc-d42e-4918-b6e4-d39e6bd3d617", "name": "configfi5lgmxY", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -82,16 +77,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/86304639-baa7-4afe-b78e-a81edfcf7535", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/967a0afc-d42e-4918-b6e4-d39e6bd3d617", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d074ef3280345440a65c80e0746b8232-be9ff8f05df25848-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ffe200ed07f12e49a91141a6bb1154a9-67d945525e69c844-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "d4dfb3dbe11086ddc9fa2876ba507d3e", "x-ms-return-client-request-id": "true" @@ -99,27 +91,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "e1b17278-6e6f-4d61-80d4-fab970a7c1e4", + "apim-request-id": "37d84021-905a-4a3f-ab95-db3406e5c821", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "106", - "X-Request-ID": "e1b17278-6e6f-4d61-80d4-fab970a7c1e4" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "119", + "x-request-id": "37d84021-905a-4a3f-ab95-db3406e5c821" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/86304639-baa7-4afe-b78e-a81edfcf7535", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/967a0afc-d42e-4918-b6e4-d39e6bd3d617", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5b72f19f672c2c4f997746d5945f98c7-6254767f5aeed840-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-e4e64102ad0f5b49a971d15587f7922d-24887e03a4a3ef47-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "acda030b3ca39406fd97997a3b6d29d1", "x-ms-return-client-request-id": "true" @@ -127,18 +116,18 @@ "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "apim-request-id": "93ced8b3-7146-4a8e-95b5-17b44aca6ba2", + "apim-request-id": "7574b1dd-81a0-459d-8671-c241bb9da504", "Content-Length": "123", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:55 GMT", + "Date": "Fri, 04 Jun 2021 10:27:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "95", - "X-Request-ID": "93ced8b3-7146-4a8e-95b5-17b44aca6ba2" + "x-request-id": "7574b1dd-81a0-459d-8671-c241bb9da504" }, "ResponseBody": { "code": "Not Found", - "message": "Not found this AnomalyAlertingConfiguration. TraceId: a564e2f4-385e-48a5-a701-08387bbdcc2c" + "message": "Not found this AnomalyAlertingConfiguration. TraceId: d5ff1857-4b6b-4984-b491-5b74b8f61fe7" } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True).json index 2e641f1a06f2e..6a3e131fd1dac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True).json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "171", "Content-Type": "application/json", - "traceparent": "00-6a730ae3c2f8584bbb02c5fbd70a730d-d7e9a82b235d3145-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d0093fa5ffff674aabc6d8746fdf410a-c4ef6a83d70abe49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7c0eac40c3715a884cf2b66d97ef9292", "x-ms-return-client-request-id": "true" }, @@ -28,47 +25,45 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "6fe1ca31-5f60-4b69-8ccd-26cee732a9bd", + "apim-request-id": "f044d666-c400-49bc-946d-3535c25e9947", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:49 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3f14b5c5-5d7c-4af4-bde8-1c3170780c9b", + "Date": "Fri, 04 Jun 2021 10:26:11 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c7ab2897-c899-4516-b765-13a50aed6f85", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "249", - "X-Request-ID": "6fe1ca31-5f60-4b69-8ccd-26cee732a9bd" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5281", + "x-request-id": "f044d666-c400-49bc-946d-3535c25e9947" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3f14b5c5-5d7c-4af4-bde8-1c3170780c9b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c7ab2897-c899-4516-b765-13a50aed6f85", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-6a730ae3c2f8584bbb02c5fbd70a730d-f266de6894691442-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d0093fa5ffff674aabc6d8746fdf410a-2232827300468346-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e09a8c8258ecb451eb6d130973148bce", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1dfb8cfe-f8a1-469d-9adf-f49d54b12218", - "Content-Length": "286", + "apim-request-id": "ca120720-246d-4253-af47-a235b94190c6", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:51 GMT", + "Date": "Fri, 04 Jun 2021 10:26:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1129", - "X-Request-ID": "1dfb8cfe-f8a1-469d-9adf-f49d54b12218" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5136", + "x-request-id": "ca120720-246d-4253-af47-a235b94190c6" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "3f14b5c5-5d7c-4af4-bde8-1c3170780c9b", + "anomalyAlertingConfigurationId": "c7ab2897-c899-4516-b765-13a50aed6f85", "name": "configH8ckEiVW", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -80,61 +75,55 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3f14b5c5-5d7c-4af4-bde8-1c3170780c9b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c7ab2897-c899-4516-b765-13a50aed6f85", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-d38778ace6f0084c82b4e7cd4b5cfd4a-325c086e990c5e44-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6dda4651693e4243a6b70ae093ac1dde-15e0c5acb6044e47-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0af14a222fbaf7db0adb34b41ede209b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "1b4121fc-c1c5-4d26-b153-b893a2e89f3a", + "apim-request-id": "f4d82264-710a-4b6f-8545-2cb417662e36", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:52 GMT", + "Date": "Fri, 04 Jun 2021 10:26:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "648", - "X-Request-ID": "1b4121fc-c1c5-4d26-b153-b893a2e89f3a" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "140", + "x-request-id": "f4d82264-710a-4b6f-8545-2cb417662e36" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3f14b5c5-5d7c-4af4-bde8-1c3170780c9b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c7ab2897-c899-4516-b765-13a50aed6f85", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-940b08c50720a546a4a443d78b8ef517-1387ca039fec6848-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2497a661ed660641bdde906859998c25-b41190ae9e185f44-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "f716575c3ec1e8b55a599104af7fe638", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "apim-request-id": "1337acc7-d7b0-4d43-8c7b-5353d0559129", + "apim-request-id": "1b144ef6-48af-43ea-bbd3-200ea1a2a276", "Content-Length": "123", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:52 GMT", + "Date": "Fri, 04 Jun 2021 10:26:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "59", - "X-Request-ID": "1337acc7-d7b0-4d43-8c7b-5353d0559129" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5103", + "x-request-id": "1b144ef6-48af-43ea-bbd3-200ea1a2a276" }, "ResponseBody": { "code": "Not Found", - "message": "Not found this AnomalyAlertingConfiguration. TraceId: e9b999af-f37a-4f4b-b162-31f9d9359465" + "message": "Not found this AnomalyAlertingConfiguration. TraceId: 5a7b4b65-9afd-4107-8292-ff2e2ec64b29" } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True)Async.json index fee5e89db03af..72d965395a9c4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/DeleteAlertConfiguration(True)Async.json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "171", "Content-Type": "application/json", - "traceparent": "00-64238480b3e1084f95b523df373261b9-ea80ede3f8273c42-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-88eef49908e5674d943c57db39d3bfcc-3dab69fd3a190e49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "18f0da8d0489c225006f2c8a99189c33", "x-ms-return-client-request-id": "true" }, @@ -28,47 +25,45 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "bb287ca8-9335-44b0-b8f2-4da3acddb274", + "apim-request-id": "ee260870-febb-42a5-8d5d-0e4845e57722", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2873e8ec-913c-4473-850b-f52b8168070b", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/666ad061-05b2-4a52-9fa0-e5d45117ddd6", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "bb287ca8-9335-44b0-b8f2-4da3acddb274" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "81", + "x-request-id": "ee260870-febb-42a5-8d5d-0e4845e57722" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2873e8ec-913c-4473-850b-f52b8168070b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/666ad061-05b2-4a52-9fa0-e5d45117ddd6", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-64238480b3e1084f95b523df373261b9-662d15fa46f4e248-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-88eef49908e5674d943c57db39d3bfcc-5779ac5c59cdbc49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "0a6401a0b16683bcdd607e49b5af7228", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "824d6693-4c70-4b78-85df-c33f243258d8", - "Content-Length": "286", + "apim-request-id": "7242b1fb-275f-4d7f-8e77-0aac9dfafab4", + "Content-Length": "314", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "37", - "X-Request-ID": "824d6693-4c70-4b78-85df-c33f243258d8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "74", + "x-request-id": "7242b1fb-275f-4d7f-8e77-0aac9dfafab4" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "2873e8ec-913c-4473-850b-f52b8168070b", + "anomalyAlertingConfigurationId": "666ad061-05b2-4a52-9fa0-e5d45117ddd6", "name": "configR8n3wtAJ", "description": "", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -80,61 +75,55 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2873e8ec-913c-4473-850b-f52b8168070b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/666ad061-05b2-4a52-9fa0-e5d45117ddd6", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-54d62efc197faa4cb5b2dd5f6d683319-b501b38bc0142d42-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6be2eeac53dad148bdb654e6d4b48453-0ac39c9c2b1ccf4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "89d33ffad526c2813660adead601b3ff", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "bf4b1169-7153-40bd-bb70-573ff8efca35", + "apim-request-id": "ff70b2f8-3474-4355-8be5-66b7a240ef86", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "57", - "X-Request-ID": "bf4b1169-7153-40bd-bb70-573ff8efca35" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "ff70b2f8-3474-4355-8be5-66b7a240ef86" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/2873e8ec-913c-4473-850b-f52b8168070b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/666ad061-05b2-4a52-9fa0-e5d45117ddd6", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-27ee1efcef35a649af1a1eff071da52b-7d8360eaaf9b6e4b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-7ac5e2db5b914042b2b8600752053cd8-010b85ec2c434b41-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "79f5f8d2ffafdc901e6c3b2886dc0c51", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "apim-request-id": "c851569f-4c9d-41ac-a0e7-747b581a135a", + "apim-request-id": "8cc68e20-b7fe-4b1d-919e-a834edbe7054", "Content-Length": "123", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 18:37:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "24", - "X-Request-ID": "c851569f-4c9d-41ac-a0e7-747b581a135a" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "53", + "x-request-id": "8cc68e20-b7fe-4b1d-919e-a834edbe7054" }, "ResponseBody": { "code": "Not Found", - "message": "Not found this AnomalyAlertingConfiguration. TraceId: 47bfa123-bfee-44c9-8099-4d538f1e1ca8" + "message": "Not found this AnomalyAlertingConfiguration. TraceId: d426703d-4831-43b9-a49c-08b0f662ac6f" } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstance.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstance.json index 820d64416b1ad..43586c06db473 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstance.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstance.json @@ -5,49 +5,45 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1e6a9658a8e8c24680caacee513d721a-c6a52f91da031a44-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-59808755c85f8746afb1f3851128faf3-7b89a2096fdec940-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "71cb7994c6b66edb15b6c05fb26f5f00", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", + "hookType": "Email", "hookName": "hookXsKZvjKB" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "4c492ec4-23d2-459b-8251-1c581f327f7e", + "apim-request-id": "3fb59d70-c470-41ed-88fb-034ccabba265", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:44 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/46b3e81a-d751-492e-9a04-9dd22362258b", + "Date": "Fri, 04 Jun 2021 10:25:42 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a40638a7-836c-44dd-b1ff-b145efa97195", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "927", - "X-Request-ID": "4c492ec4-23d2-459b-8251-1c581f327f7e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "664", + "x-request-id": "3fb59d70-c470-41ed-88fb-034ccabba265" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/46b3e81a-d751-492e-9a04-9dd22362258b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a40638a7-836c-44dd-b1ff-b145efa97195", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1e6a9658a8e8c24680caacee513d721a-903d9c871f527c4f-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-59808755c85f8746afb1f3851128faf3-ad51e76741383e43-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "f83099cd0736aec9c97e424d6b55d724", "x-ms-return-client-request-id": "true" @@ -55,31 +51,28 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3b2c90d4-2ba8-494d-8d24-93b15d008b39", - "Content-Length": "296", + "apim-request-id": "3282cc98-acf7-424d-91f3-7458f958a5c3", + "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:45 GMT", + "Date": "Fri, 04 Jun 2021 10:25:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "165", - "X-Request-ID": "3b2c90d4-2ba8-494d-8d24-93b15d008b39" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "170", + "x-request-id": "3282cc98-acf7-424d-91f3-7458f958a5c3" }, "ResponseBody": { - "hookId": "46b3e81a-d751-492e-9a04-9dd22362258b", + "hookId": "a40638a7-836c-44dd-b1ff-b145efa97195", "hookName": "hookXsKZvjKB", - "hookType": "Webhook", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "foo@contoso.com" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -91,11 +84,8 @@ "Content-Length": "648", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be7f490a64a16d49a2d6152cb18b272f-58d503fe20c72b44-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-afb80849eef1ea4f9d344020f20f026f-37e5249303c5c143-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "dbe4b46228cf782afa4579da951b668d", "x-ms-return-client-request-id": "true" @@ -104,7 +94,7 @@ "name": "configb28BWxSJ", "crossMetricsOperator": "XOR", "hookIds": [ - "46b3e81a-d751-492e-9a04-9dd22362258b" + "a40638a7-836c-44dd-b1ff-b145efa97195" ], "metricAlertingConfigurations": [ { @@ -136,28 +126,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "adee8909-d279-479e-a709-f33374589908", + "apim-request-id": "198e8af6-fb1a-4cc8-88b2-2938128c2538", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:45 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "Date": "Fri, 04 Jun 2021 10:25:42 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "160", - "X-Request-ID": "adee8909-d279-479e-a709-f33374589908" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "191", + "x-request-id": "198e8af6-fb1a-4cc8-88b2-2938128c2538" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be7f490a64a16d49a2d6152cb18b272f-2f28020913825c49-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-afb80849eef1ea4f9d344020f20f026f-353ce1218ff2be4c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "38a71db08d84c003df9cdcc5a1cc6025", "x-ms-return-client-request-id": "true" @@ -165,22 +152,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "36631891-d98a-4d5f-a961-c71033a6f26c", - "Content-Length": "767", + "apim-request-id": "3688c9e4-5c3c-4645-bd3b-fe0054e12946", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:45 GMT", + "Date": "Fri, 04 Jun 2021 10:25:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "99", - "X-Request-ID": "36631891-d98a-4d5f-a961-c71033a6f26c" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "163", + "x-request-id": "3688c9e4-5c3c-4645-bd3b-fe0054e12946" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d10cfa64-1e30-4580-9dbe-9f68356764cc", + "anomalyAlertingConfigurationId": "da0f559a-4fd2-498f-9375-a51876288602", "name": "configb28BWxSJ", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "46b3e81a-d751-492e-9a04-9dd22362258b" + "a40638a7-836c-44dd-b1ff-b145efa97195" ], "metricAlertingConfigurations": [ { @@ -201,7 +189,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -213,16 +202,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e09e7fc4d8ea5e4792dfb9e0841a9472-e88ec722bc440647-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-bab2301d6b9ef544be4604bf304c04bb-26e22e598c70cd4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "8195568aee22a1de53ca5225dbfd8f68", "x-ms-return-client-request-id": "true" @@ -230,22 +216,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8dd1862d-66b4-40e2-824f-eaa0589a6c7f", - "Content-Length": "767", + "apim-request-id": "4acdbdd8-182e-4d86-a3ed-c910c6cd9033", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:45 GMT", + "Date": "Fri, 04 Jun 2021 10:25:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "101", - "X-Request-ID": "8dd1862d-66b4-40e2-824f-eaa0589a6c7f" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "166", + "x-request-id": "4acdbdd8-182e-4d86-a3ed-c910c6cd9033" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d10cfa64-1e30-4580-9dbe-9f68356764cc", + "anomalyAlertingConfigurationId": "da0f559a-4fd2-498f-9375-a51876288602", "name": "configb28BWxSJ", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "46b3e81a-d751-492e-9a04-9dd22362258b" + "a40638a7-836c-44dd-b1ff-b145efa97195" ], "metricAlertingConfigurations": [ { @@ -266,7 +253,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -278,18 +266,15 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "709", + "Content-Length": "724", "Content-Type": "application/merge-patch\u002Bjson", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f4e9b743e4cb1140963ab99c247989bb-7df9133c88e8c14d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-7b098a424e8de7498adc88b5ac72f67a-4440d630e089ca43-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "83e24086d600d556b123fb334c65d72e", "x-ms-return-client-request-id": "true" @@ -312,6 +297,7 @@ "lower": 5, "upper": 15, "direction": "Both", + "type": "Value", "triggerForMissing": false } }, @@ -332,29 +318,67 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9f9fdc8e-a2ba-4e27-9100-5dba452023da", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:46 GMT", + "apim-request-id": "e0d51435-3c1d-4f3c-b0ee-a4fa521289cd", + "Content-Length": "828", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:25:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "144", - "X-Request-ID": "9f9fdc8e-a2ba-4e27-9100-5dba452023da" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "191", + "x-request-id": "e0d51435-3c1d-4f3c-b0ee-a4fa521289cd" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "da0f559a-4fd2-498f-9375-a51876288602", + "name": "configb28BWxSJ", + "description": "This hook was created to test the .NET client.", + "crossMetricsOperator": "AND", + "splitAlertByDimensions": [], + "hookIds": [], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "valueFilter": { + "lower": 5.0, + "upper": 15.0, + "direction": "Both", + "triggerForMissing": false, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "TopN", + "negationOperation": true, + "topNAnomalyScope": { + "top": 50, + "period": 40, + "minTopCount": 30 + }, + "snoozeFilter": { + "autoSnooze": 4, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-08f40d5b9caee648aff3bda06fd9aca5-8176153f4cb24043-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-f985d80faf5fdb4a819b4d9835c1e10c-49cf2eaced78c449-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "3e4f54e4e485c26a3e06e5b93bdde4e2", "x-ms-return-client-request-id": "true" @@ -362,20 +386,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "877ceee4-3aa4-4389-8d02-db7a2ebf73b3", - "Content-Length": "785", + "apim-request-id": "9c8660ce-ea04-4d05-90ce-88a1ae76ee1a", + "Content-Length": "828", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:46 GMT", + "Date": "Fri, 04 Jun 2021 10:25:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "877ceee4-3aa4-4389-8d02-db7a2ebf73b3" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "102", + "x-request-id": "9c8660ce-ea04-4d05-90ce-88a1ae76ee1a" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d10cfa64-1e30-4580-9dbe-9f68356764cc", + "anomalyAlertingConfigurationId": "da0f559a-4fd2-498f-9375-a51876288602", "name": "configb28BWxSJ", "description": "This hook was created to test the .NET client.", "crossMetricsOperator": "AND", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -390,7 +415,8 @@ "lower": 5.0, "upper": 15.0, "direction": "Both", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -412,16 +438,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d10cfa64-1e30-4580-9dbe-9f68356764cc", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/da0f559a-4fd2-498f-9375-a51876288602", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4528d68733d2dc4cab049a0b619c74f8-22c9a49d7961044b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-cb0ba7f8cbab5c488fb690a7fecabca7-a908b7ca565ccc42-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "603e740ddde9b32400c0d0fef2ab55ed", "x-ms-return-client-request-id": "true" @@ -429,27 +452,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "5f08544d-1752-446b-8662-84d405d06b85", + "apim-request-id": "426862c7-16f4-425e-b6c4-bc5d3ce3fac9", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:46 GMT", + "Date": "Fri, 04 Jun 2021 10:25:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "142", - "X-Request-ID": "5f08544d-1752-446b-8662-84d405d06b85" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "155", + "x-request-id": "426862c7-16f4-425e-b6c4-bc5d3ce3fac9" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/46b3e81a-d751-492e-9a04-9dd22362258b", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/a40638a7-836c-44dd-b1ff-b145efa97195", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4f77043028340140851f935ac2faef41-5c1bd93a0f14034f-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-7f7d1026f973b2428a942b69dc431f6a-98453c7179742f46-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "874124f250ada1e2d62044faf09c99d3", "x-ms-return-client-request-id": "true" @@ -457,13 +477,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "cfa0f2c3-575a-4019-a9b9-d3d165c9d560", + "apim-request-id": "17700270-e7c6-4ff0-a9ce-9666901b4bec", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:46 GMT", + "Date": "Fri, 04 Jun 2021 10:25:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "197", - "X-Request-ID": "cfa0f2c3-575a-4019-a9b9-d3d165c9d560" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "242", + "x-request-id": "17700270-e7c6-4ff0-a9ce-9666901b4bec" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstanceAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstanceAsync.json index ce66ac813e548..8957157728e0d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstanceAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithEveryMemberAndGetInstanceAsync.json @@ -5,49 +5,45 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d7d8911877c93040bf1b271d3bd51522-e6f800fbd32ad240-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-e851fea005533b47821e849aa19e76a4-81840d4341df2047-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "1c8a0c386da02e79c403cc2b5065d1a8", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", + "hookType": "Email", "hookName": "hookw4cgJZAG" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "d404f035-a4f3-4ef0-8780-2b9898f7d70a", + "apim-request-id": "f77024e8-3e67-4c02-8dc7-3aa143507900", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:06 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5640f2ea-9f59-4d2b-867d-f575d20dbbc1", + "Date": "Fri, 04 Jun 2021 10:26:53 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f761c7b1-0173-4a22-ae20-28c62e9b8050", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "799", - "X-Request-ID": "d404f035-a4f3-4ef0-8780-2b9898f7d70a" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "571", + "x-request-id": "f77024e8-3e67-4c02-8dc7-3aa143507900" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5640f2ea-9f59-4d2b-867d-f575d20dbbc1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f761c7b1-0173-4a22-ae20-28c62e9b8050", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d7d8911877c93040bf1b271d3bd51522-0c3cf76b7372e846-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-e851fea005533b47821e849aa19e76a4-a2bf37ed62739945-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "46c0b5d63b98f772c156eb529877c8be", "x-ms-return-client-request-id": "true" @@ -55,31 +51,28 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ab440fd5-c3eb-48ec-9101-d72ba1eaee5d", - "Content-Length": "296", + "apim-request-id": "703e9349-b404-4d0a-97af-4277fcbba2e5", + "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:06 GMT", + "Date": "Fri, 04 Jun 2021 10:26:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "157", - "X-Request-ID": "ab440fd5-c3eb-48ec-9101-d72ba1eaee5d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "168", + "x-request-id": "703e9349-b404-4d0a-97af-4277fcbba2e5" }, "ResponseBody": { - "hookId": "5640f2ea-9f59-4d2b-867d-f575d20dbbc1", + "hookId": "f761c7b1-0173-4a22-ae20-28c62e9b8050", "hookName": "hookw4cgJZAG", - "hookType": "Webhook", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "foo@contoso.com" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -91,11 +84,8 @@ "Content-Length": "648", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7b39244ed73fed4d835db6170f5920a4-30c2c8375a9a4b45-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ee1848394edaf14d933a4b603351696d-8162e9843cbc4a4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "0fd4e100f899b70bbd58eb388638fffc", "x-ms-return-client-request-id": "true" @@ -104,7 +94,7 @@ "name": "configfKQJczgV", "crossMetricsOperator": "XOR", "hookIds": [ - "5640f2ea-9f59-4d2b-867d-f575d20dbbc1" + "f761c7b1-0173-4a22-ae20-28c62e9b8050" ], "metricAlertingConfigurations": [ { @@ -136,28 +126,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "6f2ff1db-e481-4344-9c21-f1cb078127d9", + "apim-request-id": "e9b26b56-d6e4-449e-a7d1-1afa86a33a41", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:06 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "Date": "Fri, 04 Jun 2021 10:26:54 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "153", - "X-Request-ID": "6f2ff1db-e481-4344-9c21-f1cb078127d9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "160", + "x-request-id": "e9b26b56-d6e4-449e-a7d1-1afa86a33a41" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-7b39244ed73fed4d835db6170f5920a4-943c6deec7ef3040-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ee1848394edaf14d933a4b603351696d-3f81fd3daa25fd4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "495a929927814c963a0d1b8d6ee08ff6", "x-ms-return-client-request-id": "true" @@ -165,22 +152,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "132787a1-0487-4812-abad-30af8e7ac6a6", - "Content-Length": "767", + "apim-request-id": "66f1b205-d47b-4d10-bb5c-8ce2deb63110", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:07 GMT", + "Date": "Fri, 04 Jun 2021 10:26:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "100", - "X-Request-ID": "132787a1-0487-4812-abad-30af8e7ac6a6" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "114", + "x-request-id": "66f1b205-d47b-4d10-bb5c-8ce2deb63110" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "814fe014-b1d6-4b11-b378-91afded08741", + "anomalyAlertingConfigurationId": "519b1538-7db2-4724-95df-fb13fb662abf", "name": "configfKQJczgV", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "5640f2ea-9f59-4d2b-867d-f575d20dbbc1" + "f761c7b1-0173-4a22-ae20-28c62e9b8050" ], "metricAlertingConfigurations": [ { @@ -201,7 +189,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -213,16 +202,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b4ea98ba3dd51a469374c8941aac21f3-871098dda8c7e74a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-1f034037b2744445aeb9f8a33f47672a-297849b13ccf5946-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "b7456d986367c85e4b3394408b9038d7", "x-ms-return-client-request-id": "true" @@ -230,22 +216,23 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "dd9f8810-32cc-4b8f-8d40-4e0f0abc8acd", - "Content-Length": "767", + "apim-request-id": "462350fa-dff2-4706-8c07-6e0e47085a89", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:07 GMT", + "Date": "Fri, 04 Jun 2021 10:26:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "105", - "X-Request-ID": "dd9f8810-32cc-4b8f-8d40-4e0f0abc8acd" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "115", + "x-request-id": "462350fa-dff2-4706-8c07-6e0e47085a89" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "814fe014-b1d6-4b11-b378-91afded08741", + "anomalyAlertingConfigurationId": "519b1538-7db2-4724-95df-fb13fb662abf", "name": "configfKQJczgV", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "5640f2ea-9f59-4d2b-867d-f575d20dbbc1" + "f761c7b1-0173-4a22-ae20-28c62e9b8050" ], "metricAlertingConfigurations": [ { @@ -266,7 +253,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -278,18 +266,15 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "709", + "Content-Length": "724", "Content-Type": "application/merge-patch\u002Bjson", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-346cf0c29b058940b619fa5e6e9d03b5-95379cd23f7b764d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6d6ecaa29d68024ebb075c16af5a0188-c23729368c8d1e44-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "8656fac4d485d9d14b87d48cdd7d49dc", "x-ms-return-client-request-id": "true" @@ -312,6 +297,7 @@ "lower": 5, "upper": 15, "direction": "Both", + "type": "Value", "triggerForMissing": false } }, @@ -332,29 +318,67 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "3afbd478-5d8b-4443-8b58-9f155cbc5cfe", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:07 GMT", + "apim-request-id": "d52204e9-399c-4ef1-99fb-1efa4f530e85", + "Content-Length": "828", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:26:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "148", - "X-Request-ID": "3afbd478-5d8b-4443-8b58-9f155cbc5cfe" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "175", + "x-request-id": "d52204e9-399c-4ef1-99fb-1efa4f530e85" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "519b1538-7db2-4724-95df-fb13fb662abf", + "name": "configfKQJczgV", + "description": "This hook was created to test the .NET client.", + "crossMetricsOperator": "AND", + "splitAlertByDimensions": [], + "hookIds": [], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "valueFilter": { + "lower": 5.0, + "upper": 15.0, + "direction": "Both", + "triggerForMissing": false, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "TopN", + "negationOperation": true, + "topNAnomalyScope": { + "top": 50, + "period": 40, + "minTopCount": 30 + }, + "snoozeFilter": { + "autoSnooze": 4, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b72df48a0d686f48ba054b26477a2f8b-cdbd508345277848-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-c41415f3677a4d459a96fb7ef5c4b71e-c223577d25b1d946-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "19a0f4c948f336943491fd4d9355c0aa", "x-ms-return-client-request-id": "true" @@ -362,20 +386,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fc5420b5-6598-4f82-b837-be1e48e7323f", - "Content-Length": "785", + "apim-request-id": "eee38ec8-ace6-4c55-9bd0-980fe26fdb4d", + "Content-Length": "828", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:07 GMT", + "Date": "Fri, 04 Jun 2021 10:26:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "fc5420b5-6598-4f82-b837-be1e48e7323f" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "98", + "x-request-id": "eee38ec8-ace6-4c55-9bd0-980fe26fdb4d" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "814fe014-b1d6-4b11-b378-91afded08741", + "anomalyAlertingConfigurationId": "519b1538-7db2-4724-95df-fb13fb662abf", "name": "configfKQJczgV", "description": "This hook was created to test the .NET client.", "crossMetricsOperator": "AND", + "splitAlertByDimensions": [], "hookIds": [], "metricAlertingConfigurations": [ { @@ -390,7 +415,8 @@ "lower": 5.0, "upper": 15.0, "direction": "Both", - "triggerForMissing": false + "triggerForMissing": false, + "type": "Value" } }, { @@ -412,16 +438,13 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/814fe014-b1d6-4b11-b378-91afded08741", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/519b1538-7db2-4724-95df-fb13fb662abf", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-4aa50382baa094408020560b645a474c-4c2f6a1ff1840241-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-04f4bd7c51418841bd14d2fa5384de6d-1cec92dc13a7be4d-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "73c943d5088ac4719b6c6bdf8fd2ebcd", "x-ms-return-client-request-id": "true" @@ -429,27 +452,24 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "9d6fbb73-bf8b-41c2-8239-6fc62c6931ff", + "apim-request-id": "e08c99a5-fd6a-4d0d-83da-fbfc58fce915", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:07 GMT", + "Date": "Fri, 04 Jun 2021 10:26:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "148", - "X-Request-ID": "9d6fbb73-bf8b-41c2-8239-6fc62c6931ff" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "133", + "x-request-id": "e08c99a5-fd6a-4d0d-83da-fbfc58fce915" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5640f2ea-9f59-4d2b-867d-f575d20dbbc1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f761c7b1-0173-4a22-ae20-28c62e9b8050", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-64b3702971b29747a296c37f1996cb02-e149a0ea2561914e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-f272cff789105e4cb08a4b49cb48a020-52402e4f545aa64b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "9676b7ea1ef07ce4652052f3d68346f5", "x-ms-return-client-request-id": "true" @@ -457,13 +477,13 @@ "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "235b0299-e209-4395-ac86-71462a9e6488", + "apim-request-id": "f1335b9d-d863-498f-ae14-f3fe17a3627a", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:08 GMT", + "Date": "Fri, 04 Jun 2021 10:26:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "174", - "X-Request-ID": "235b0299-e209-4395-ac86-71462a9e6488" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "185", + "x-request-id": "f1335b9d-d863-498f-ae14-f3fe17a3627a" }, "ResponseBody": [] } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False).json index bc42328b254c6..38452f705148d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False).json @@ -5,81 +5,74 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afe1176b41387642b310ca2cb2e78e4e-52d4885956f98d46-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-376996afacf7ef4d98c19c0afc7109a9-302c3922fce3a14a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "0eac34b02a06755ca73d87eef4c377d2", + "x-ms-client-request-id": "ed58a064843411fc2f29240b32955245", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", - "hookName": "hookLf6AQTOw" + "hookType": "Email", + "hookName": "hookXFxl3hI3" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "3f3205a1-f680-4744-a2f1-432767eca603", + "apim-request-id": "9e747693-e8ef-401e-96d6-ff099e654296", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:57 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5590d944-58fb-488e-93cd-e96819b77b39", + "Date": "Fri, 04 Jun 2021 10:26:36 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f067760c-9186-405f-8e50-c8a7367f2ddc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "711", - "X-Request-ID": "3f3205a1-f680-4744-a2f1-432767eca603" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "650", + "x-request-id": "9e747693-e8ef-401e-96d6-ff099e654296" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5590d944-58fb-488e-93cd-e96819b77b39", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f067760c-9186-405f-8e50-c8a7367f2ddc", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-afe1176b41387642b310ca2cb2e78e4e-0231ec0ee9e6a241-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-376996afacf7ef4d98c19c0afc7109a9-5177cea9b8c5a64a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "92f6ab81f4abd4e4fd4dfa4fbc5c5053", + "x-ms-client-request-id": "1204d670485457bf040eaa103b04b0fb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6b71948a-f1c7-4ba0-9a43-3ab648cc458b", - "Content-Length": "296", + "apim-request-id": "6ba4908b-b75b-4787-b24e-d141f7af7462", + "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:57 GMT", + "Date": "Fri, 04 Jun 2021 10:26:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "154", - "X-Request-ID": "6b71948a-f1c7-4ba0-9a43-3ab648cc458b" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "167", + "x-request-id": "6ba4908b-b75b-4787-b24e-d141f7af7462" }, "ResponseBody": { - "hookId": "5590d944-58fb-488e-93cd-e96819b77b39", - "hookName": "hookLf6AQTOw", - "hookType": "Webhook", + "hookId": "f067760c-9186-405f-8e50-c8a7367f2ddc", + "hookName": "hookXFxl3hI3", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "foo@contoso.com" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -91,20 +84,17 @@ "Content-Length": "648", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e5c6e89946734d40bbf9e3c39631d886-5676e19aeae5d94c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-fb192f4dcc9c0947941aa5bf48741536-370feda7f8758d46-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "6c028a76d878df88cf3f3ac31bd590bc", + "x-ms-client-request-id": "bb8dbcf45244123be9eef4d7581ad41c", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configriK93wQE", + "name": "configIEfwmZCt", "crossMetricsOperator": "XOR", "hookIds": [ - "5590d944-58fb-488e-93cd-e96819b77b39" + "f067760c-9186-405f-8e50-c8a7367f2ddc" ], "metricAlertingConfigurations": [ { @@ -136,51 +126,49 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "e1982c97-7602-4e37-aa64-03ff9b87b989", + "apim-request-id": "01e1c00e-2215-49c7-af45-e322f99f8544", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "Date": "Fri, 04 Jun 2021 10:26:36 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "139", - "X-Request-ID": "e1982c97-7602-4e37-aa64-03ff9b87b989" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "172", + "x-request-id": "01e1c00e-2215-49c7-af45-e322f99f8544" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e5c6e89946734d40bbf9e3c39631d886-cf7a0dd93b491040-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-fb192f4dcc9c0947941aa5bf48741536-74034736d584cb47-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "b910d84f0d2f4bb8ed338d82c856aae7", + "x-ms-client-request-id": "25e901e1ebd92bd578281c2ec903c1cc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a82a66a4-21dd-4ca2-9762-11d52268db51", - "Content-Length": "767", + "apim-request-id": "72e85692-bf96-4266-85c4-a6f4c6982407", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "Date": "Fri, 04 Jun 2021 10:26:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86", - "X-Request-ID": "a82a66a4-21dd-4ca2-9762-11d52268db51" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5227", + "x-request-id": "72e85692-bf96-4266-85c4-a6f4c6982407" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "7d6b4502-a83d-4202-a61f-4285a558d6c0", - "name": "configriK93wQE", + "anomalyAlertingConfigurationId": "3e0a4939-732f-43b7-a117-ac6267675aca", + "name": "configIEfwmZCt", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "5590d944-58fb-488e-93cd-e96819b77b39" + "f067760c-9186-405f-8e50-c8a7367f2ddc" ], "metricAlertingConfigurations": [ { @@ -201,7 +189,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -213,39 +202,37 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0e314fd83b8a7a48a16a68788fa30168-89a0d4b728f2ac48-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-54d0b607cc1f834a83c551a937854d12-630fdff23e883441-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "211cdc4478f1245bc41b807c218c378b", + "x-ms-client-request-id": "971e111503bab212d297274c0fd9a3d4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e3dc7d1f-3da1-417d-bbf3-f0b5ebbb1d49", - "Content-Length": "767", + "apim-request-id": "f5d78884-110b-40ca-8834-70298525c706", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "Date": "Fri, 04 Jun 2021 10:26:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "85", - "X-Request-ID": "e3dc7d1f-3da1-417d-bbf3-f0b5ebbb1d49" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "103", + "x-request-id": "f5d78884-110b-40ca-8834-70298525c706" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "7d6b4502-a83d-4202-a61f-4285a558d6c0", - "name": "configriK93wQE", + "anomalyAlertingConfigurationId": "3e0a4939-732f-43b7-a117-ac6267675aca", + "name": "configIEfwmZCt", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "5590d944-58fb-488e-93cd-e96819b77b39" + "f067760c-9186-405f-8e50-c8a7367f2ddc" ], "metricAlertingConfigurations": [ { @@ -266,7 +253,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -278,28 +266,25 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "690", + "Content-Length": "705", "Content-Type": "application/merge-patch\u002Bjson", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-07603ec01b0ac7439aa15bdb8428ff14-81fce346405c2b40-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-50421b3fa6920d43849f8f45553a398d-3535ceedeab1774f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "4fd13ee1ad8869ead1b77e444a051679", + "x-ms-client-request-id": "826db02e9bba0818e662421b350c49e5", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configriK93wQE", + "name": "configIEfwmZCt", "description": "", "crossMetricsOperator": "OR", "hookIds": [ - "5590d944-58fb-488e-93cd-e96819b77b39" + "f067760c-9186-405f-8e50-c8a7367f2ddc" ], "metricAlertingConfigurations": [ { @@ -319,6 +304,7 @@ "lower": 10, "upper": 20, "direction": "Both", + "type": "Value", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "triggerForMissing": true } @@ -330,52 +316,89 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "26f40e20-52bd-4dec-8468-4d2112c624a1", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "apim-request-id": "0b54a2a4-eb13-4a06-8f9a-57dfa4dd8258", + "Content-Length": "809", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:26:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "131", - "X-Request-ID": "26f40e20-52bd-4dec-8468-4d2112c624a1" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "196", + "x-request-id": "0b54a2a4-eb13-4a06-8f9a-57dfa4dd8258" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "3e0a4939-732f-43b7-a117-ac6267675aca", + "name": "configIEfwmZCt", + "description": "", + "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], + "hookIds": [ + "f067760c-9186-405f-8e50-c8a7367f2ddc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "Medium" + }, + "snoozeFilter": { + "autoSnooze": 12, + "snoozeScope": "Series", + "onlyForSuccessive": true + }, + "valueFilter": { + "lower": 10.0, + "upper": 20.0, + "direction": "Both", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "triggerForMissing": true, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": true + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c5a682a7f625d0409fd851931e2e1d9d-d3108952f1dae945-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-d9702c94007c3746a9d82c6de7e5c49c-53ebfc1c5a9cba48-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "3f7e53956fb9d7ca7cecf4148d3c2961", + "x-ms-client-request-id": "46c1272d3dfbdd62ee375341c3891b9f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "177d260a-51ed-4a00-97ad-3e76e5457165", - "Content-Length": "766", + "apim-request-id": "06eb713b-0ca3-4802-9ee0-6521c7735169", + "Content-Length": "809", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "Date": "Fri, 04 Jun 2021 10:26:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83", - "X-Request-ID": "177d260a-51ed-4a00-97ad-3e76e5457165" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "101", + "x-request-id": "06eb713b-0ca3-4802-9ee0-6521c7735169" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "7d6b4502-a83d-4202-a61f-4285a558d6c0", - "name": "configriK93wQE", + "anomalyAlertingConfigurationId": "3e0a4939-732f-43b7-a117-ac6267675aca", + "name": "configIEfwmZCt", "description": "", "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], "hookIds": [ - "5590d944-58fb-488e-93cd-e96819b77b39" + "f067760c-9186-405f-8e50-c8a7367f2ddc" ], "metricAlertingConfigurations": [ { @@ -396,7 +419,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -408,58 +432,52 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/7d6b4502-a83d-4202-a61f-4285a558d6c0", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/3e0a4939-732f-43b7-a117-ac6267675aca", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-079f370e753d8749b370b6596cf737f0-3fd2a0058b25394d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-26993c297dfbca4a83565ba1814fbdd9-0cb545091be26342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "89a102fc5a84965ef2b34f3af917d9bf", + "x-ms-client-request-id": "190047853e957a12f816b157c1f67cc5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "95b8440e-c154-46dc-bab0-191b2304e54e", + "apim-request-id": "790167ec-2ba9-4a51-98db-09c05240df3c", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "Date": "Fri, 04 Jun 2021 10:26:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "155", - "X-Request-ID": "95b8440e-c154-46dc-bab0-191b2304e54e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "218", + "x-request-id": "790167ec-2ba9-4a51-98db-09c05240df3c" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/5590d944-58fb-488e-93cd-e96819b77b39", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/f067760c-9186-405f-8e50-c8a7367f2ddc", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-838acc50caa39144bc1169d7609e7d31-c194967eec100d48-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2ffe5dc07d38b4469eda2b586c5b43aa-969b29fee4a9f243-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "cde60604f70d71d174fad39cb9d5dc94", + "x-ms-client-request-id": "e81f424e5c18f1d94d90948247d7445d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "841e909f-21e6-4027-a6a5-d94504443789", + "apim-request-id": "e6b4b6c0-2194-4c8d-b5c8-1d388bdd2115", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:58 GMT", + "Date": "Fri, 04 Jun 2021 10:26:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "173", - "X-Request-ID": "841e909f-21e6-4027-a6a5-d94504443789" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "187", + "x-request-id": "e6b4b6c0-2194-4c8d-b5c8-1d388bdd2115" }, "ResponseBody": [] } @@ -469,6 +487,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "1528425273" + "RandomSeed": "1641504589" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False)Async.json index f6b26afcda946..94b8770ea5f0b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(False)Async.json @@ -5,81 +5,74 @@ "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-69cec5b754bcaf4bb3a4000b6b4bbca0-3ffcaba439b28546-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-09f0d14e8715cb44a86171a8c3267b90-8f38a1507f327345-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "cd4527f2f900ceb648a31ba495547ca8", + "x-ms-client-request-id": "f51a7fba05098112da4dbfd7f425efa5", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", - "hookName": "hookEmq5K89I" + "hookType": "Email", + "hookName": "hookHQAKEf0B" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "a39a6cac-fcfc-46a8-82f4-85f14c36ddff", + "apim-request-id": "f781332e-b828-4de0-b029-c25729fe6b80", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:14 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/6ce1b338-a1fc-4345-ad95-2b6a19df44c1", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "848", - "X-Request-ID": "a39a6cac-fcfc-46a8-82f4-85f14c36ddff" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "323", + "x-request-id": "f781332e-b828-4de0-b029-c25729fe6b80" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/6ce1b338-a1fc-4345-ad95-2b6a19df44c1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-69cec5b754bcaf4bb3a4000b6b4bbca0-b7b9c2d5fea8c943-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-09f0d14e8715cb44a86171a8c3267b90-1d3b3f0a2f9c7642-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "6258edc09dc37747a155e47c972c2332", + "x-ms-client-request-id": "1fda89c1584222658b1dab6b806f3f83", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "81f370f8-3df4-4c59-993c-2c6d0c259f5e", - "Content-Length": "296", + "apim-request-id": "a8dec093-1c28-40c0-a55b-130cd35460d2", + "Content-Length": "204", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:14 GMT", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "159", - "X-Request-ID": "81f370f8-3df4-4c59-993c-2c6d0c259f5e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "161", + "x-request-id": "a8dec093-1c28-40c0-a55b-130cd35460d2" }, "ResponseBody": { - "hookId": "6ce1b338-a1fc-4345-ad95-2b6a19df44c1", - "hookName": "hookEmq5K89I", - "hookType": "Webhook", + "hookId": "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc", + "hookName": "hookHQAKEf0B", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "foo@contoso.com" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -91,20 +84,17 @@ "Content-Length": "648", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ef3453b226c1984f8f50ddbf5980379c-a936b1fdf6bcfd42-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6519117dd0f7e7469d2123ee3213450f-62eaf33e76c1b042-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "2ccfdcd193e5e24edc945874c974d154", + "x-ms-client-request-id": "5347b952b5943204e35937e195d89d61", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configTFFIyV0C", + "name": "configbpm8WawA", "crossMetricsOperator": "XOR", "hookIds": [ - "6ce1b338-a1fc-4345-ad95-2b6a19df44c1" + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" ], "metricAlertingConfigurations": [ { @@ -136,51 +126,49 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "582e64d3-d60a-4df8-8c43-c9bf912b05a2", + "apim-request-id": "2029b294-4641-4c40-8a0c-37528ffb9c09", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "170", - "X-Request-ID": "582e64d3-d60a-4df8-8c43-c9bf912b05a2" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "152", + "x-request-id": "2029b294-4641-4c40-8a0c-37528ffb9c09" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-ef3453b226c1984f8f50ddbf5980379c-07b999fb152e2949-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-6519117dd0f7e7469d2123ee3213450f-b021db4ede989b48-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "aa2bcddf3a151b377fe95ee168e9192c", + "x-ms-client-request-id": "ec6af819a65a6a000e3c1980440157e8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "15a80f02-9db5-4490-930c-3145e0536c79", - "Content-Length": "767", + "apim-request-id": "13443ae9-417e-41cd-8b28-225c4fc8cecc", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "107", - "X-Request-ID": "15a80f02-9db5-4490-930c-3145e0536c79" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "93", + "x-request-id": "13443ae9-417e-41cd-8b28-225c4fc8cecc" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d599faa5-fccb-4e45-8ff0-d1982621c742", - "name": "configTFFIyV0C", + "anomalyAlertingConfigurationId": "07376230-1191-40fe-9b88-ef4e86bafe40", + "name": "configbpm8WawA", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "6ce1b338-a1fc-4345-ad95-2b6a19df44c1" + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" ], "metricAlertingConfigurations": [ { @@ -201,7 +189,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -213,39 +202,37 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dd8c69f2227eb84abef3835f8dcc0123-68a783f7e12bd943-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-852158de8ffd83459c382d27862a8af7-f195c98a83357242-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "e7903e7d1bcd0d9207029f02d4af69d1", + "x-ms-client-request-id": "89cd6fdd1210d58e18798827385deee6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "73abdc32-8b9b-4b6f-8887-f1732a0814e6", - "Content-Length": "767", + "apim-request-id": "7f8c63bc-e2ea-4181-94f6-9611e812a585", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "112", - "X-Request-ID": "73abdc32-8b9b-4b6f-8887-f1732a0814e6" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "93", + "x-request-id": "7f8c63bc-e2ea-4181-94f6-9611e812a585" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d599faa5-fccb-4e45-8ff0-d1982621c742", - "name": "configTFFIyV0C", + "anomalyAlertingConfigurationId": "07376230-1191-40fe-9b88-ef4e86bafe40", + "name": "configbpm8WawA", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "6ce1b338-a1fc-4345-ad95-2b6a19df44c1" + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" ], "metricAlertingConfigurations": [ { @@ -266,7 +253,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -278,28 +266,25 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", - "Content-Length": "690", + "Content-Length": "705", "Content-Type": "application/merge-patch\u002Bjson", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-046a7c287787784e9a08b5db3f75eeb0-d407ad972832cd48-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-90f1361e8061604589d5b6ff524a368e-ae0c0e56d0cfcc46-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "c1b396e2c5689604a4b3acfb356d79f2", + "x-ms-client-request-id": "54d47ed6bf6dab10b8dd45589c83ede1", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configTFFIyV0C", + "name": "configbpm8WawA", "description": "", "crossMetricsOperator": "OR", "hookIds": [ - "6ce1b338-a1fc-4345-ad95-2b6a19df44c1" + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" ], "metricAlertingConfigurations": [ { @@ -319,6 +304,7 @@ "lower": 10, "upper": 20, "direction": "Both", + "type": "Value", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "triggerForMissing": true } @@ -330,52 +316,89 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "bec7cca9-2e6d-4578-a6a4-76ab8529036b", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "apim-request-id": "168ee692-8fc2-4247-b379-bffe05246e7f", + "Content-Length": "809", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:27:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "136", - "X-Request-ID": "bec7cca9-2e6d-4578-a6a4-76ab8529036b" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "169", + "x-request-id": "168ee692-8fc2-4247-b379-bffe05246e7f" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "07376230-1191-40fe-9b88-ef4e86bafe40", + "name": "configbpm8WawA", + "description": "", + "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], + "hookIds": [ + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "Medium" + }, + "snoozeFilter": { + "autoSnooze": 12, + "snoozeScope": "Series", + "onlyForSuccessive": true + }, + "valueFilter": { + "lower": 10.0, + "upper": 20.0, + "direction": "Both", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "triggerForMissing": true, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": true + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-378cf974a493fa46bdceb1df2df833e3-0d9c34acefebab49-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-737eeae3fd4eb14282d6a47166fc84d3-0477f2088f6b634a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "8af62b7be9e4c4873b1ea3139b3447d0", + "x-ms-client-request-id": "26044e02140b07506a95d3e11ed931b0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "24423a8b-4331-4e79-851c-0b78ad6f40ec", - "Content-Length": "766", + "apim-request-id": "ac9e3690-5c67-465b-87fc-20e5d255e440", + "Content-Length": "809", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "Date": "Fri, 04 Jun 2021 10:27:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "109", - "X-Request-ID": "24423a8b-4331-4e79-851c-0b78ad6f40ec" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "106", + "x-request-id": "ac9e3690-5c67-465b-87fc-20e5d255e440" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "d599faa5-fccb-4e45-8ff0-d1982621c742", - "name": "configTFFIyV0C", + "anomalyAlertingConfigurationId": "07376230-1191-40fe-9b88-ef4e86bafe40", + "name": "configbpm8WawA", "description": "", "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], "hookIds": [ - "6ce1b338-a1fc-4345-ad95-2b6a19df44c1" + "85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc" ], "metricAlertingConfigurations": [ { @@ -396,7 +419,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -408,58 +432,52 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/d599faa5-fccb-4e45-8ff0-d1982621c742", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/07376230-1191-40fe-9b88-ef4e86bafe40", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2221eb2b571c0943ad5a70a91bf1ba09-30b9cb2a81353b47-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ca7bf33239cac84ea7ca28551e0a8a8b-f29f2169bfbd3046-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "d2fe8c805836b8c43afa43196e96d899", + "x-ms-client-request-id": "c5aa324d022d1d7b5e21d033cc353894", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "b5ac4576-839e-40d7-be46-6ad61fd7124c", + "apim-request-id": "6538f6ed-7b96-4426-9c51-d4ae0b6e2f07", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "Date": "Fri, 04 Jun 2021 10:27:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "150", - "X-Request-ID": "b5ac4576-839e-40d7-be46-6ad61fd7124c" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "138", + "x-request-id": "6538f6ed-7b96-4426-9c51-d4ae0b6e2f07" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/6ce1b338-a1fc-4345-ad95-2b6a19df44c1", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/85e3e0cb-26a1-4cbf-bc0e-ff340c5aeabc", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6764c83a304e71418c476904709e86ee-027aaecb27f1f947-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-47a4122e44ad8247bec54a8c30c8a1c6-efed9783553a544c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", - "x-ms-client-request-id": "a887ac89dfb8f9ed0fef854a21f1fb6f", + "x-ms-client-request-id": "ea24a68bc858c1db2dccead7eb2f8dde", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "5fb7a36e-f6cd-4f24-b829-4eb8ecf139a0", + "apim-request-id": "5320f8b2-96b0-45d0-822f-e49847bfebd6", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:15 GMT", + "Date": "Fri, 04 Jun 2021 10:27:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "182", - "X-Request-ID": "5fb7a36e-f6cd-4f24-b829-4eb8ecf139a0" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "207", + "x-request-id": "5320f8b2-96b0-45d0-822f-e49847bfebd6" }, "ResponseBody": [] } @@ -469,6 +487,6 @@ "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", - "RandomSeed": "118922385" + "RandomSeed": "1970278165" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True).json index d8952402744d4..6c488dc5ef33e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True).json @@ -6,78 +6,71 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", - "traceparent": "00-ea9120dd754eed4f9b506a007d56c8db-6fbf498bf5a3504d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "3961049ce589e693e0c78480b2e3f8fd", + "traceparent": "00-3897d3f817ab2540aa8e6eb0dca52e27-05354b1328ef9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a2ef29f511b604b7d6f3ec843189718b", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", - "hookName": "hookNOAhi9yH" + "hookType": "Email", + "hookName": "hook2iLEvC5I" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "2d44217e-4d25-4f78-9aec-0e35044f530e", + "apim-request-id": "76ec090a-4ea9-4192-9950-bd133f49d4dd", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:55 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7af9a1c7-71f8-4c53-b94f-aa91502da12c", + "Date": "Fri, 04 Jun 2021 10:26:24 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c475c953-1c71-49b4-8844-79f6937438c8", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1358", - "X-Request-ID": "2d44217e-4d25-4f78-9aec-0e35044f530e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "629", + "x-request-id": "76ec090a-4ea9-4192-9950-bd133f49d4dd" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7af9a1c7-71f8-4c53-b94f-aa91502da12c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c475c953-1c71-49b4-8844-79f6937438c8", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ea9120dd754eed4f9b506a007d56c8db-73b7fc738a8a284c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "bb24e6b1da50e3415a74ab92e457485b", + "traceparent": "00-3897d3f817ab2540aa8e6eb0dca52e27-9079e71c25535940-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d122fe4fcb666564c3f6840468f0b7a3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f46c7056-1cb3-4819-bfba-6d143d1ba057", - "Content-Length": "317", + "apim-request-id": "456322e9-9643-473c-96f7-d8eabe2002b8", + "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:55 GMT", + "Date": "Fri, 04 Jun 2021 10:26:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "82", - "X-Request-ID": "f46c7056-1cb3-4819-bfba-6d143d1ba057" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5183", + "x-request-id": "456322e9-9643-473c-96f7-d8eabe2002b8" }, "ResponseBody": { - "hookId": "7af9a1c7-71f8-4c53-b94f-aa91502da12c", - "hookName": "hookNOAhi9yH", - "hookType": "Webhook", + "hookId": "c475c953-1c71-49b4-8844-79f6937438c8", + "hookName": "hook2iLEvC5I", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "94dc466b-52e4-4678-892d-70a0c45c5f42" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -89,19 +82,16 @@ "Authorization": "Sanitized", "Content-Length": "648", "Content-Type": "application/json", - "traceparent": "00-abee9aa2e1fb4c42aecdea6e1e774038-547f0d1e50c4894a-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "7a7b2464a9c47851cfb384ee0bdfc7c1", + "traceparent": "00-0a3ce0c14d1ba748a0046615a006b9ea-16a278e55a9f6c4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a2a78ff8e60a8becf722ece4c5971f2a", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configW9S66YaR", + "name": "configfQrvhxDm", "crossMetricsOperator": "XOR", "hookIds": [ - "7af9a1c7-71f8-4c53-b94f-aa91502da12c" + "c475c953-1c71-49b4-8844-79f6937438c8" ], "metricAlertingConfigurations": [ { @@ -133,50 +123,48 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "be6eff27-50e4-40ef-b9a9-cd92c50e741e", + "apim-request-id": "46bc9c32-5ca6-43a2-afb0-b91a29bb7d7b", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:55 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "Date": "Fri, 04 Jun 2021 10:26:29 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "80", - "X-Request-ID": "be6eff27-50e4-40ef-b9a9-cd92c50e741e" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "107", + "x-request-id": "46bc9c32-5ca6-43a2-afb0-b91a29bb7d7b" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-abee9aa2e1fb4c42aecdea6e1e774038-d19b3c718b607e41-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "14de7dc2003a89017e290f78130e3e64", + "traceparent": "00-0a3ce0c14d1ba748a0046615a006b9ea-d9bbb7154e399d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bfde8ac5b28de59c3c49b570c9962c22", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d1c9e341-b1e2-426b-a500-48602138d779", - "Content-Length": "767", + "apim-request-id": "d7ce8b6a-6921-4282-89c2-0ba89c972868", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:55 GMT", + "Date": "Fri, 04 Jun 2021 10:26:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "38", - "X-Request-ID": "d1c9e341-b1e2-426b-a500-48602138d779" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "34", + "x-request-id": "d7ce8b6a-6921-4282-89c2-0ba89c972868" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "023d9881-1ca6-4e16-9722-202d31f2a89c", - "name": "configW9S66YaR", + "anomalyAlertingConfigurationId": "f392d7d0-f2ba-4681-a139-3c5a53c41a63", + "name": "configfQrvhxDm", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "7af9a1c7-71f8-4c53-b94f-aa91502da12c" + "c475c953-1c71-49b4-8844-79f6937438c8" ], "metricAlertingConfigurations": [ { @@ -197,7 +185,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -209,38 +198,36 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-ff087cb932a7b54e927de33eef25521c-7f6bad7bccd35540-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "2b560c54c75fb11f2332c231d25a4f90", + "traceparent": "00-225bf5a9fbe59e4b83214530d9882312-47eeb851c49d0744-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d7d9e8d0c124dd5a0af90c4504d3dd38", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "deeab677-240e-4a17-a43b-4ce74cc11dae", - "Content-Length": "767", + "apim-request-id": "dfa9602e-0ef3-4a20-9d64-b71d2a7282d7", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:55 GMT", + "Date": "Fri, 04 Jun 2021 10:26:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "33", - "X-Request-ID": "deeab677-240e-4a17-a43b-4ce74cc11dae" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5095", + "x-request-id": "dfa9602e-0ef3-4a20-9d64-b71d2a7282d7" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "023d9881-1ca6-4e16-9722-202d31f2a89c", - "name": "configW9S66YaR", + "anomalyAlertingConfigurationId": "f392d7d0-f2ba-4681-a139-3c5a53c41a63", + "name": "configfQrvhxDm", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "7af9a1c7-71f8-4c53-b94f-aa91502da12c" + "c475c953-1c71-49b4-8844-79f6937438c8" ], "metricAlertingConfigurations": [ { @@ -261,7 +248,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -273,27 +261,24 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "690", + "Content-Length": "705", "Content-Type": "application/merge-patch\u002Bjson", - "traceparent": "00-d2c9b0209f0eab4b8172f981e1e9c619-2702d20c1077804e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "41270e727d6e63de22f1fb9a99d865c0", + "traceparent": "00-a744d40fc38b3d4ab7780e83591efff6-33996f8f35817446-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d41596a26e4e45acf3c266c1317bc261", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configW9S66YaR", + "name": "configfQrvhxDm", "description": "", "crossMetricsOperator": "OR", "hookIds": [ - "7af9a1c7-71f8-4c53-b94f-aa91502da12c" + "c475c953-1c71-49b4-8844-79f6937438c8" ], "metricAlertingConfigurations": [ { @@ -313,6 +298,7 @@ "lower": 10, "upper": 20, "direction": "Both", + "type": "Value", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "triggerForMissing": true } @@ -324,51 +310,88 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2126279b-bc2a-4a53-afce-de9bde2bc72d", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:56 GMT", + "apim-request-id": "330dead9-b6c8-47d4-b7c8-eba4dd65329b", + "Content-Length": "809", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "87", - "X-Request-ID": "2126279b-bc2a-4a53-afce-de9bde2bc72d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "381", + "x-request-id": "330dead9-b6c8-47d4-b7c8-eba4dd65329b" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "f392d7d0-f2ba-4681-a139-3c5a53c41a63", + "name": "configfQrvhxDm", + "description": "", + "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], + "hookIds": [ + "c475c953-1c71-49b4-8844-79f6937438c8" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "Medium" + }, + "snoozeFilter": { + "autoSnooze": 12, + "snoozeScope": "Series", + "onlyForSuccessive": true + }, + "valueFilter": { + "lower": 10.0, + "upper": 20.0, + "direction": "Both", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "triggerForMissing": true, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": true + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-d52452731c12e947aa21cd0b0a5cd79c-582de2a737749643-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ff9920749b89fb625e2df0073ed0b724", + "traceparent": "00-0e1f94fe0df5bc43b08dadaa06f0087f-0815125a6e1f9748-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dd13c9f647be03062f01b493a656e168", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "eab03d55-a9c1-434e-b26e-a0e20530f990", - "Content-Length": "766", + "apim-request-id": "a2a49b85-5f16-4ea3-8858-3f9c6ee2c60a", + "Content-Length": "809", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:52:56 GMT", + "Date": "Fri, 04 Jun 2021 10:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "42", - "X-Request-ID": "eab03d55-a9c1-434e-b26e-a0e20530f990" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "149", + "x-request-id": "a2a49b85-5f16-4ea3-8858-3f9c6ee2c60a" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "023d9881-1ca6-4e16-9722-202d31f2a89c", - "name": "configW9S66YaR", + "anomalyAlertingConfigurationId": "f392d7d0-f2ba-4681-a139-3c5a53c41a63", + "name": "configfQrvhxDm", "description": "", "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], "hookIds": [ - "7af9a1c7-71f8-4c53-b94f-aa91502da12c" + "c475c953-1c71-49b4-8844-79f6937438c8" ], "metricAlertingConfigurations": [ { @@ -389,7 +412,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -401,56 +425,50 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/023d9881-1ca6-4e16-9722-202d31f2a89c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/f392d7d0-f2ba-4681-a139-3c5a53c41a63", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-914dab86e81d214bb07ac457905a4a3a-c01e20ff8e60ed40-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "04057fd9fde7d6f52ef3096dcc84174b", + "traceparent": "00-018db3a7943d4a40b073126ddd6deb2c-f2d67c1aa977fe48-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "32ce7c6b588162d33c93e4615a99ab8f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "4e1b2f76-ab56-4075-8665-475b3287dbb9", + "apim-request-id": "9b7a928e-da07-4b50-b057-848a37760a3e", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:56 GMT", + "Date": "Fri, 04 Jun 2021 10:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "65", - "X-Request-ID": "4e1b2f76-ab56-4075-8665-475b3287dbb9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "134", + "x-request-id": "9b7a928e-da07-4b50-b057-848a37760a3e" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/7af9a1c7-71f8-4c53-b94f-aa91502da12c", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c475c953-1c71-49b4-8844-79f6937438c8", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-741b3ddc43a8eb4693cadac18ba3f448-25cef2ab083bd046-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b1bd01cd50c0d707ac2ce3408cd62551", + "traceparent": "00-09120e07eb1a0945afc35ec43b6cc524-efbd7e8379360641-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3a4fab3700bf5a7a9011a44cb9199f9c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "e71b44d3-b8ae-4a82-bc24-0420f726ce15", + "apim-request-id": "5b7667e1-d4ac-4496-afb3-a55d9424dbd6", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:52:56 GMT", + "Date": "Fri, 04 Jun 2021 10:26:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "97", - "X-Request-ID": "e71b44d3-b8ae-4a82-bc24-0420f726ce15" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "183", + "x-request-id": "5b7667e1-d4ac-4496-afb3-a55d9424dbd6" }, "ResponseBody": [] } @@ -458,6 +476,6 @@ "Variables": { "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "1743892646" + "RandomSeed": "594193198" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True)Async.json index 61c5cba4cc11d..727aab814e713 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/UpdateAlertConfigurationWithMinimumSetupAndGetInstance(True)Async.json @@ -6,78 +6,71 @@ "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "98", + "Content-Length": "92", "Content-Type": "application/json", - "traceparent": "00-62d309d84a8c2d4c9b5c0b08b738af35-a911f7593601904b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "937228d49065cb80c284eaaaa58ee754", + "traceparent": "00-de6a5ab14c37c041bb2bba6db029f4db-838f6d088e9b7d44-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "beae3b5cd1b3fc5ab7a2bffa77563a4f", "x-ms-return-client-request-id": "true" }, "RequestBody": { "hookParameter": { - "endpoint": "http://contoso.com" + "toList": [ + "fake@email.com" + ] }, - "hookType": "Webhook", - "hookName": "hookWVuKaZlQ" + "hookType": "Email", + "hookName": "hookBbtJKdza" }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "91a7c4d6-6f69-464f-85ba-e2b45d818350", + "apim-request-id": "b418ac94-774b-4b93-b940-66fd30dd394a", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:12 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c0f44f98-6854-47e1-a8a3-2826a53b8eba", + "Date": "Fri, 04 Jun 2021 10:27:19 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/68dcaba3-ee19-4488-9546-32606b243938", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1227", - "X-Request-ID": "91a7c4d6-6f69-464f-85ba-e2b45d818350" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "387", + "x-request-id": "b418ac94-774b-4b93-b940-66fd30dd394a" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c0f44f98-6854-47e1-a8a3-2826a53b8eba", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/68dcaba3-ee19-4488-9546-32606b243938", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-62d309d84a8c2d4c9b5c0b08b738af35-421ce63cd02fe54d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "77924656743a628448a1112d65ad933a", + "traceparent": "00-de6a5ab14c37c041bb2bba6db029f4db-f9f554e4b09e5441-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9c2de96a169a3ab39d59f9950cd6f62f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8d95a441-2b64-4631-9e32-e9e3483eaca4", - "Content-Length": "317", + "apim-request-id": "2e4d6d7f-ad5c-4267-8b37-3fc44391568c", + "Content-Length": "225", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "84", - "X-Request-ID": "8d95a441-2b64-4631-9e32-e9e3483eaca4" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "232", + "x-request-id": "2e4d6d7f-ad5c-4267-8b37-3fc44391568c" }, "ResponseBody": { - "hookId": "c0f44f98-6854-47e1-a8a3-2826a53b8eba", - "hookName": "hookWVuKaZlQ", - "hookType": "Webhook", + "hookId": "68dcaba3-ee19-4488-9546-32606b243938", + "hookName": "hookBbtJKdza", + "hookType": "Email", "externalLink": "", "description": "", "admins": [ "94dc466b-52e4-4678-892d-70a0c45c5f42" ], "hookParameter": { - "endpoint": "http://contoso.com", - "username": "", - "password": "", - "headers": {}, - "certificateKey": "", - "certificatePassword": "" + "toList": [ + "fake@email.com" + ] } } }, @@ -89,19 +82,16 @@ "Authorization": "Sanitized", "Content-Length": "648", "Content-Type": "application/json", - "traceparent": "00-c28c070ef7d63845972a0116820d2519-c7aa58d707d63b4d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "d755fd5047c6f5cc0926f940f821615f", + "traceparent": "00-064416d35f8b7145b9ab38c81e7202bb-38d8cd4aaae57d4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2aee85738a3f453e57773cd299bded45", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configoHufqpvt", + "name": "configS2lunFoI", "crossMetricsOperator": "XOR", "hookIds": [ - "c0f44f98-6854-47e1-a8a3-2826a53b8eba" + "68dcaba3-ee19-4488-9546-32606b243938" ], "metricAlertingConfigurations": [ { @@ -133,50 +123,48 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "529c0236-b789-4a8d-a1db-0a2f734bf7d1", + "apim-request-id": "d9180466-7650-4bcd-b9a5-fc8ef52810f4", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "Date": "Fri, 04 Jun 2021 10:27:19 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "78", - "X-Request-ID": "529c0236-b789-4a8d-a1db-0a2f734bf7d1" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "190", + "x-request-id": "d9180466-7650-4bcd-b9a5-fc8ef52810f4" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-c28c070ef7d63845972a0116820d2519-14ada25383005b4c-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c34a10a4527f1565f0af2df1771babe4", + "traceparent": "00-064416d35f8b7145b9ab38c81e7202bb-a02befb368fecb4c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "59207487c5d7e0f0ac907c64f0d372b1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "395fa879-defc-4f45-a90a-c69ec5f5a4a9", - "Content-Length": "767", + "apim-request-id": "e24de25a-bd8b-45ea-99e1-60393c61e284", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "44", - "X-Request-ID": "395fa879-defc-4f45-a90a-c69ec5f5a4a9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5057", + "x-request-id": "e24de25a-bd8b-45ea-99e1-60393c61e284" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "ab5b44c4-cca5-41c2-b7ba-6cf744660836", - "name": "configoHufqpvt", + "anomalyAlertingConfigurationId": "c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", + "name": "configS2lunFoI", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "c0f44f98-6854-47e1-a8a3-2826a53b8eba" + "68dcaba3-ee19-4488-9546-32606b243938" ], "metricAlertingConfigurations": [ { @@ -197,7 +185,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -209,38 +198,36 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-953375b583b9964d9eb5e084c2d8a8bf-ddca69178c069b4b-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "3d27a06cac1f019cd51b243fb453425a", + "traceparent": "00-e01ac685611c82499b4e2d99920ccc48-c7868830bb420b4a-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1529046b892812fa1bb33d949a2396c1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fe24ca11-dbdf-4797-af39-dc4a46d864ce", - "Content-Length": "767", + "apim-request-id": "874fdcb6-1d50-47e6-add1-2c94c85ccf36", + "Content-Length": "810", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:30 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "35", - "X-Request-ID": "fe24ca11-dbdf-4797-af39-dc4a46d864ce" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5108", + "x-request-id": "874fdcb6-1d50-47e6-add1-2c94c85ccf36" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "ab5b44c4-cca5-41c2-b7ba-6cf744660836", - "name": "configoHufqpvt", + "anomalyAlertingConfigurationId": "c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", + "name": "configS2lunFoI", "description": "", "crossMetricsOperator": "XOR", + "splitAlertByDimensions": [], "hookIds": [ - "c0f44f98-6854-47e1-a8a3-2826a53b8eba" + "68dcaba3-ee19-4488-9546-32606b243938" ], "metricAlertingConfigurations": [ { @@ -261,7 +248,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -273,27 +261,24 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "Content-Length": "690", + "Content-Length": "705", "Content-Type": "application/merge-patch\u002Bjson", - "traceparent": "00-09ce9234f9fc5b498cf3e7624e59b828-d0b906c61f5c0c47-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "9828b8521627fd729740e71619da7eee", + "traceparent": "00-2af950f817c29e4daf1cf9b63950a7b1-4a572fe783495344-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "68df1f262497ad51950d7eaf0eda5584", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "name": "configoHufqpvt", + "name": "configS2lunFoI", "description": "", "crossMetricsOperator": "OR", "hookIds": [ - "c0f44f98-6854-47e1-a8a3-2826a53b8eba" + "68dcaba3-ee19-4488-9546-32606b243938" ], "metricAlertingConfigurations": [ { @@ -313,6 +298,7 @@ "lower": 10, "upper": 20, "direction": "Both", + "type": "Value", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "triggerForMissing": true } @@ -324,51 +310,88 @@ } ] }, - "StatusCode": 204, + "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d353479d-913d-4b38-ab88-983a2813c500", - "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "apim-request-id": "f4254952-b5e4-46ee-be8a-9d1e8a6715e0", + "Content-Length": "809", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 04 Jun 2021 10:27:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "103", - "X-Request-ID": "d353479d-913d-4b38-ab88-983a2813c500" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "5228", + "x-request-id": "f4254952-b5e4-46ee-be8a-9d1e8a6715e0" }, - "ResponseBody": [] + "ResponseBody": { + "anomalyAlertingConfigurationId": "c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", + "name": "configS2lunFoI", + "description": "", + "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], + "hookIds": [ + "68dcaba3-ee19-4488-9546-32606b243938" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "Medium" + }, + "snoozeFilter": { + "autoSnooze": 12, + "snoozeScope": "Series", + "onlyForSuccessive": true + }, + "valueFilter": { + "lower": 10.0, + "upper": 20.0, + "direction": "Both", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "triggerForMissing": true, + "type": "Value" + } + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": true + } + ] + } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-1df6a0811d7f5e47b6a5a230c0e15292-0e47503164c43448-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "57d4157a23f9f73f7349ee632e26619d", + "traceparent": "00-f40edf36940c5b4f9d0bce8182e8a42a-a353668015593642-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "94668a05d893fd1d7a0d3d23875c4588", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0ecde92c-98f3-4ea9-82e9-8a16592f307d", - "Content-Length": "766", + "apim-request-id": "927d23d6-8418-42aa-ab34-6abaa31b144c", + "Content-Length": "809", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34", - "X-Request-ID": "0ecde92c-98f3-4ea9-82e9-8a16592f307d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "44", + "x-request-id": "927d23d6-8418-42aa-ab34-6abaa31b144c" }, "ResponseBody": { - "anomalyAlertingConfigurationId": "ab5b44c4-cca5-41c2-b7ba-6cf744660836", - "name": "configoHufqpvt", + "anomalyAlertingConfigurationId": "c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", + "name": "configS2lunFoI", "description": "", "crossMetricsOperator": "OR", + "splitAlertByDimensions": [], "hookIds": [ - "c0f44f98-6854-47e1-a8a3-2826a53b8eba" + "68dcaba3-ee19-4488-9546-32606b243938" ], "metricAlertingConfigurations": [ { @@ -389,7 +412,8 @@ "upper": 20.0, "direction": "Both", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "triggerForMissing": true + "triggerForMissing": true, + "type": "Value" } }, { @@ -401,56 +425,50 @@ } }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/ab5b44c4-cca5-41c2-b7ba-6cf744660836", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/alert/anomaly/configurations/c9eeed4d-90d9-4c7d-af94-f8e87eeb77d7", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-c43873f2f725d340984b407b3aa67db5-ede69bca3500db43-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "be9ed26d12f356bc2d2aa6dfc585e7fa", + "traceparent": "00-f6d30a24594b5747860244827d39b517-49560237cf768745-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d03ebbf909f3471ab27b801a0b4a0441", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "128f9a21-d9de-4804-8650-74d9c7941dbe", + "apim-request-id": "8a23c3f3-1da9-4a7a-bb66-e9f9c81897f4", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "69", - "X-Request-ID": "128f9a21-d9de-4804-8650-74d9c7941dbe" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "90", + "x-request-id": "8a23c3f3-1da9-4a7a-bb66-e9f9c81897f4" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/c0f44f98-6854-47e1-a8a3-2826a53b8eba", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/hooks/68dcaba3-ee19-4488-9546-32606b243938", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Authorization": "Sanitized", - "traceparent": "00-7c594cfa455f8641af18fc035c88cc6d-4e5942e8b374374d-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "9ec4359dea7e2e61783025de270fcf70", + "traceparent": "00-b48170436ed7f142928a90db4c400498-06f043756700fb4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "108eb95e01bc4d2d02e1ee89e62d2638", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "186c85fd-0221-458f-b9c6-127b373c17cb", + "apim-request-id": "846b067a-763d-46f5-be64-de57bc04bb3d", "Content-Length": "0", - "Date": "Fri, 05 Feb 2021 17:53:13 GMT", + "Date": "Fri, 04 Jun 2021 10:27:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "112", - "X-Request-ID": "186c85fd-0221-458f-b9c6-127b373c17cb" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "158", + "x-request-id": "846b067a-763d-46f5-be64-de57bc04bb3d" }, "ResponseBody": [] } @@ -458,6 +476,6 @@ "Variables": { "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "446786433" + "RandomSeed": "1006881179" } } \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json index 866f09f28751e..a29f01afb25ed 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json @@ -8,8 +8,8 @@ "Content-Length": "69", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-2d6722cd88176c458e27fe1c282523e2-df9490927d63504b-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-92c4f4d4011e63458d24bb88fef2c983-6ad0132473dd5545-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "9cf1d56a12b013faa66b6431029dd2f2", "x-ms-return-client-request-id": "true" @@ -20,14 +20,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "509671ae-b169-4894-903d-af5493c0f025", + "apim-request-id": "4305edd9-777f-49fe-a46c-e9b26b0f0800", "Content-Length": "186442", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 23:59:25 GMT", + "Date": "Fri, 04 Jun 2021 10:27:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "177", - "x-request-id": "509671ae-b169-4894-903d-af5493c0f025" + "x-envoy-upstream-service-time": "279", + "x-request-id": "4305edd9-777f-49fe-a46c-e9b26b0f0800" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json index 9d84c8d5720d3..af94312a3ac42 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json @@ -8,8 +8,8 @@ "Content-Length": "69", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3643eef7d3f14d4293420c1734315df0-e794c359c6fbb741-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-923222b5ea9ca240980fcc92e4a6f078-1de4b82278210645-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "980a552e6b4e45ccc7321d87982588e4", "x-ms-return-client-request-id": "true" @@ -20,14 +20,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cfd65cb1-f034-46dd-8c01-bd21091f247e", + "apim-request-id": "8faac828-989a-4dfa-a4e3-3cda80d3bd42", "Content-Length": "186442", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 23:59:51 GMT", + "Date": "Fri, 04 Jun 2021 10:27:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5237", - "x-request-id": "cfd65cb1-f034-46dd-8c01-bd21091f247e" + "x-envoy-upstream-service-time": "189", + "x-request-id": "8faac828-989a-4dfa-a4e3-3cda80d3bd42" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json index 66900f0ee9c76..71a1c672f72f7 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "69", "Content-Type": "application/json", - "traceparent": "00-c4524682644f4848b7f05390d35e6688-a9deab69068d8245-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-a3e26d4f39f55446a64cddd97e66c3cd-c5002c194296fb4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "40f52e2102a9114d648ed33ece2b0f68", "x-ms-return-client-request-id": "true" }, @@ -19,14 +19,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "090ad48b-acc5-4af1-b755-cda6045f40a9", + "apim-request-id": "a58b8244-eea1-46f2-8b92-a11801a29fe4", "Content-Length": "186442", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 23:59:24 GMT", + "Date": "Fri, 04 Jun 2021 10:27:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "5822", - "x-request-id": "090ad48b-acc5-4af1-b755-cda6045f40a9" + "x-envoy-upstream-service-time": "189", + "x-request-id": "a58b8244-eea1-46f2-8b92-a11801a29fe4" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json index 7d9da9075e4f5..c16f114d40cb4 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "69", "Content-Type": "application/json", - "traceparent": "00-d378d427d28e3e4dac8e71e863fcd66a-9a25225a5911034b-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210512.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "traceparent": "00-3e65ca3d35dae545b07c757b6510672c-9769a6c962582949-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "6e0742075b89910f9e7d1593db439e52", "x-ms-return-client-request-id": "true" }, @@ -19,14 +19,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6d056131-826a-4259-a06f-9998a6a1858b", + "apim-request-id": "64971ab7-f30a-4efc-b639-6edc8e62e3a1", "Content-Length": "186442", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 May 2021 23:59:46 GMT", + "Date": "Fri, 04 Jun 2021 10:27:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "279", - "x-request-id": "6d056131-826a-4259-a06f-9998a6a1858b" + "x-envoy-upstream-service-time": "155", + "x-request-id": "64971ab7-f30a-4efc-b639-6edc8e62e3a1" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False).json index fafc9cabe524f..7c0f37bdbd486 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False).json @@ -8,11 +8,8 @@ "Content-Length": "127", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-8105df66bc7ece4b8be80f8b9f1d30ca-46c8a8fe024d504f-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-e29df3193d6ac341a7c4a66b36ccf2da-3c0c9fabe83e6e4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "38a83e304094ff90ceb319601b84e4de", "x-ms-return-client-request-id": "true" @@ -27,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "affad8fd-527d-48d0-9de5-68421cbe37d8", - "Content-Length": "692", + "apim-request-id": "fb2213bd-4259-44bb-bf18-ef306cdd2f8b", + "Content-Length": "675", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 20:34:48 GMT", + "Date": "Fri, 04 Jun 2021 10:27:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "354", - "X-Request-ID": "affad8fd-527d-48d0-9de5-68421cbe37d8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "217", + "x-request-id": "fb2213bd-4259-44bb-bf18-ef306cdd2f8b" }, "ResponseBody": { "value": [ @@ -100,8 +97,7 @@ "Baghdad", "Haora", "Toronto" - ], - "@nextLink": null + ] } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False)Async.json index f9c5f6879ed8b..68fa5e2640141 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(False)Async.json @@ -8,11 +8,8 @@ "Content-Length": "127", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1102fd37931e0d4ca625dc2321c3b18a-ca51cb2dce162f47-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-2d6128328641d44194a6589fcf708c2f-9a1b673782f90449-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "1b3201153b6a0425b654c9297dbf44bb", "x-ms-return-client-request-id": "true" @@ -27,14 +24,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a30235cc-1ebb-48f9-b527-7b2f75076e95", - "Content-Length": "692", + "apim-request-id": "06e8665a-80fb-4e85-b2fc-4475b1d9fdb6", + "Content-Length": "675", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 20:34:55 GMT", + "Date": "Fri, 04 Jun 2021 10:27:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "277", - "X-Request-ID": "a30235cc-1ebb-48f9-b527-7b2f75076e95" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "223", + "x-request-id": "06e8665a-80fb-4e85-b2fc-4475b1d9fdb6" }, "ResponseBody": { "value": [ @@ -100,8 +97,7 @@ "Baghdad", "Haora", "Toronto" - ], - "@nextLink": null + ] } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True).json index 4ccda4978f05b..0accd63546ce8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True).json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "127", "Content-Type": "application/json", - "traceparent": "00-118671b155a8c04bafaee42d0e72e96e-18fa7e1d0aef6249-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-0626f5193d5b95418f1d1073a265b128-933a38ef3b2aa040-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "11b15dd584359f3249c01600a8fedb99", "x-ms-return-client-request-id": "true" }, @@ -26,14 +23,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "45af4db0-8981-4cab-969a-2e4d8ca66ad0", - "Content-Length": "692", + "apim-request-id": "ff52e5c5-fb01-466f-a1f8-900c1b3728ba", + "Content-Length": "675", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 20:34:48 GMT", + "Date": "Fri, 04 Jun 2021 10:27:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "1084", - "X-Request-ID": "45af4db0-8981-4cab-969a-2e4d8ca66ad0" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "206", + "x-request-id": "ff52e5c5-fb01-466f-a1f8-900c1b3728ba" }, "ResponseBody": { "value": [ @@ -99,8 +96,7 @@ "Baghdad", "Haora", "Toronto" - ], - "@nextLink": null + ] } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True)Async.json index c70f5e36b03b0..7f1af8f2c8117 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomalyDimensionValuesWithMinimumSetup(True)Async.json @@ -8,11 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "127", "Content-Type": "application/json", - "traceparent": "00-128d06e8cf6bb041ad6073e6093ebc5f-a9739ffacdeb524e-00", - "User-Agent": [ - "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210205.1", - "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-bd60ac834821dc489f6cb3a28316a0d8-6982e6977843134c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "e57fbf5659278075d2a85f55bd2c8a16", "x-ms-return-client-request-id": "true" }, @@ -26,14 +23,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a3eef0d6-8a48-46c0-b262-aaf6065d522d", - "Content-Length": "692", + "apim-request-id": "9ad17387-3539-4d0d-bc19-f20b1fb83f7f", + "Content-Length": "675", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 05 Feb 2021 20:34:54 GMT", + "Date": "Fri, 04 Jun 2021 10:27:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "4353", - "X-Request-ID": "a3eef0d6-8a48-46c0-b262-aaf6065d522d" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "10505", + "x-request-id": "9ad17387-3539-4d0d-bc19-f20b1fb83f7f" }, "ResponseBody": { "value": [ @@ -99,8 +96,7 @@ "Baghdad", "Haora", "Toronto" - ], - "@nextLink": null + ] } } ], diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False).json index 0fad5040efa74..03d083f53a26e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False).json @@ -8,8 +8,8 @@ "Content-Length": "187", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-0da57ef1f97bde4a82442b1e219484f6-288bd058e4e40f46-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-abc027728ffe4a45ae06d58b4733b322-bb5406f32dad6543-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "6639609f282409f12f4e2e2a64e4dc59", "x-ms-return-client-request-id": "true" @@ -34,14 +34,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4bd3dc3a-0255-483b-9be8-3ddaeb35e96a", + "apim-request-id": "aa0ff572-75d2-4d71-aba3-2e6204b3b9a9", "Content-Length": "3089", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:42:34 GMT", + "Date": "Fri, 04 Jun 2021 10:27:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "272", - "x-request-id": "4bd3dc3a-0255-483b-9be8-3ddaeb35e96a" + "x-envoy-upstream-service-time": "260", + "x-request-id": "aa0ff572-75d2-4d71-aba3-2e6204b3b9a9" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False)Async.json index a368e73ea6ae2..675ed31f5fb2a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(False)Async.json @@ -8,8 +8,8 @@ "Content-Length": "187", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-08cb88eee84e3948b7c16f588d2f053e-12f0785ef6658545-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-580f124250d3a7409e4711a0a6d6e008-690952a5b0fc3744-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "9e05a31f518359a72525d25d66ac3b56", "x-ms-return-client-request-id": "true" @@ -34,14 +34,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "32ae79c2-180c-4cd8-99b7-f2670a16222a", + "apim-request-id": "82fe937b-7687-464d-bafe-4ad60d6e3710", "Content-Length": "3089", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:42:41 GMT", + "Date": "Fri, 04 Jun 2021 10:28:00 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "209", - "x-request-id": "32ae79c2-180c-4cd8-99b7-f2670a16222a" + "x-envoy-upstream-service-time": "298", + "x-request-id": "82fe937b-7687-464d-bafe-4ad60d6e3710" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True).json index 85e5f40483d38..26d16718b875b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True).json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "187", "Content-Type": "application/json", - "traceparent": "00-4211a497a613694581442601507fac22-d68c8858b67afb42-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-514735ecd0b15b4cbe89638d1e5edea8-5e156c07b9f1184c-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c51c541ad7435173bdf03a9224a7adfb", "x-ms-return-client-request-id": "true" }, @@ -33,14 +33,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ccce2dae-f36e-4970-9d06-556fc6b0c8fb", + "apim-request-id": "64ea5e4c-e148-434b-82e7-b6fb1f59c301", "Content-Length": "3089", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:42:34 GMT", + "Date": "Fri, 04 Jun 2021 10:27:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "159", - "x-request-id": "ccce2dae-f36e-4970-9d06-556fc6b0c8fb" + "x-envoy-upstream-service-time": "230", + "x-request-id": "64ea5e4c-e148-434b-82e7-b6fb1f59c301" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True)Async.json index e80d7e88a60f1..dc7db5e1d4384 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetMetricEnrichedSeriesData(True)Async.json @@ -8,8 +8,8 @@ "Authorization": "Sanitized", "Content-Length": "187", "Content-Type": "application/json", - "traceparent": "00-ee9d58dc326fef4582388c99126ef10b-482632f7163bbb40-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-2df13cb62fd52648a85cdb9fb7413e29-97ee7719115b2e4b-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7a6779bf5eef6b461d3ef94f4adb15fd", "x-ms-return-client-request-id": "true" }, @@ -33,14 +33,14 @@ }, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6b7e12c2-f1f3-49c5-92a1-aa56ed94f6b8", + "apim-request-id": "93ac72fb-a6ed-4d09-b6bb-e3e0a32e8fcd", "Content-Length": "3089", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:42:41 GMT", + "Date": "Fri, 04 Jun 2021 10:27:59 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "131", - "x-request-id": "6b7e12c2-f1f3-49c5-92a1-aa56ed94f6b8" + "x-envoy-upstream-service-time": "5218", + "x-request-id": "93ac72fb-a6ed-4d09-b6bb-e3e0a32e8fcd" }, "ResponseBody": { "value": [ diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilter.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilter.json index 7d3cb9b796def..077b4612a327c 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilter.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilter.json @@ -8,8 +8,8 @@ "Content-Length": "326", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-5c6c39fb9509f14b93344e058e70729a-abb3242a9ce65849-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20201214.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0b65fdfc1c16904abe4308bc81da5de6-f76520caa074734f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "b61c7bcddc21f1c9f73ac0dbc3433c5b", "x-ms-return-client-request-id": "true" @@ -32,25 +32,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "89ad6dd3-ec86-48b7-8c0e-5155530058f9", + "apim-request-id": "1089e3df-c39e-4565-a2a9-da3b4216ec8a", "Content-Length": "0", - "Date": "Tue, 15 Dec 2020 01:34:40 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/252407cf-f2b4-4820-8b66-70d764bc6d85", + "Date": "Fri, 04 Jun 2021 10:28:02 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/c69321f3-3c61-418c-9342-58ab05c69ada", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "326", - "x-request-id": "89ad6dd3-ec86-48b7-8c0e-5155530058f9" + "x-envoy-upstream-service-time": "402", + "x-request-id": "1089e3df-c39e-4565-a2a9-da3b4216ec8a" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/252407cf-f2b4-4820-8b66-70d764bc6d85", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/c69321f3-3c61-418c-9342-58ab05c69ada", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1a84603ce4d28540a23ca88231de328a-b833a6363174874d-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20201214.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-0b65fdfc1c16904abe4308bc81da5de6-f9c0ec95c14cef42-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "2c4cf7c1e6633933860c6864938ff199", "x-ms-return-client-request-id": "true" @@ -58,18 +58,18 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4048fcfe-fcd9-435b-a9bf-1e69ef6d65c9", - "Content-Length": "892", + "apim-request-id": "a773a16e-0b9a-46fa-a2db-a596410af29b", + "Content-Length": "891", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 15 Dec 2020 01:34:40 GMT", + "Date": "Fri, 04 Jun 2021 10:28:02 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "88", - "x-request-id": "4048fcfe-fcd9-435b-a9bf-1e69ef6d65c9" + "x-envoy-upstream-service-time": "112", + "x-request-id": "a773a16e-0b9a-46fa-a2db-a596410af29b" }, "ResponseBody": { - "feedbackId": "252407cf-f2b4-4820-8b66-70d764bc6d85", - "createdTime": "2020-12-15T01:34:41.562Z", + "feedbackId": "c69321f3-3c61-418c-9342-58ab05c69ada", + "createdTime": "2021-06-04T10:28:03.29Z", "userPrincipal": "foo@contoso.com", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "dimensionFilter": { @@ -107,7 +107,7 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-12-14T17:34:41.8057376-08:00", + "DateTimeOffsetNow": "2021-06-04T03:28:02.9639900-07:00", "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilterAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilterAsync.json index 3fc407c3f407c..813dac46d247d 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilterAsync.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/MetricFeedbackLiveTests/AddAndGetAnomalyFeedbackWithOptionalDetectionConfigurationFilterAsync.json @@ -8,8 +8,8 @@ "Content-Length": "326", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b3e838df35f2f94da9b9f0af166cd119-c4688cac49725e49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20201214.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ea012a5f66d12e42959b204f2193c517-dda21fdc354d6c4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "e6c19efc0bcdc72f6a020f044fd9da2e", "x-ms-return-client-request-id": "true" @@ -32,25 +32,25 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "e837f0c9-acff-4664-9f10-176561f54f90", + "apim-request-id": "c78a5b7c-054a-49dd-ba48-92f6937310b5", "Content-Length": "0", - "Date": "Tue, 15 Dec 2020 01:34:46 GMT", - "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fa2c1fa5-b5b3-4c28-851a-4f19fdc31364", + "Date": "Fri, 04 Jun 2021 10:28:04 GMT", + "Location": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/f531b339-3a42-4dad-b397-397236edc8de", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "304", - "x-request-id": "e837f0c9-acff-4664-9f10-176561f54f90" + "x-envoy-upstream-service-time": "359", + "x-request-id": "c78a5b7c-054a-49dd-ba48-92f6937310b5" }, "ResponseBody": [] }, { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/fa2c1fa5-b5b3-4c28-851a-4f19fdc31364", + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/feedback/metric/f531b339-3a42-4dad-b397-397236edc8de", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3aa20803bf40124a95b77da86a69e1ca-3105df33c33e0a4d-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20201214.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-ea012a5f66d12e42959b204f2193c517-e6b2fc56d1d7c247-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210604.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-api-key": "Sanitized", "x-ms-client-request-id": "d9b54ca902518a938985d32d9ffd01ff", "x-ms-return-client-request-id": "true" @@ -58,18 +58,18 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "7a6e2715-fcf6-43b4-b756-4ba860ed2f7a", - "Content-Length": "891", + "apim-request-id": "d4cd8c16-c44d-4167-9b87-36f17aae5340", + "Content-Length": "892", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 15 Dec 2020 01:34:46 GMT", + "Date": "Fri, 04 Jun 2021 10:28:04 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "85", - "x-request-id": "7a6e2715-fcf6-43b4-b756-4ba860ed2f7a" + "x-envoy-upstream-service-time": "116", + "x-request-id": "d4cd8c16-c44d-4167-9b87-36f17aae5340" }, "ResponseBody": { - "feedbackId": "fa2c1fa5-b5b3-4c28-851a-4f19fdc31364", - "createdTime": "2020-12-15T01:34:46.71Z", + "feedbackId": "f531b339-3a42-4dad-b397-397236edc8de", + "createdTime": "2021-06-04T10:28:05.207Z", "userPrincipal": "foo@contoso.com", "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", "dimensionFilter": { @@ -107,7 +107,7 @@ } ], "Variables": { - "DateTimeOffsetNow": "2020-12-14T17:34:46.8760695-08:00", + "DateTimeOffsetNow": "2021-06-04T03:28:04.8590863-07:00", "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", "METRICSADVISOR_ENDPOINT_SUFFIX": null, "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized",