Partilhar via


ApplicationInsightsComponentResource.UpdateProactiveDetectionConfigurationAsync Método

Definição

Atualize a configuração ProactiveDetection para essa ID de configuração.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}
  • Operação IdProactiveDetectionConfigurations_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration>> UpdateProactiveDetectionConfigurationAsync (string configurationId, Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration proactiveDetectionProperties, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateProactiveDetectionConfigurationAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration>>
override this.UpdateProactiveDetectionConfigurationAsync : string * Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApplicationInsights.Models.ApplicationInsightsComponentProactiveDetectionConfiguration>>
Public Overridable Function UpdateProactiveDetectionConfigurationAsync (configurationId As String, proactiveDetectionProperties As ApplicationInsightsComponentProactiveDetectionConfiguration, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationInsightsComponentProactiveDetectionConfiguration))

Parâmetros

configurationId
String

A ID de configuração ProactiveDetection. Isso é exclusivo em um componente do Application Insights.

proactiveDetectionProperties
ApplicationInsightsComponentProactiveDetectionConfiguration

Propriedades que precisam ser especificadas para atualizar a configuração ProactiveDetection.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

configurationId é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

configurationId ou proactiveDetectionProperties é nulo.

Aplica-se a