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

feat: Adding support for date_nanos to Anomaly Detection #1238

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

jehuty0shift
Copy link
Contributor

Description

This PR add support for date_nanos type for time field in Anomaly Detection.

Issues Resolved

#1226

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.

@jehuty0shift
Copy link
Contributor Author

Hi, I'm new to contributing to this repository. I'm open to adding test to more meaningful places and/or to backport this feature to 2.x branch if needed.

I will also PR the dashboard plugin when this PR get approved (knowing this PR surely needs more work done).

@kaituo
Copy link
Collaborator

kaituo commented Jun 11, 2024

@jehuty0shift Thanks a lot. Will review.

minPrecision.put("Scottsdale", 0.5);
Map<String, Double> minRecall = new HashMap<>();
minRecall.put("Phoenix", 0.9);
minRecall.put("Scottsdale", 0.9);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is changed to 0.6 in the main branch. Can you rebase?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, sure i have rebased and force-pushed the changes.

@kaituo
Copy link
Collaborator

kaituo commented Jun 13, 2024

@jehuty0shift Once the CI passed, will approve and merge your PR. Please also work on a change on AD dashboard plugin side. I assume the date_nanos timestamp may not show in create/edit detector page.

@kaituo kaituo merged commit 60f99ab into opensearch-project:main Jun 13, 2024
22 of 25 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 13, 2024
Signed-off-by: Babacar Diasse <[email protected]>
(cherry picked from commit 60f99ab)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@jehuty0shift
Copy link
Contributor Author

Yes, the PR to Anomaly Detection dashboard plugin will be done today. Thank you very much for your review ! Looking forward to contribute more to OpenSearch.

kaituo pushed a commit that referenced this pull request Jun 15, 2024
(cherry picked from commit 60f99ab)

Signed-off-by: Babacar Diasse <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants