MetricsAdvisorAdministrationClient.UpdateAlertConfiguration 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 AnomalyAlertConfiguration. In order to update your configuration, you cannot create an AnomalyAlertConfiguration directly from its constructor. You need to obtain an instance via GetAlertConfiguration(String, CancellationToken) or another CRUD operation and update it before calling this method.
public virtual Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration> UpdateAlertConfiguration (Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration alertConfiguration, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
override this.UpdateAlertConfiguration : Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration * System.Threading.CancellationToken -> Azure.Response<Azure.AI.MetricsAdvisor.Models.AnomalyAlertConfiguration>
Public Overridable Function UpdateAlertConfiguration (alertConfiguration As AnomalyAlertConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AnomalyAlertConfiguration)
Parameters
- alertConfiguration
- AnomalyAlertConfiguration
The AnomalyAlertConfiguration containing the updates.
- 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 updated configuration.
Exceptions
alertConfiguration
or alertConfiguration
.Id is null.