jasonyanwenl opened a new pull request #5769:
URL: https://github.com/apache/incubator-pinot/pull/5769
This PR creates three endpoints for providing anomaly detection as the REST
API service. Endpoints are provided in a new class called
`AnomalyDetectionResource`.
- The 1st endpoint is `/anomaly-detection/adhoc` which allows users to send
requests with ad-hoc data (JSON file), run AD task synchronously, and return
anomalies after task completed. A new class called `AdhocThirdEyeDataSource` is
created.
- The 2nd endpoint is `/anomaly-detection/task` which allows users to send
requests to run an AD task via existing configurations asynchronously and will
return a task ID.
- The 3rd endpoint is `/anomaly-detection/{taskId}` which allows users
querying task status.
This is phase 1 for this feature. During phase 2, a new table for ad-hoc
data will be created. And logic will be optimized to have shorter querying time
for the ad-hoc endpoint.
Testings are added for some methods in `AnomalyDetectionResource`. More
testings will be added in phase 2.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]