Delen via


AnomalyDetectorClient.DeleteMultivariateModelAsync Method

Definition

[Protocol Method] Delete Multivariate Model

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteMultivariateModelAsync (string modelId, Azure.RequestContext context = default);
abstract member DeleteMultivariateModelAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteMultivariateModelAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteMultivariateModelAsync (modelId As String, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

modelId
String

Model identifier.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

modelId is null.

modelId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Examples

This sample shows how to call DeleteMultivariateModelAsync with required parameters.

var credential = new AzureKeyCredential("<key>");
var endpoint = new Uri("<https://my-service.azure.com>");
var client = new AnomalyDetectorClient(endpoint, credential);

Response response = await client.DeleteMultivariateModelAsync("<modelId>", new RequestContext());
Console.WriteLine(response.Status);

Remarks

Delete an existing multivariate model according to the modelId

Applies to