From 1153eae73ccd06d382697210577342bc492cd273 Mon Sep 17 00:00:00 2001 From: Gyeonghun Park Date: Fri, 19 Nov 2021 03:05:02 +0900 Subject: [PATCH] [MetricsAdvisor] Add tests for Skip and MaximumPageSize input options in AnomalyAlertConfigurationLiveTests and AnomalyDetectionConfigurationLiveTests (#24540) --- .../AnomalyAlertConfigurationLiveTests.cs | 45 + .../AnomalyDetectionConfigurationLiveTests.cs | 45 + .../tests/MetricsAdvisorLiveTestBase.cs | 4 + ...ConfigurationsWithOptionalMaxPageSize.json | 494 ++++++++ ...gurationsWithOptionalMaxPageSizeAsync.json | 494 ++++++++ ...etAlertConfigurationsWithOptionalSkip.json | 1047 +++++++++++++++++ ...rtConfigurationsWithOptionalSkipAsync.json | 1047 +++++++++++++++++ ...ConfigurationsWithOptionalMaxPageSize.json | 576 +++++++++ ...gurationsWithOptionalMaxPageSizeAsync.json | 576 +++++++++ ...tectionConfigurationsWithOptionalSkip.json | 581 +++++++++ ...onConfigurationsWithOptionalSkipAsync.json | 581 +++++++++ 11 files changed, 5490 insertions(+) create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkipAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip.json create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkipAsync.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs index 58dfc93b2a5d6..732affa0d5289 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyAlertConfigurationLiveTests.cs @@ -726,6 +726,51 @@ public async Task GetAlertConfigurations(bool useTokenCredential) Assert.That(configCount, Is.GreaterThan(0)); } + [RecordedTest] + public void GetAlertConfigurationsWithOptionalSkip() + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); + + var options = new GetAlertConfigurationsOptions() + { + Skip = SkipSamples + }; + + AsyncPageable configs = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId); + AsyncPageable configsWithSkip = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + var getConfigsCount = configs.ToEnumerableAsync().Result.Count; + var getConfigsWithSkipCount = configsWithSkip.ToEnumerableAsync().Result.Count; + + Assert.That(getConfigsCount, Is.EqualTo(getConfigsWithSkipCount + SkipSamples)); + } + + [RecordedTest] + public async Task GetAlertConfigurationsWithOptionalMaxPageSize() + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); + + var options = new GetAlertConfigurationsOptions() + { + MaxPageSize = MaxPageSizeSamples + }; + + AsyncPageable configsWithMaxPageSize = adminClient.GetAlertConfigurationsAsync(DetectionConfigurationId, options); + + var configCount = 0; + + await foreach (Page page in configsWithMaxPageSize.AsPages()) + { + Assert.That(page.Values.Count, Is.LessThanOrEqualTo(MaxPageSizeSamples)); + + if (++configCount >= MaximumSamplesCount) + { + break; + } + } + + Assert.That(configCount, Is.GreaterThan(0)); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs index a83d6095c6eff..1f8702d97d9f8 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/AnomalyDetectionConfigurationLiveTests.cs @@ -733,6 +733,51 @@ public async Task GetDetectionConfigurations(bool useTokenCredential) Assert.That(configCount, Is.GreaterThan(0)); } + [RecordedTest] + public void GetDetectionConfigurationsWithOptionalSkip() + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); + + var options = new GetDetectionConfigurationsOptions() + { + Skip = SkipSamples + }; + + 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 + SkipSamples)); + } + + [RecordedTest] + public async Task GetDetectionConfigurationsWithOptionalMaxPageSize() + { + MetricsAdvisorAdministrationClient adminClient = GetMetricsAdvisorAdministrationClient(); + + var options = new GetDetectionConfigurationsOptions() + { + MaxPageSize = MaxPageSizeSamples + }; + + AsyncPageable configsWithMaxPageSize = adminClient.GetDetectionConfigurationsAsync(MetricId, options); + + var configCount = 0; + + await foreach (Page page in configsWithMaxPageSize.AsPages()) + { + Assert.That(page.Values.Count, Is.LessThanOrEqualTo(MaxPageSizeSamples)); + + if (++configCount >= MaximumSamplesCount) + { + break; + } + } + + Assert.That(configCount, Is.GreaterThan(0)); + } + [RecordedTest] [TestCase(true)] [TestCase(false)] diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs index 08c9675235c5c..b778843035189 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorLiveTestBase.cs @@ -36,6 +36,10 @@ public MetricsAdvisorLiveTestBase(bool isAsync) : base(isAsync) protected int MaximumSamplesCount => 10; + protected int MaxPageSizeSamples => 1; + + protected int SkipSamples => 1; + protected DateTimeOffset SamplingStartTime => DateTimeOffset.Parse("2020-10-01T00:00:00Z"); protected DateTimeOffset SamplingEndTime => DateTimeOffset.Parse("2020-10-31T00:00:00Z"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json new file mode 100644 index 0000000000000..9ead0320f8c81 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSize.json @@ -0,0 +1,494 @@ +{ + "Entries": [ + { + "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/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json new file mode 100644 index 0000000000000..9ead0320f8c81 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalMaxPageSizeAsync.json @@ -0,0 +1,494 @@ +{ + "Entries": [ + { + "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/GetAlertConfigurationsWithOptionalSkip.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip.json new file mode 100644 index 0000000000000..169dc2f6318bf --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkip.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/GetAlertConfigurationsWithOptionalSkipAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkipAsync.json new file mode 100644 index 0000000000000..169dc2f6318bf --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyAlertConfigurationLiveTests/GetAlertConfigurationsWithOptionalSkipAsync.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/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json new file mode 100644 index 0000000000000..0311a859e1262 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSize.json @@ -0,0 +1,576 @@ +{ + "Entries": [ + { + "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/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json new file mode 100644 index 0000000000000..0311a859e1262 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalMaxPageSizeAsync.json @@ -0,0 +1,576 @@ +{ + "Entries": [ + { + "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/GetDetectionConfigurationsWithOptionalSkip.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip.json new file mode 100644 index 0000000000000..bdf8c22c7afaa --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkip.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/GetDetectionConfigurationsWithOptionalSkipAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkipAsync.json new file mode 100644 index 0000000000000..bdf8c22c7afaa --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionConfigurationLiveTests/GetDetectionConfigurationsWithOptionalSkipAsync.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