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

integration step 1 and 2 for anomaly localization #113

Merged
merged 2 commits into from
Jan 19, 2022
Merged

integration step 1 and 2 for anomaly localization #113

merged 2 commits into from
Jan 19, 2022

Conversation

wnbts
Copy link
Contributor

@wnbts wnbts commented Dec 30, 2021

Signed-off-by: lai 57818076+wnbts@users.noreply.github.com

Description

the changes are step 1 and 2 for anomaly localization integration.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@wnbts wnbts requested a review from a team December 30, 2021 22:56
Signed-off-by: lai <57818076+wnbts@users.noreply.github.com>
/**
* Information about aggregate, time, etc to localize.
*/
@Data
public class Input {
@AllArgsConstructor
public class Input implements org.opensearch.ml.common.parameter.Input {
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about we rename this class name to avoid full class path org.opensearch.ml.common.parameter.Input as they have same class name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, renamed.

ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.nextToken(), parser);
filterQuery = Optional.of(parseInnerQueryBuilder(parser));
ensureExpectedToken(XContentParser.Token.END_OBJECT, parser.currentToken(), parser);
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Skip children for default case?

                default:
                    parser.skipChildren();
                    break;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure added

Signed-off-by: lai <57818076+wnbts@users.noreply.github.com>
Copy link
Collaborator

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the change!

@wnbts wnbts merged commit 1c3e523 into opensearch-project:main Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants