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

Migrate Search Detector info to SDK using SDKRestClient #675

Closed
2 tasks done
Tracked by #5224
owaiskazi19 opened this issue Apr 12, 2023 · 1 comment
Closed
2 tasks done
Tracked by #5224

Migrate Search Detector info to SDK using SDKRestClient #675

owaiskazi19 opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@owaiskazi19
Copy link
Member

owaiskazi19 commented Apr 12, 2023

Is your feature request related to a problem?

We missed adding this API as it's not documented here: https://opensearch.org/docs/latest/observing-your-data/ad/api/#search-detector
Part of opensearch-project/OpenSearch#5224

What solution would you like?

Migrate the Search Detector info Rest API to Extensions SDK using SDKRestClient.

Use the implementation of #353 as a reference. Add new issues for any steps you skip.

Implement the following API endpoints:

  • GET _plugins/_anomaly_detection/detectors/count
  • GET _plugins/_anomaly_detection/detectors/match
@owaiskazi19 owaiskazi19 added enhancement New feature or request untriaged labels Apr 12, 2023
@owaiskazi19 owaiskazi19 self-assigned this Apr 12, 2023
@owaiskazi19 owaiskazi19 changed the title [FEATURE] Migrate Search Detector info to SDK using SDKRestClient Migrate Search Detector info to SDK using SDKRestClient Apr 12, 2023
@owaiskazi19
Copy link
Member Author

API: 127.0.0.1:9200/_extensions/_ad-extension/detectors/match?name=test-detector1

Response:

{
    "count": 0,
    "match": true
}

API: 127.0.0.1:9200/_extensions/_ad-extension/detectors/count

Response:

{
    "count": 2,
    "match": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants