MetricsAdvisorAdministrationClient.UpdateDetectionConfigurationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 GetDetectionConfigurationAsync(String, CancellationToken) or another CRUD operation and update it before calling this method.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration>> UpdateDetectionConfigurationAsync (Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration detectionConfiguration, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateDetectionConfigurationAsync : Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration>>
override this.UpdateDetectionConfigurationAsync : Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyDetectionConfiguration>>
Public Overridable Function UpdateDetectionConfigurationAsync (detectionConfiguration As AnomalyDetectionConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.