opensearch-project / anomaly-detection-dashboards-plugin

Manage your detectors and identify atypical data in OpenSearch Dashboards
https://opensearch.org/docs/latest/monitoring-plugins/ad/index/
Apache License 2.0
29 stars 58 forks source link

Add ignore rules comparing actual and expected values #859

Closed kaituo closed 1 month ago

kaituo commented 1 month ago

Description

This PR introduces suppression anomaly rules under the Advanced Settings section, enabling users to suppress anomalies based on the difference between expected and actual values, either as an absolute value or a relative percentage.

Testing:

Note most of changes are snapshot file changes:

git diff 3ed0058a9c8b52dc8a34b11f4869f0dda6904e2a --stat -- '*.snap'
 .../containers/__tests__/__snapshots__/DetectorConfig.test.tsx.snap | 1563 +++++++++++++++++++++++++++++-
 .../__tests__/__snapshots__/AdditionalSettings.test.tsx.snap        |  824 ++++++++++------
 .../__tests__/__snapshots__/ModelConfigurationFields.test.tsx.snap  |  413 +++++---
 .../__tests__/__snapshots__/ReviewAndCreate.test.tsx.snap           |  802 +++++++++------
 4 files changed, 2814 insertions(+), 788 deletions(-)

demo:

https://github.com/user-attachments/assets/612dce9a-d7c4-4b94-aed7-4b42465ece7f

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

kaituo commented 1 month ago

"Run binary installation" failed due to https://github.com/opensearch-project/security-dashboards-plugin/issues/2118