-
Notifications
You must be signed in to change notification settings - Fork 62
Description
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:
- Initialize the extension and initialize the interfaces of the extension points.
- Registered the REST APIs in OpenSearch
- 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 OpenSearchlistener.onFailurewill be invoked. - The handler will take care of calling Create Index API to create AD index on OpenSearch using the SDKClient.
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,adTaskManagerobjects 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.
