Share via


MetricsAdvisorAdministrationClient.UpdateDetectionConfiguration Method

Definition

Updates an existing AnomalyDetectionConfiguration. In order to update your configuration, you cannot create an AnomalyDetectionConfiguration directly from its constructor. You need to obtain an instance via GetDetectionConfiguration(String, CancellationToken) or another CRUD operation and update it before calling this method.

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

Parameters

detectionConfiguration
AnomalyDetectionConfiguration

The AnomalyDetectionConfiguration instance containing the desired updates.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

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

Exceptions

detectionConfiguration or detectionConfiguration.Id is null.

Applies to