Compartilhar via


WebTestCollection.CreateOrUpdateAsync Método

Definição

Cria ou atualiza uma definição de teste da Web do Application Insights.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
  • IdWebTests_CreateOrUpdate de operação
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string webTestName, Azure.ResourceManager.ApplicationInsights.WebTestData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApplicationInsights.WebTestData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApplicationInsights.WebTestData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, webTestName As String, data As WebTestData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of WebTestResource))

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

webTestName
String

O nome do recurso WebTest do Application Insights.

data
WebTestData

Propriedades que precisam ser especificadas para criar ou atualizar uma definição de teste da Web do Application Insights.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

webTestName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

webTestName ou data é nulo.

Aplica-se a