AnomalyDetectorClientExtensions.LastDetectAsync(IAnomalyDetectorClient, Request, CancellationToken) Method

Definition

Detect anomaly status of the latest point in time series.

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.LastDetectResponse> LastDetectAsync (this Microsoft.Azure.CognitiveServices.AnomalyDetector.IAnomalyDetectorClient operations, Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Request body, System.Threading.CancellationToken cancellationToken = default);
static member LastDetectAsync : Microsoft.Azure.CognitiveServices.AnomalyDetector.IAnomalyDetectorClient * Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.Request * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.AnomalyDetector.Models.LastDetectResponse>
<Extension()>
Public Function LastDetectAsync (operations As IAnomalyDetectorClient, body As Request, Optional cancellationToken As CancellationToken = null) As Task(Of LastDetectResponse)

Parameters

operations
IAnomalyDetectorClient

The operations group for this extension method.

body
Request

Time series points and period if needed. Advanced model parameters can also be set in the request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

This operation generates a model using points before the latest one. With

this method, only historical points are used to determine whether the

target point is an anomaly. The latest point detecting operation matches

the scenario of real-time monitoring of business metrics.

Applies to