Partilhar via


LogAnalyticsQueryResource.UpdateAsync Método

Definição

Adiciona ou Atualizações uma consulta específica em um QueryPack do Log Analytics.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
  • Operação IdQueries_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryResource>> UpdateAsync (Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryResource>>
override this.UpdateAsync : Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryResource>>
Public Overridable Function UpdateAsync (data As LogAnalyticsQueryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LogAnalyticsQueryResource))

Parâmetros

data
LogAnalyticsQueryData

Propriedades que precisam ser especificadas para criar uma nova consulta e adicioná-la a um QueryPack do Log Analytics.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

data é nulo.

Aplica-se a