From 827929c0cdd553b23f1d111427d284ee89261e6b Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Thu, 7 Oct 2021 22:31:36 +0900 Subject: [PATCH 01/13] Add Skip Page Test to AnomalyDetectionConfigurationLiveTests --- .../AnomalyDetectionConfigurationLiveTests.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index a83d6095c6ef..55fa51555124 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -733,6 +733,26 @@ public async Task GetDetectionConfigurations(bool useTokenCredential) Assert.That(configCount, Is.GreaterThan(0)); } + [RecordedTest] + [TestCase(true, 1)] + [TestCase(false, 1)] + public void GetDetectionConfigurationsWithSkip(bool useTokenCredential, int skip) + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + + GetDetectionConfigurationsOptions options = new() + { + Skip = skip, + }; + + AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId); + AsyncPageable configsWithSkip = adminClient.GetDetectionConfigurationsAsync(MetricId, options); + var getConfigsCount = configs.ToEnumerableAsync().Result.Count; + var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; + + Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] From c4626aa6f5eb017fce029f329cbb3fc7a2db5af3 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Thu, 7 Oct 2021 22:32:02 +0900 Subject: [PATCH 02/13] Add Max Page Size Test to AnomalyDetectionConfigurationLiveTests --- .../AnomalyDetectionConfigurationLiveTests.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 55fa51555124..1b31cee345c3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -753,6 +753,35 @@ public void GetDetectionConfigurationsWithSkip(bool useTokenCredential, int skip Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); } + [RecordedTest] + [TestCase(true, 1)] + [TestCase(false, 1)] + public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential, int maxPageSize) + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + + GetDetectionConfigurationsOptions options = new() + { + MaxPageSize = maxPageSize + }; + + AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId, options); + + var configCount = 0; + + await foreach (Page page in configs.AsPages()) + { + Assert.Equals(page.Values.Count, maxPageSize); + + if (++configCount >= MaximumSamplesCount) + { + break; + } + } + + Assert.That(configCount, Is.GreaterThan(0)); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] From 75121598823103db39cc780b8b53fb447f540111 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Thu, 7 Oct 2021 22:41:36 +0900 Subject: [PATCH 03/13] Add Skip Page Test to AnomalyAlertConfigurationLiveTests --- .../AnomalyAlertConfigurationLiveTests.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 58dfc93b2a5d..f308d973e780 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -726,6 +726,26 @@ public async Task GetAlertConfigurations(bool useTokenCredential) Assert.That(configCount, Is.GreaterThan(0)); } + [RecordedTest] + [TestCase(true, 1)] + [TestCase(false, 1)] + public void GetAlertConfigurationsWithSkip(bool useTokenCredential, int skip) + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + + GetAlertConfigurationsOptions options = new() + { + Skip = skip, + }; + + AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); + AsyncPageable configsWithSkip = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + var getConfigsCount = configs.ToEnumerableAsync().Result.Count; + var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; + + Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] From b22c42c7daa3a4b215e6ce4ffaf060068eece6d4 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Thu, 7 Oct 2021 22:43:01 +0900 Subject: [PATCH 04/13] Add Skip Page Test to AnomalyAlertConfigurationLiveTests --- .../AnomalyAlertConfigurationLiveTests.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index f308d973e780..45beaee48b46 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -746,6 +746,35 @@ public void GetAlertConfigurationsWithSkip(bool useTokenCredential, int skip) Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); } + [RecordedTest] + [TestCase(true, 1)] + [TestCase(false, 1)] + public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential, int maxPageSize) + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + + GetAlertConfigurationsOptions options = new() + { + MaxPageSize = maxPageSize + }; + + AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + + var configCount = 0; + + await foreach (Page page in configs.AsPages()) + { + Assert.Equals(page.Values.Count, maxPageSize); + + if (++configCount >= MaximumSamplesCount) + { + break; + } + } + + Assert.That(configCount, Is.GreaterThan(0)); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] From c62d8ec98743d38aee1e0e0aad835b2aa9b2b039 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Thu, 7 Oct 2021 23:51:48 +0900 Subject: [PATCH 05/13] Change Assert Methods to Assert.That --- .../AnomalyAlertConfigurationLiveTests.cs | 10 ++++++++-- .../AnomalyDetectionConfigurationLiveTests.cs | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 45beaee48b46..b112accf7490 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -743,7 +743,7 @@ public void GetAlertConfigurationsWithSkip(bool useTokenCredential, int skip) var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; - Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); + Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + skip)); } [RecordedTest] @@ -759,17 +759,23 @@ public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredent }; AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; await foreach (Page page in configs.AsPages()) { - Assert.Equals(page.Values.Count, maxPageSize); + Assert.That(page.Values.Count, Is.EqualTo(maxPageSize)); if (++configCount >= MaximumSamplesCount) { break; } + + if (configCount == getConfigsCount) + { + break; + } } Assert.That(configCount, Is.GreaterThan(0)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 1b31cee345c3..4678333eb5ac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -750,7 +750,7 @@ public void GetDetectionConfigurationsWithSkip(bool useTokenCredential, int skip var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; - Assert.AreEqual(getConfigsCount, getConfigsWithSkipCount + skip); + Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + skip)); } [RecordedTest] @@ -766,17 +766,23 @@ public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredent }; AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId, options); + var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; await foreach (Page page in configs.AsPages()) { - Assert.Equals(page.Values.Count, maxPageSize); + Assert.That(page.Values.Count, Is.EqualTo(maxPageSize)); if (++configCount >= MaximumSamplesCount) { break; } + + if (configCount == getConfigsCount) + { + break; + } } Assert.That(configCount, Is.GreaterThan(0)); From 0ab0d3b41ab9b57bcdb8dbdc706618e8ab08343e Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sun, 10 Oct 2021 13:05:00 +0900 Subject: [PATCH 06/13] Use MetricsAdvisorLiveTestBase Field instead of Test Arguments --- .../AnomalyAlertConfigurationLiveTests.cs | 20 ++++++++--------- .../AnomalyDetectionConfigurationLiveTests.cs | 22 +++++++++---------- .../tests/MetricsAdvisorLiveTestBase.cs | 3 +++ 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index b112accf7490..e83dc12d086e 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -727,15 +727,15 @@ public async Task GetAlertConfigurations(bool useTokenCredential) } [RecordedTest] - [TestCase(true, 1)] - [TestCase(false, 1)] - public void GetAlertConfigurationsWithSkip(bool useTokenCredential, int skip) + [TestCase(true)] + [TestCase(false)] + public void GetAlertConfigurationsWithSkip(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); GetAlertConfigurationsOptions options = new() { - Skip = skip, + Skip = SkipSamples, }; AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); @@ -743,19 +743,19 @@ public void GetAlertConfigurationsWithSkip(bool useTokenCredential, int skip) var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; - Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + skip)); + Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + SkipSamples)); } [RecordedTest] - [TestCase(true, 1)] - [TestCase(false, 1)] - public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential, int maxPageSize) + [TestCase(true)] + [TestCase(false)] + public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); GetAlertConfigurationsOptions options = new() { - MaxPageSize = maxPageSize + MaxPageSize = MaxPageSizeSamples }; AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); @@ -765,7 +765,7 @@ public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredent await foreach (Page page in configs.AsPages()) { - Assert.That(page.Values.Count, Is.EqualTo(maxPageSize)); + Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); if (++configCount >= MaximumSamplesCount) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 4678333eb5ac..067df2ce31aa 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -734,35 +734,35 @@ public async Task GetDetectionConfigurations(bool useTokenCredential) } [RecordedTest] - [TestCase(true, 1)] - [TestCase(false, 1)] - public void GetDetectionConfigurationsWithSkip(bool useTokenCredential, int skip) + [TestCase(true)] + [TestCase(false)] + public void GetDetectionConfigurationsWithSkip(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); GetDetectionConfigurationsOptions options = new() { - Skip = skip, + Skip = SkipSamples, }; - AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId); + AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId); AsyncPageable configsWithSkip = adminClient.GetDetectionConfigurationsAsync(MetricId, options); var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; - Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + skip)); + Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + SkipSamples)); } [RecordedTest] - [TestCase(true, 1)] - [TestCase(false, 1)] - public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential, int maxPageSize) + [TestCase(true)] + [TestCase(false)] + public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); GetDetectionConfigurationsOptions options = new() { - MaxPageSize = maxPageSize + MaxPageSize = MaxPageSizeSamples }; AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId, options); @@ -772,7 +772,7 @@ public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredent await foreach (Page page in configs.AsPages()) { - Assert.That(page.Values.Count, Is.EqualTo(maxPageSize)); + Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); if (++configCount >= MaximumSamplesCount) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs index 08c9675235c5..c71b87472e49 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs @@ -35,6 +35,9 @@ public MetricsAdvisorLiveTestBase(bool isAsync) : base(isAsync) internal const string DataFeedId = "9860df01-e740-40ec-94a2-6351813552ba"; protected int MaximumSamplesCount => 10; + protected int MaxPageSizeSamples => 1; + + protected int SkipSamples => 1; protected DateTimeOffset SamplingStartTime => DateTimeOffset.Parse("2020-10-01T00:00:00Z"); From 0165f9cdf8d2425e24d98161264ada524e7e1218 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sun, 10 Oct 2021 13:08:15 +0900 Subject: [PATCH 07/13] Change the Tests According to the Format. --- .../AnomalyAlertConfigurationLiveTests.cs | 8 ++++---- .../AnomalyDetectionConfigurationLiveTests.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index e83dc12d086e..9152c25d71db 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -729,11 +729,11 @@ public async Task GetAlertConfigurations(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public void GetAlertConfigurationsWithSkip(bool useTokenCredential) + public void GetAlertConfigurationsWithOptionalSkip(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); - GetAlertConfigurationsOptions options = new() + var options = new GetAlertConfigurationsOptions() { Skip = SkipSamples, }; @@ -749,11 +749,11 @@ public void GetAlertConfigurationsWithSkip(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential) + public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); - GetAlertConfigurationsOptions options = new() + var options = new GetAlertConfigurationsOptions() { MaxPageSize = MaxPageSizeSamples }; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 067df2ce31aa..b6cb431160e1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -736,11 +736,11 @@ public async Task GetDetectionConfigurations(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public void GetDetectionConfigurationsWithSkip(bool useTokenCredential) + public void GetDetectionConfigurationsWithOptionalSkip(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); - GetDetectionConfigurationsOptions options = new() + var options = new GetDetectionConfigurationsOptions() { Skip = SkipSamples, }; @@ -756,11 +756,11 @@ public void GetDetectionConfigurationsWithSkip(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetDetectionConfigurationsWithMaxPageSize(bool useTokenCredential) + public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); - GetDetectionConfigurationsOptions options = new() + var options = new GetDetectionConfigurationsOptions() { MaxPageSize = MaxPageSizeSamples }; From b188ea462f6435b04492661b6f88fde3037e0885 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sun, 10 Oct 2021 15:10:40 +0900 Subject: [PATCH 08/13] Change the Tests According to the Format. --- .../AnomalyAlertConfigurationLiveTests.cs | 7 ++++--- .../AnomalyDetectionConfigurationLiveTests.cs | 5 +++-- .../tests/MetricsAdvisorLiveTestBase.cs | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 9152c25d71db..ee076a58b266 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -749,7 +749,7 @@ public void GetAlertConfigurationsWithOptionalSkip(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) + public async Task GetAlertConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) { MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); @@ -758,12 +758,13 @@ public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useToke MaxPageSize = MaxPageSizeSamples }; - AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); + AsyncPageable configsWithMaxPageSize = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; - await foreach (Page page in configs.AsPages()) + await foreach (Page page in configsWithMaxPageSize.AsPages()) { Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index b6cb431160e1..00ce3a3d8ebf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -765,12 +765,13 @@ public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useToke MaxPageSize = MaxPageSizeSamples }; - AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId, options); + AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId); + AsyncPageable configsWithMaxPageSize = adminClient.GetDetectionConfigurationsAsync(MetricId, options); var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; - await foreach (Page page in configs.AsPages()) + await foreach (Page page in configsWithMaxPageSize.AsPages()) { Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs index c71b87472e49..b77884303518 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs @@ -35,6 +35,7 @@ public MetricsAdvisorLiveTestBase(bool isAsync) : base(isAsync) internal const string DataFeedId = "9860df01-e740-40ec-94a2-6351813552ba"; protected int MaximumSamplesCount => 10; + protected int MaxPageSizeSamples => 1; protected int SkipSamples => 1; From 130f0af976229711a0bdc48a03c2e65cb3a78124 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sun, 10 Oct 2021 15:11:48 +0900 Subject: [PATCH 09/13] Add Recordings --- ...rationsWithOptionalMaxPageSize(False).json | 1024 ++++++++++++++++ ...nsWithOptionalMaxPageSize(False)Async.json | 1024 ++++++++++++++++ ...urationsWithOptionalMaxPageSize(True).json | 1011 ++++++++++++++++ ...onsWithOptionalMaxPageSize(True)Async.json | 1021 ++++++++++++++++ ...ConfigurationsWithOptionalSkip(False).json | 1047 +++++++++++++++++ ...gurationsWithOptionalSkip(False)Async.json | 1047 +++++++++++++++++ ...tConfigurationsWithOptionalSkip(True).json | 1043 ++++++++++++++++ ...igurationsWithOptionalSkip(True)Async.json | 1043 ++++++++++++++++ ...rationsWithOptionalMaxPageSize(False).json | 870 ++++++++++++++ ...nsWithOptionalMaxPageSize(False)Async.json | 870 ++++++++++++++ ...nsWithOptionalMaxPageSize(True) Async.json | 857 ++++++++++++++ ...urationsWithOptionalMaxPageSize(True).json | 857 ++++++++++++++ ...ConfigurationsWithOptionalSkip(False).json | 581 +++++++++ ...gurationsWithOptionalSkip(False)Async.json | 581 +++++++++ ...nConfigurationsWithOptionalSkip(True).json | 577 +++++++++ ...igurationsWithOptionalSkip(True)Async.json | 577 +++++++++ 16 files changed, 14030 insertions(+) create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json new file mode 100644 index 000000000000..291f84028ee3 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json @@ -0,0 +1,1024 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "2050652008" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json new file mode 100644 index 000000000000..291f84028ee3 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json @@ -0,0 +1,1024 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "2050652008" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json new file mode 100644 index 000000000000..0873e37990d5 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json @@ -0,0 +1,1011 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "60009452" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json new file mode 100644 index 000000000000..b895eb9bbb5b --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json @@ -0,0 +1,1021 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "60009452" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json new file mode 100644 index 000000000000..169dc2f6318b --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json @@ -0,0 +1,1047 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "2050652008" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json new file mode 100644 index 000000000000..169dc2f6318b --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json @@ -0,0 +1,1047 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "110", + "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "2050652008" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json new file mode 100644 index 000000000000..03c887bf36bd --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json @@ -0,0 +1,1043 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "60009452" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json new file mode 100644 index 000000000000..744370fff584 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json @@ -0,0 +1,1043 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:40 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "49", + "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", + "name": "alert-test-setting", + "description": "", + "hookIds": [ + "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Low", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Series", + "onlyForSuccessive": true + } + } + ] + }, + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-8721c59b286bc54997d772ec7c3cc02f-3bfc27544243e945-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "592166630a1e99fb55928a9083c6514e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "17eb0d50-3afe-4833-8d45-07256bc04b81", + "Content-Length": "12404", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:50 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "52", + "x-request-id": "17eb0d50-3afe-4833-8d45-07256bc04b81" + }, + "ResponseBody": { + "value": [ + { + "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", + "name": "test_alert_configuration", + "description": "testing_alert_configuration_description", + "crossMetricsOperator": "XOR", + "hookIds": [ + "793adcdb-5293-4e4a-a60c-7c32cd5829fc" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false + }, + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "anomalyScopeType": "All", + "negationOperation": false + } + ] + }, + { + "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", + "name": "test_alert_config_1605052664635", + "description": "Alerting config description", + "hookIds": [ + "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" + ], + "metricAlertingConfigurations": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "anomalyScopeType": "All", + "negationOperation": false, + "severityFilter": { + "minAlertSeverity": "Medium", + "maxAlertSeverity": "High" + }, + "snoozeFilter": { + "autoSnooze": 0, + "snoozeScope": "Metric", + "onlyForSuccessive": true + } + } + ] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "2107161784" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json new file mode 100644 index 000000000000..d882d8142641 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json @@ -0,0 +1,870 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "503296209" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json new file mode 100644 index 000000000000..d882d8142641 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json @@ -0,0 +1,870 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "503296209" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json new file mode 100644 index 000000000000..2809af3f8f6d --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json @@ -0,0 +1,857 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1498449374" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json new file mode 100644 index 000000000000..2809af3f8f6d --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json @@ -0,0 +1,857 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ], + "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1498449374" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json new file mode 100644 index 000000000000..bdf8c22c7afa --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json @@ -0,0 +1,581 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "503296209" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json new file mode 100644 index 000000000000..bdf8c22c7afa --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json @@ -0,0 +1,581 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-api-key": "Sanitized", + "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:58:00 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "116", + "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "METRICSADVISOR_PRIMARY_API_KEY": "Sanitized", + "METRICSADVISOR_SUBSCRIPTION_KEY": "Sanitized", + "RandomSeed": "503296209" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json new file mode 100644 index 000000000000..c76dc25bff5f --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json @@ -0,0 +1,577 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1498449374" + } +} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json new file mode 100644 index 000000000000..c76dc25bff5f --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json @@ -0,0 +1,577 @@ +{ + "Entries": [ + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", + "name": "detection-config", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + }, + { + "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", + "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", + "Content-Length": "5874", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 19 Jan 2021 17:57:59 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "47", + "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" + }, + "ResponseBody": { + "value": [ + { + "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", + "name": "my_detection_config", + "description": "anomaly detection config for metric", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "OR", + "smartDetectionCondition": { + "sensitivity": 10.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "hardThresholdCondition": { + "upperBound": 100.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 20.0, + "shiftPoint": 10, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 5, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", + "name": "test_detection_configuration1605051259010", + "description": "Detection configuration description", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 1.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", + "name": "js-detection-config-160521899279304202", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", + "name": "js-detection-config-160521901418201870", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", + "name": "js-detection-config-160521939989909966", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", + "name": "js-detection-config-160521942344906897", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", + "name": "js-detection-config-160521950750209992", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", + "name": "js-detection-config-160521952580900483", + "description": "fresh detection", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "conditionOperator": "AND", + "hardThresholdCondition": { + "upperBound": 400.0, + "anomalyDetectorDirection": "Up", + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + }, + "changeThresholdCondition": { + "changePercentage": 33.0, + "shiftPoint": 1, + "anomalyDetectorDirection": "Both", + "withinRange": true, + "suppressCondition": { + "minNumber": 2, + "minRatio": 2.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + }, + { + "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", + "name": "Default", + "description": "", + "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", + "wholeMetricConfiguration": { + "smartDetectionCondition": { + "sensitivity": 100.0, + "anomalyDetectorDirection": "Both", + "suppressCondition": { + "minNumber": 1, + "minRatio": 100.0 + } + } + }, + "dimensionGroupOverrideConfigurations": [], + "seriesOverrideConfigurations": [] + } + ] + } + } + ], + "Variables": { + "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", + "METRICSADVISOR_ENDPOINT_SUFFIX": null, + "RandomSeed": "1498449374" + } +} \ No newline at end of file From fca95626c0312ec4c01ea049ec608f8e8a46dfb2 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sat, 16 Oct 2021 11:18:16 +0900 Subject: [PATCH 10/13] Change EqualTo to LessThanOrEqualTo on MaxPageSize Tests --- .../AnomalyAlertConfigurationLiveTests.cs | 2 +- .../AnomalyDetectionConfigurationLiveTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index ee076a58b266..de82ef1caf03 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -766,7 +766,7 @@ public async Task GetAlertConfigurationsWithOptionalMaxPageSize(bool useTokenCre await foreach (Page page in configsWithMaxPageSize.AsPages()) { - Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); + Assert.That(page.Values.Count, Is.LessThanOrEqualTo(MaxPageSizeSamples)); if (++configCount >= MaximumSamplesCount) { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 00ce3a3d8ebf..fec2b774c5a0 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -773,7 +773,7 @@ public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useToke await foreach (Page page in configsWithMaxPageSize.AsPages()) { - Assert.That(page.Values.Count, Is.EqualTo(MaxPageSizeSamples)); + Assert.That(page.Values.Count, Is.LessThanOrEqualTo(MaxPageSizeSamples)); if (++configCount >= MaximumSamplesCount) { From 39d2f812d3e6a04e9a57894b7f267ca173369cf5 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sat, 16 Oct 2021 11:20:58 +0900 Subject: [PATCH 11/13] Remove unnecessary check --- .../AnomalyAlertConfigurationLiveTests.cs | 7 ------- .../AnomalyDetectionConfigurationLiveTests.cs | 7 ------- 2 files changed, 14 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index de82ef1caf03..84a6f48f8f45 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -758,9 +758,7 @@ public async Task GetAlertConfigurationsWithOptionalMaxPageSize(bool useTokenCre MaxPageSize = MaxPageSizeSamples }; - AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); AsyncPageable configsWithMaxPageSize = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); - var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; @@ -772,11 +770,6 @@ public async Task GetAlertConfigurationsWithOptionalMaxPageSize(bool useTokenCre { break; } - - if (configCount == getConfigsCount) - { - break; - } } Assert.That(configCount, Is.GreaterThan(0)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index fec2b774c5a0..8bfc41f60c60 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -765,9 +765,7 @@ public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useToke MaxPageSize = MaxPageSizeSamples }; - AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId); AsyncPageable configsWithMaxPageSize = adminClient.GetDetectionConfigurationsAsync(MetricId, options); - var getConfigsCount = configs.ToEnumerableAsync().Result.Count; var configCount = 0; @@ -779,11 +777,6 @@ public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useToke { break; } - - if (configCount == getConfigsCount) - { - break; - } } Assert.That(configCount, Is.GreaterThan(0)); From f8783e99631ef46913a70264f559203951c8be1e Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Sat, 16 Oct 2021 11:38:12 +0900 Subject: [PATCH 12/13] Remove bool test parameter and Recordings --- .../AnomalyAlertConfigurationLiveTests.cs | 12 +- .../AnomalyDetectionConfigurationLiveTests.cs | 12 +- ...urationsWithOptionalMaxPageSize(True).json | 1011 ---------------- ...onsWithOptionalMaxPageSize(True)Async.json | 1021 ---------------- ...onfigurationsWithOptionalMaxPageSize.json} | 530 --------- ...urationsWithOptionalMaxPageSizeAsync.json} | 530 --------- ...tConfigurationsWithOptionalSkip(True).json | 1043 ----------------- ...igurationsWithOptionalSkip(True)Async.json | 1043 ----------------- ...tAlertConfigurationsWithOptionalSkip.json} | 0 ...tConfigurationsWithOptionalSkipAsync.json} | 0 ...nsWithOptionalMaxPageSize(True) Async.json | 857 -------------- ...urationsWithOptionalMaxPageSize(True).json | 857 -------------- ...onfigurationsWithOptionalMaxPageSize.json} | 294 ----- ...urationsWithOptionalMaxPageSizeAsync.json} | 294 ----- ...nConfigurationsWithOptionalSkip(True).json | 577 --------- ...igurationsWithOptionalSkip(True)Async.json | 577 --------- ...ectionConfigurationsWithOptionalSkip.json} | 0 ...nConfigurationsWithOptionalSkipAsync.json} | 0 18 files changed, 8 insertions(+), 8650 deletions(-) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/{GetAlertConfigurationsWithOptionalMaxPageSize(False).json => GetAlertConfigurationsWithOptionalMaxPageSize.json} (52%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/{GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json => GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json} (52%) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/{GetAlertConfigurationsWithOptionalSkip(False).json => GetAlertConfigurationsWithOptionalSkip.json} (100%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/{GetAlertConfigurationsWithOptionalSkip(False)Async.json => GetAlertConfigurationsWithOptionalSkipAsync.json} (100%) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/{GetDetectionConfigurationsWithOptionalMaxPageSize(False).json => GetDetectionConfigurationsWithOptionalMaxPageSize.json} (69%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/{GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json => GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json} (69%) delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/{GetDetectionConfigurationsWithOptionalSkip(False).json => GetDetectionConfigurationsWithOptionalSkip.json} (100%) rename sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/{GetDetectionConfigurationsWithOptionalSkip(False)Async.json => GetDetectionConfigurationsWithOptionalSkipAsync.json} (100%) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 84a6f48f8f45..ceab3d7416f1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -727,11 +727,9 @@ public async Task GetAlertConfigurations(bool useTokenCredential) } [RecordedTest] - [TestCase(true)] - [TestCase(false)] - public void GetAlertConfigurationsWithOptionalSkip(bool useTokenCredential) + public void GetAlertConfigurationsWithOptionalSkip() { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); var options = new GetAlertConfigurationsOptions() { @@ -747,11 +745,9 @@ public void GetAlertConfigurationsWithOptionalSkip(bool useTokenCredential) } [RecordedTest] - [TestCase(true)] - [TestCase(false)] - public async Task GetAlertConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) + public async Task GetAlertConfigurationsWithOptionalMaxPageSize() { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); var options = new GetAlertConfigurationsOptions() { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 8bfc41f60c60..88455c00c915 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -734,11 +734,9 @@ public async Task GetDetectionConfigurations(bool useTokenCredential) } [RecordedTest] - [TestCase(true)] - [TestCase(false)] - public void GetDetectionConfigurationsWithOptionalSkip(bool useTokenCredential) + public void GetDetectionConfigurationsWithOptionalSkip() { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); var options = new GetDetectionConfigurationsOptions() { @@ -754,11 +752,9 @@ public void GetDetectionConfigurationsWithOptionalSkip(bool useTokenCredential) } [RecordedTest] - [TestCase(true)] - [TestCase(false)] - public async Task GetDetectionConfigurationsWithOptionalMaxPageSize(bool useTokenCredential) + public async Task GetDetectionConfigurationsWithOptionalMaxPageSize() { - MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(useTokenCredential); + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); var options = new GetDetectionConfigurationsOptions() { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json deleted file mode 100644 index 0873e37990d5..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True).json +++ /dev/null @@ -1,1011 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "60009452" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json deleted file mode 100644 index b895eb9bbb5b..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(True)Async.json +++ /dev/null @@ -1,1021 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1" - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "60009452" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json similarity index 52% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json index 291f84028ee3..9ead0320f8c8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json @@ -1,535 +1,5 @@ { "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, { "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", "RequestMethod": "GET", diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json similarity index 52% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json index 291f84028ee3..9ead0320f8c8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json @@ -1,535 +1,5 @@ { "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-be5d2eb727bfb043bd99c0cb671d7a03-e0481e2eef170f4f-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "bdebda1a5fa0b0abc26edda2ad026bfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "110", - "x-request-id": "32bf8142-2411-474f-9e27-e4cf4499f8ad" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, { "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$maxpagesize=1", "RequestMethod": "GET", diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json deleted file mode 100644 index 03c887bf36bd..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True).json +++ /dev/null @@ -1,1043 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "60009452" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json deleted file mode 100644 index 744370fff584..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(True)Async.json +++ /dev/null @@ -1,1043 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-70dc9152528e854f98bfcd77c119c857-614a89cfb43a9d4e-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8479a377f245cacd4deedcdbb2e7d03c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:40 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "49", - "x-request-id": "5547d216-16cf-4c59-a0e6-196ee2bff500" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "204a211a-c5f4-45f3-a30e-512fb25d1d2c", - "name": "alert-test-setting", - "description": "", - "hookIds": [ - "65fa0aa4-9b71-451c-a04c-cc74cb413ad7" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Low", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Series", - "onlyForSuccessive": true - } - } - ] - }, - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c/alert/anomaly/configurations?$skip=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-8721c59b286bc54997d772ec7c3cc02f-3bfc27544243e945-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "592166630a1e99fb55928a9083c6514e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "17eb0d50-3afe-4833-8d45-07256bc04b81", - "Content-Length": "12404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "52", - "x-request-id": "17eb0d50-3afe-4833-8d45-07256bc04b81" - }, - "ResponseBody": { - "value": [ - { - "anomalyAlertingConfigurationId": "b3dc6db3-617f-4229-b338-ac31baee2445", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "65e1606b-0254-4c18-8f66-877490e74b6a", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "3636f929-f7c5-494e-9eb3-8915d1552317", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aaeb0a37-7402-4e2e-927a-8698e0ba41c4", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e2c7ca76-56f6-4c2c-b435-b4bdf9825d2c", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ccf99404-9296-4007-8611-1c626d9f01d8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e016612d-a658-436a-86e4-415b44e1d3aa", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "25ceef54-60cf-4d80-9886-3984f8cec8a2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "81a9b3db-a888-4455-b1d4-ebf0b0c44b5e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "0478e1a7-a5c1-4b46-bee9-7f76b09352b2", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "aed0331c-0784-4cd1-b182-7f5f47d02356", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "27cd885d-29e1-42c8-815b-ad2dbc8aa2e1", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "d53fe955-592b-4361-8250-69890aa2db0d", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "e48633d8-a7c2-4273-83c3-d13256fd2c65", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "bc872469-3e01-43ef-9acd-c89020c59537", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "84add77a-24d8-4392-9310-a0ef277cfa30", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "923534ae-5fd8-44d5-8b64-d34fce188f4b", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "f183f2ef-f03c-4f51-9b88-e3091a60f1db", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "18048d3f-693d-423b-82db-a3143377d48e", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "da927a66-4973-41c3-8727-36623e22e4e8", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "ef670bea-6d6a-4977-9d25-ec5eb27bcb04", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "12a22817-8c13-4d59-88a9-12235d3c2bb9", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "26e157f0-7b52-4f0d-a6a8-78e9be343a82", - "name": "test_alert_configuration", - "description": "testing_alert_configuration_description", - "crossMetricsOperator": "XOR", - "hookIds": [ - "793adcdb-5293-4e4a-a60c-7c32cd5829fc" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false - }, - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "anomalyScopeType": "All", - "negationOperation": false - } - ] - }, - { - "anomalyAlertingConfigurationId": "902c97ca-d21e-4baa-bb76-188cf90d9ba1", - "name": "test_alert_config_1605052664635", - "description": "Alerting config description", - "hookIds": [ - "dc6acf85-fa8f-4f72-a6fa-1ef6af8071f9" - ], - "metricAlertingConfigurations": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "anomalyScopeType": "All", - "negationOperation": false, - "severityFilter": { - "minAlertSeverity": "Medium", - "maxAlertSeverity": "High" - }, - "snoozeFilter": { - "autoSnooze": 0, - "snoozeScope": "Metric", - "onlyForSuccessive": true - } - } - ] - } - ] - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "2107161784" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkipAsync.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkipAsync.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json deleted file mode 100644 index 2809af3f8f6d..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True) Async.json +++ /dev/null @@ -1,857 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "1498449374" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json deleted file mode 100644 index 2809af3f8f6d..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(True).json +++ /dev/null @@ -1,857 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ], - "@nextLink": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1" - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "1498449374" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json similarity index 69% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json index d882d8142641..0311a859e126 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False).json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json @@ -1,299 +1,5 @@ { "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:58:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "116", - "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, { "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", "RequestMethod": "GET", diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json similarity index 69% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json index d882d8142641..0311a859e126 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize(False)Async.json +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json @@ -1,299 +1,5 @@ { "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f57f6f7de2f9674ca86e8eff6ade2e0a-3bd7c86380206342-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-api-key": "Sanitized", - "x-ms-client-request-id": "ecab7dcd330585e9674420823055651b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:58:00 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "116", - "x-request-id": "ae4bf97b-7036-4921-9840-4207edfef6cc" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, { "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$maxpagesize=1", "RequestMethod": "GET", diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json deleted file mode 100644 index c76dc25bff5f..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True).json +++ /dev/null @@ -1,577 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "1498449374" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json deleted file mode 100644 index c76dc25bff5f..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(True)Async.json +++ /dev/null @@ -1,577 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "e17f32d4-3ddf-4dc7-84ee-b4130c7e1777", - "name": "detection-config", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - }, - { - "RequestUri": "https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/metrics/27e3015f-04fd-44ba-a20b-bc529a0aebae/enrichment/anomalyDetection/configurations?$skip=1", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "traceparent": "00-bfa438c1e7ff584eae6a3491f0c04b47-2f582c57dcd33d49-00", - "User-Agent": "azsdk-net-AI.MetricsAdvisor/1.0.0-alpha.20210119.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bd396d1b8c3294c2cf809c53e2aa1a2", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7", - "Content-Length": "5874", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 19 Jan 2021 17:57:59 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "47", - "x-request-id": "1216e7f5-da6f-43e6-9120-6ce2df934ee7" - }, - "ResponseBody": { - "value": [ - { - "anomalyDetectionConfigurationId": "10240200-6f3a-4783-b8e4-e7b34a3973d6", - "name": "my_detection_config", - "description": "anomaly detection config for metric", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "OR", - "smartDetectionCondition": { - "sensitivity": 10.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "hardThresholdCondition": { - "upperBound": 100.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 20.0, - "shiftPoint": 10, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 5, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "5d50b465-7565-4167-b33b-b92eb3199254", - "name": "test_detection_configuration1605051259010", - "description": "Detection configuration description", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 1.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "eb6ef516-9a09-4535-8ade-f64e26dfaefb", - "name": "js-detection-config-160521899279304202", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "1d270422-7ef8-4d3e-99e9-46b2bb1362fc", - "name": "js-detection-config-160521901418201870", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "64993d1d-02b8-4e0b-87d3-13095b187fe4", - "name": "js-detection-config-160521939989909966", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "dc0a5df5-c84e-4e9b-9065-f4017c4fbb97", - "name": "js-detection-config-160521942344906897", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "0491bfd7-b80a-4c2b-a32b-009e355a6cf5", - "name": "js-detection-config-160521950750209992", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "d803825a-12bf-4ae3-abcc-efd051509a1a", - "name": "js-detection-config-160521952580900483", - "description": "fresh detection", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "conditionOperator": "AND", - "hardThresholdCondition": { - "upperBound": 400.0, - "anomalyDetectorDirection": "Up", - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - }, - "changeThresholdCondition": { - "changePercentage": 33.0, - "shiftPoint": 1, - "anomalyDetectorDirection": "Both", - "withinRange": true, - "suppressCondition": { - "minNumber": 2, - "minRatio": 2.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - }, - { - "anomalyDetectionConfigurationId": "fb5a6ed6-2b9e-4b72-8b0c-0046ead1c15c", - "name": "Default", - "description": "", - "metricId": "27e3015f-04fd-44ba-a20b-bc529a0aebae", - "wholeMetricConfiguration": { - "smartDetectionCondition": { - "sensitivity": 100.0, - "anomalyDetectorDirection": "Both", - "suppressCondition": { - "minNumber": 1, - "minRatio": 100.0 - } - } - }, - "dimensionGroupOverrideConfigurations": [], - "seriesOverrideConfigurations": [] - } - ] - } - } - ], - "Variables": { - "METRICSADVISOR_ACCOUNT_NAME": "js-metrics-advisor", - "METRICSADVISOR_ENDPOINT_SUFFIX": null, - "RandomSeed": "1498449374" - } -} \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkipAsync.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkipAsync.json From c3330d00f9ef017c364d0418fc2cbdd6ca32da38 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Mon, 18 Oct 2021 18:36:41 +0900 Subject: [PATCH 13/13] Change the Tests According to the Format --- .../AnomalyAlertConfigurationLiveTests.cs | 2 +- .../AnomalyDetectionConfigurationLiveTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index ceab3d7416f1..732affa0d528 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -733,7 +733,7 @@ public void GetAlertConfigurationsWithOptionalSkip() var options = new GetAlertConfigurationsOptions() { - Skip = SkipSamples, + Skip = SkipSamples }; AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index 88455c00c915..1f8702d97d9f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -740,7 +740,7 @@ public void GetDetectionConfigurationsWithOptionalSkip() var options = new GetDetectionConfigurationsOptions() { - Skip = SkipSamples, + Skip = SkipSamples }; AsyncPageable configs = adminClient.GetDetectionConfigurationsAsync(MetricId);