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

Meta: [FEATURE/Extensions] Interaction of AD Extension with OpenSearch #132

Closed
5 tasks done
owaiskazi19 opened this issue Sep 9, 2022 · 0 comments
Closed
5 tasks done
Labels
enhancement New feature or request

Comments

@owaiskazi19
Copy link
Member

owaiskazi19 commented Sep 9, 2022

Is your feature request related to a problem?

After integrating SDK with AD Extension in #24, the next steps would be for AD Extension to interact with OpenSearch for creating a detector. Below are the steps of the workflow:

  1. Initialize the extension and initialize the interfaces of the extension points.
  2. Registered the REST APIs in OpenSearch
  3. Send a Create Detector request to extension which will be redirected to the handler from handleRequest. If it fails exception will thrown on AD Extension and to throw the same exception on OpenSearch listener.onFailure will be invoked.
  4. The handler will take care of calling Create Index API to create AD index on OpenSearch using the SDKClient.

sequence

There will be bugs/issues after integrating all the SDK features with AD Extension and making it to interact with OpenSearch. We will turn this into a meta issue then and split the work to fix those.

Steps/ Sub issues:

  • getSettings - Register custom AD Extension settings in OpenSearch [Feature/extensions] Add getSettings support for AD anomaly-detection#686

  • getRestHandler - Register POST route for create detector in OpenSearch

  • createComponent Initialize searchFeatureDao, anomalyDetectionIndices, adTaskManager objects using the Transport APIs created here. - not needed for creating a detector but will be needed for next set of features

  • getActions - Register custom AD actions in OpenSearch - Since AD create detector is working on one extension node. Keeping this on hold as extension to extension communication will be needed for the AD feature which requires details from all the AD extension nodes.

  • Finally, send a request to create a detector to OpenSearch, should be redirected to AD Extension and later a request will be send back to OpenSearch to create the detector.

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