Skip to content

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

@owaiskazi19

Description

@owaiskazi19

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions