Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress min number less than 14 #19230

Merged
merged 3 commits into from
Jun 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ async def _create_data_feed_and_detection_config(self, name):
sensitivity=50,
anomaly_detector_direction="Both",
suppress_condition=SuppressCondition(
min_number=50,
min_ratio=50
min_number=5,
min_ratio=5
)
)
)
Expand Down Expand Up @@ -312,8 +312,8 @@ async def _create_detection_config_for_update(self, name):
sensitivity=50,
anomaly_detector_direction="Both",
suppress_condition=SuppressCondition(
min_number=50,
min_ratio=50
min_number=5,
min_ratio=5
)
),
hard_threshold_condition=HardThresholdCondition(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ async def _create_data_feed_and_detection_config(self, name):
sensitivity=50,
anomaly_detector_direction="Both",
suppress_condition=SuppressCondition(
min_number=50,
min_ratio=50
min_number=5,
min_ratio=5
)
)
)
Expand Down Expand Up @@ -310,8 +310,8 @@ async def _create_detection_config_for_update(self, name):
sensitivity=50,
anomaly_detector_direction="Both",
suppress_condition=SuppressCondition(
min_number=50,
min_ratio=50
min_number=5,
min_ratio=5
)
),
hard_threshold_condition=HardThresholdCondition(
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials
response:
body:
string: ''
headers:
apim-request-id: a829e450-f214-48c0-a779-29cbac9641e0
apim-request-id: 7b8a1757-e74c-4f18-ae18-ffb664359f6f
content-length: '0'
date: Fri, 28 May 2021 18:38:46 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/54ca6a80-e275-4df0-bcdc-4f7d7f015239
date: Sat, 12 Jun 2021 00:04:26 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/10b98f30-bf5f-44fd-94dc-31989781b6d8
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '659'
x-request-id: a829e450-f214-48c0-a779-29cbac9641e0
x-envoy-upstream-service-time: '457'
x-request-id: 7b8a1757-e74c-4f18-ae18-ffb664359f6f
status:
code: 201
message: Created
Expand All @@ -36,48 +36,48 @@ interactions:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/54ca6a80-e275-4df0-bcdc-4f7d7f015239
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/10b98f30-bf5f-44fd-94dc-31989781b6d8
response:
body:
string: '{"dataSourceCredentialId":"54ca6a80-e275-4df0-bcdc-4f7d7f015239","dataSourceCredentialName":"testsqlcredential961b1efb","dataSourceCredentialDescription":"my
string: '{"dataSourceCredentialId":"10b98f30-bf5f-44fd-94dc-31989781b6d8","dataSourceCredentialName":"testsqlcredential961b1efb","dataSourceCredentialDescription":"my
credential","dataSourceCredentialType":"AzureSQLConnectionString","parameters":{}}'
headers:
apim-request-id: 60089f78-b976-4f9c-ac66-596d4faa9934
apim-request-id: 0174dd3c-7a1c-4762-a478-2f6408c6144f
content-length: '240'
content-type: application/json; charset=utf-8
date: Fri, 28 May 2021 18:38:46 GMT
date: Sat, 12 Jun 2021 00:04:26 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '93'
x-request-id: 60089f78-b976-4f9c-ac66-596d4faa9934
x-envoy-upstream-service-time: '111'
x-request-id: 0174dd3c-7a1c-4762-a478-2f6408c6144f
status:
code: 200
message: OK
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/54ca6a80-e275-4df0-bcdc-4f7d7f015239
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/10b98f30-bf5f-44fd-94dc-31989781b6d8
- request:
body: null
headers:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: DELETE
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/54ca6a80-e275-4df0-bcdc-4f7d7f015239
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/10b98f30-bf5f-44fd-94dc-31989781b6d8
response:
body:
string: ''
headers:
apim-request-id: 6813b249-5548-41d1-aa20-0d7572c1a113
apim-request-id: f92291a3-4ddb-483d-849f-ace376c2d83d
content-length: '0'
date: Fri, 28 May 2021 18:38:46 GMT
date: Sat, 12 Jun 2021 00:04:27 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '187'
x-request-id: 6813b249-5548-41d1-aa20-0d7572c1a113
x-envoy-upstream-service-time: '223'
x-request-id: f92291a3-4ddb-483d-849f-ace376c2d83d
status:
code: 204
message: No Content
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/54ca6a80-e275-4df0-bcdc-4f7d7f015239
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/10b98f30-bf5f-44fd-94dc-31989781b6d8
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials
response:
body:
string: ''
headers:
apim-request-id: 27145a8e-9c5e-481f-b31a-cbaba8f9fa33
apim-request-id: 864b49ac-06da-4a61-a5ed-53a11466d2fc
content-length: '0'
date: Fri, 28 May 2021 18:38:47 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/17c4d885-0de9-412a-8309-607dc74852be
date: Sat, 12 Jun 2021 00:04:27 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/56e0ac15-accd-4921-a550-57bb60a3b467
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '252'
x-request-id: 27145a8e-9c5e-481f-b31a-cbaba8f9fa33
x-envoy-upstream-service-time: '565'
x-request-id: 864b49ac-06da-4a61-a5ed-53a11466d2fc
status:
code: 201
message: Created
Expand All @@ -36,48 +36,48 @@ interactions:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/17c4d885-0de9-412a-8309-607dc74852be
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/56e0ac15-accd-4921-a550-57bb60a3b467
response:
body:
string: '{"dataSourceCredentialId":"17c4d885-0de9-412a-8309-607dc74852be","dataSourceCredentialName":"testdatalakecredential17df1cd3","dataSourceCredentialDescription":"my
string: '{"dataSourceCredentialId":"56e0ac15-accd-4921-a550-57bb60a3b467","dataSourceCredentialName":"testdatalakecredential17df1cd3","dataSourceCredentialDescription":"my
credential","dataSourceCredentialType":"DataLakeGen2SharedKey","parameters":{}}'
headers:
apim-request-id: 0f400533-b4d4-4be1-b27e-c704dd9bf997
apim-request-id: 3d7d5c24-504a-43e0-bcc9-8974000f34f8
content-length: '242'
content-type: application/json; charset=utf-8
date: Fri, 28 May 2021 18:38:47 GMT
date: Sat, 12 Jun 2021 00:04:27 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '83'
x-request-id: 0f400533-b4d4-4be1-b27e-c704dd9bf997
x-envoy-upstream-service-time: '110'
x-request-id: 3d7d5c24-504a-43e0-bcc9-8974000f34f8
status:
code: 200
message: OK
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/17c4d885-0de9-412a-8309-607dc74852be
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/56e0ac15-accd-4921-a550-57bb60a3b467
- request:
body: null
headers:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: DELETE
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/17c4d885-0de9-412a-8309-607dc74852be
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/56e0ac15-accd-4921-a550-57bb60a3b467
response:
body:
string: ''
headers:
apim-request-id: 3ddc3bac-1abe-47e9-9f13-55bf7c48e99e
apim-request-id: 04f8b9c9-fd63-46a0-a7bd-31039bb5fbc3
content-length: '0'
date: Fri, 28 May 2021 18:38:47 GMT
date: Sat, 12 Jun 2021 00:04:27 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '167'
x-request-id: 3ddc3bac-1abe-47e9-9f13-55bf7c48e99e
x-envoy-upstream-service-time: '205'
x-request-id: 04f8b9c9-fd63-46a0-a7bd-31039bb5fbc3
status:
code: 204
message: No Content
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/17c4d885-0de9-412a-8309-607dc74852be
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/56e0ac15-accd-4921-a550-57bb60a3b467
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ interactions:
Content-Type:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials
response:
body:
string: ''
headers:
apim-request-id: 1a94a58d-8666-49ed-9e27-87cd751c4d11
apim-request-id: fedd3310-241c-454d-bde9-2f78ac9accd5
content-length: '0'
date: Fri, 28 May 2021 18:38:47 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/c6b23b2b-5247-42a0-b7b8-830a83955263
date: Sat, 12 Jun 2021 00:04:29 GMT
location: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/a2243a97-e1ec-4556-b862-89692b4c3a70
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '311'
x-request-id: 1a94a58d-8666-49ed-9e27-87cd751c4d11
x-envoy-upstream-service-time: '633'
x-request-id: fedd3310-241c-454d-bde9-2f78ac9accd5
status:
code: 201
message: Created
Expand All @@ -37,48 +37,48 @@ interactions:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/c6b23b2b-5247-42a0-b7b8-830a83955263
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/a2243a97-e1ec-4556-b862-89692b4c3a70
response:
body:
string: '{"dataSourceCredentialId":"c6b23b2b-5247-42a0-b7b8-830a83955263","dataSourceCredentialName":"testserviceprincipalcredential5aa81a65","dataSourceCredentialDescription":"my
string: '{"dataSourceCredentialId":"a2243a97-e1ec-4556-b862-89692b4c3a70","dataSourceCredentialName":"testserviceprincipalcredential5aa81a65","dataSourceCredentialDescription":"my
credential","dataSourceCredentialType":"ServicePrincipal","parameters":{"clientId":"client_id","tenantId":"tenant_id"}}'
headers:
apim-request-id: 10635f5c-51d4-45b8-8cae-a4ef5a0b4844
apim-request-id: 24c8e181-88d9-42e3-9841-bbc2e752c39c
content-length: '290'
content-type: application/json; charset=utf-8
date: Fri, 28 May 2021 18:38:48 GMT
date: Sat, 12 Jun 2021 00:04:29 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '74'
x-request-id: 10635f5c-51d4-45b8-8cae-a4ef5a0b4844
x-envoy-upstream-service-time: '100'
x-request-id: 24c8e181-88d9-42e3-9841-bbc2e752c39c
status:
code: 200
message: OK
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/c6b23b2b-5247-42a0-b7b8-830a83955263
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/a2243a97-e1ec-4556-b862-89692b4c3a70
- request:
body: null
headers:
Accept:
- application/json
User-Agent:
- azsdk-python-ai-metricsadvisor/1.0.0 Python/3.8.6 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-metricsadvisor/1.0.0b5 Python/3.8.6 (Windows-10-10.0.19041-SP0)
method: DELETE
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/c6b23b2b-5247-42a0-b7b8-830a83955263
uri: https://js-metrics-advisor.cognitiveservices.azure.com/metricsadvisor/v1.0/credentials/a2243a97-e1ec-4556-b862-89692b4c3a70
response:
body:
string: ''
headers:
apim-request-id: c85baff8-3860-4b6f-ace5-cecf6a453241
apim-request-id: f9d41f9d-8984-40a1-af0e-310388da394b
content-length: '0'
date: Fri, 28 May 2021 18:38:48 GMT
date: Sat, 12 Jun 2021 00:04:29 GMT
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-content-type-options: nosniff
x-envoy-upstream-service-time: '167'
x-request-id: c85baff8-3860-4b6f-ace5-cecf6a453241
x-envoy-upstream-service-time: '227'
x-request-id: f9d41f9d-8984-40a1-af0e-310388da394b
status:
code: 204
message: No Content
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/c6b23b2b-5247-42a0-b7b8-830a83955263
url: https://js-metrics-advisor.cognitiveservices.azure.com//metricsadvisor/v1.0/credentials/a2243a97-e1ec-4556-b862-89692b4c3a70
version: 1
Loading