Capabilities of Detection Engine in OpenSearch

I am trying to build a component with custom logic for detection engine and use OpenSearch as my data source. Is it possible to do so? Are there any limitations in OpenSearch which will not support such functionality? Is it possible to disable the out of the box detection engine functionality and use custom detection engine?