Freigeben über


ApplicationInsightsComponentResource.UpdateProactiveDetectionConfigurationAsync Methode

Definition

Aktualisieren Sie die ProactiveDetection-Konfiguration für diese Konfigurations-ID.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}
  • Vorgang 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))

Parameter

configurationId
String

Die ProactiveDetection-Konfigurations-ID. Dies ist innerhalb einer Application Insights-Komponente eindeutig.

proactiveDetectionProperties
ApplicationInsightsComponentProactiveDetectionConfiguration

Eigenschaften, die angegeben werden müssen, um die ProactiveDetection-Konfiguration zu aktualisieren.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

configurationId ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

configurationId oder proactiveDetectionProperties ist NULL.

Gilt für: