There are 7 APIs provided in Multivariate Anomaly Deteciton:
- Training: Use
Train Model API
to create and train a model, then useGet Model Status API
to get the status and model metadata. - Inference:
- Use
Async Inference API
to trigger an asynchronous inference process and useGet Inference results API
to get detection results on a batch of data. - You could also use
Sync Inference API
to trigger a detection on one timestamp every time.
- Use
- Other operations:
List Model API
andDelete Model API
are supported in MVAD for model management.
API Name | Method | Path | Description |
---|---|---|---|
Train Model | POST | {endpoint} /anomalydetector/v1.1/multivariate/models |
Create and train a model |
Get Model Status | GET | {endpoint} anomalydetector/v1.1/multivariate/models/{modelId} |
Get model status and model metadata with modelId |
Async Inference | POST | {endpoint} /anomalydetector/v1.1/multivariate/models/{modelId} :detect-batch |
Trigger an asynchronous inference with modelId |
Get Inference Results | GET | {endpoint} /anomalydetector/v1.1/multivariate/detect-batch/{resultId} |
Get asynchronous inference resulsts with resultId |
Sync Inference | POST | {endpoint} /anomalydetector/v1.1/multivariate/models/{modelId} :detect-last |
Trigger a synchronous inference with modelId |
List Model | GET | {endpoint} /anomalydetector/v1.1/multivariate/models |
List all models |
Delete Model | DELET | {endpoint} /anomalydetector/v1.1/multivariate/models/{modelId} |
Delete model with modelId |
Please click this button to fork the API collection:
-
Select Environment, paste your Anomaly Detector
endpoint
,key
and dataSourceurl
in to the CURRENT VALUE column, click Save to let the variables take effect. -
Select Collections, and click on the first API - Create and train a model, then click Send.
Note: If your data is one CSV file, please set the dataSchema as OneTable, if your data is multiple CSV files in a folder, please set the dataSchema as MultiTable.
-
In the response of the first API, copy the modelId and paste it in the
modelId
in Environments, click Save. Then go to Collections, click on the second API - Get model status, and click Send. -
Select the third API - Batch Detection, and click Send. This API will trigger an asynchronous inference task, and you should use the Get batch detection results API several times to get the status and the final results.
-
In the response of the third API, copy the resultId and paste it in the
resultId
in Environments, click Save. Then go to Collections, click on the fourth API - Get batch detection results, and click Send. -
For the rest of the APIs, click on each and click Send to test on their request and response.