Share via


MetricsAdvisorAdministrationClient.CreateAlertConfiguration Method

Definition

Creates an AnomalyAlertConfiguration and assigns it a unique ID.

public virtual Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration> CreateAlertConfiguration (Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
override this.CreateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
Public Overridable Function CreateAlertConfiguration (alertConfiguration As AnomalyAlertConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AnomalyAlertConfiguration)

Parameters

alertConfiguration
AnomalyAlertConfiguration

Specifies how the created AnomalyAlertConfiguration should be configured.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> containing the result of the operation. The result is an AnomalyAlertConfiguration instance containing information about the created configuration.

Exceptions

alertConfiguration or alertConfiguration.Name is null.

alertConfiguration.Name is empty.

Applies to