public final class AnomalyDetectorClient extends Object
Modifier and Type | Method and Description |
---|---|
void |
deleteMultivariateModel(UUID modelId)
Delete an existing multivariate model according to the modelId.
|
com.azure.core.http.rest.Response<Void> |
deleteMultivariateModelWithResponse(UUID modelId,
com.azure.core.util.Context context)
Delete an existing multivariate model according to the modelId.
|
void |
detectAnomaly(UUID modelId,
DetectionRequest detectionRequest)
Submit detection multivariate anomaly task with the trained model of modelId, the input schema should be the same
with the training request.
|
DetectAnomalyResponse |
detectAnomalyWithResponse(UUID modelId,
DetectionRequest detectionRequest,
com.azure.core.util.Context context)
Submit detection multivariate anomaly task with the trained model of modelId, the input schema should be the same
with the training request.
|
ChangePointDetectResponse |
detectChangePoint(ChangePointDetectRequest body)
Evaluate change point score of every series point.
|
com.azure.core.http.rest.Response<ChangePointDetectResponse> |
detectChangePointWithResponse(ChangePointDetectRequest body,
com.azure.core.util.Context context)
Evaluate change point score of every series point.
|
EntireDetectResponse |
detectEntireSeries(DetectRequest body)
This operation generates a model with an entire series, each point is detected with the same model.
|
com.azure.core.http.rest.Response<EntireDetectResponse> |
detectEntireSeriesWithResponse(DetectRequest body,
com.azure.core.util.Context context)
This operation generates a model with an entire series, each point is detected with the same model.
|
LastDetectResponse |
detectLastPoint(DetectRequest body)
This operation generates a model using points before the latest one.
|
com.azure.core.http.rest.Response<LastDetectResponse> |
detectLastPointWithResponse(DetectRequest body,
com.azure.core.util.Context context)
This operation generates a model using points before the latest one.
|
InputStream |
exportModel(UUID modelId)
Export multivariate anomaly detection model based on modelId.
|
com.azure.core.http.rest.StreamResponse |
exportModelWithResponse(UUID modelId,
com.azure.core.util.Context context)
Export multivariate anomaly detection model based on modelId.
|
DetectionResult |
getDetectionResult(UUID resultId)
Get multivariate anomaly detection result based on resultId returned by the DetectAnomalyAsync api.
|
com.azure.core.http.rest.Response<DetectionResult> |
getDetectionResultWithResponse(UUID resultId,
com.azure.core.util.Context context)
Get multivariate anomaly detection result based on resultId returned by the DetectAnomalyAsync api.
|
Model |
getMultivariateModel(UUID modelId)
Get detailed information of multivariate model, including the training status and variables used in the model.
|
com.azure.core.http.rest.Response<Model> |
getMultivariateModelWithResponse(UUID modelId,
com.azure.core.util.Context context)
Get detailed information of multivariate model, including the training status and variables used in the model.
|
com.azure.core.http.rest.PagedIterable<ModelSnapshot> |
listMultivariateModel(Integer skip,
Integer top)
List models of a subscription.
|
com.azure.core.http.rest.PagedIterable<ModelSnapshot> |
listMultivariateModel(Integer skip,
Integer top,
com.azure.core.util.Context context)
List models of a subscription.
|
void |
trainMultivariateModel(ModelInfo modelRequest)
Create and train a multivariate anomaly detection model.
|
TrainMultivariateModelResponse |
trainMultivariateModelWithResponse(ModelInfo modelRequest,
com.azure.core.util.Context context)
Create and train a multivariate anomaly detection model.
|
public EntireDetectResponse detectEntireSeries(DetectRequest body)
body
- Time series points and period if needed. Advanced model parameters can also be set in the request.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<EntireDetectResponse> detectEntireSeriesWithResponse(DetectRequest body, com.azure.core.util.Context context)
body
- Time series points and period if needed. Advanced model parameters can also be set in the request.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public LastDetectResponse detectLastPoint(DetectRequest body)
body
- Time series points and period if needed. Advanced model parameters can also be set in the request.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<LastDetectResponse> detectLastPointWithResponse(DetectRequest body, com.azure.core.util.Context context)
body
- Time series points and period if needed. Advanced model parameters can also be set in the request.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public ChangePointDetectResponse detectChangePoint(ChangePointDetectRequest body)
body
- Time series points and granularity is needed. Advanced model parameters can also be set in the
request if needed.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<ChangePointDetectResponse> detectChangePointWithResponse(ChangePointDetectRequest body, com.azure.core.util.Context context)
body
- Time series points and granularity is needed. Advanced model parameters can also be set in the
request if needed.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.AnomalyDetectorErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void trainMultivariateModel(ModelInfo modelRequest)
modelRequest
- Training request.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public TrainMultivariateModelResponse trainMultivariateModelWithResponse(ModelInfo modelRequest, com.azure.core.util.Context context)
modelRequest
- Training request.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Model getMultivariateModel(UUID modelId)
modelId
- Model identifier.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Model> getMultivariateModelWithResponse(UUID modelId, com.azure.core.util.Context context)
modelId
- Model identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void deleteMultivariateModel(UUID modelId)
modelId
- Model identifier.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<Void> deleteMultivariateModelWithResponse(UUID modelId, com.azure.core.util.Context context)
modelId
- Model identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public void detectAnomaly(UUID modelId, DetectionRequest detectionRequest)
modelId
- Model identifier.detectionRequest
- Detect anomaly request.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public DetectAnomalyResponse detectAnomalyWithResponse(UUID modelId, DetectionRequest detectionRequest, com.azure.core.util.Context context)
modelId
- Model identifier.detectionRequest
- Detect anomaly request.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public DetectionResult getDetectionResult(UUID resultId)
resultId
- Result identifier.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<DetectionResult> getDetectionResultWithResponse(UUID resultId, com.azure.core.util.Context context)
resultId
- Result identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public InputStream exportModel(UUID modelId)
modelId
- Model identifier.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.StreamResponse exportModelWithResponse(UUID modelId, com.azure.core.util.Context context)
modelId
- Model identifier.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<ModelSnapshot> listMultivariateModel(Integer skip, Integer top)
skip
- $skip indicates how many models will be skipped.top
- $top indicates how many models will be fetched.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.PagedIterable<ModelSnapshot> listMultivariateModel(Integer skip, Integer top, com.azure.core.util.Context context)
skip
- $skip indicates how many models will be skipped.top
- $top indicates how many models will be fetched.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.ErrorResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.