Partilhar via


HealthMonitorResource.GetAsync(String, CancellationToken) Método

Definição

Obtenha a status de integridade atual de um monitor de uma máquina virtual. Parâmetro opcional: $expand (recuperar a evidência e a configuração do monitor).

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceCollectionName}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitors/{monitorId}
  • IdHealthMonitors_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>> GetAsync (string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorResource>>
Public Overridable Function GetAsync (Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HealthMonitorResource))

Parâmetros

expand
String

Opcionalmente, expanda a evidência e/ou a configuração do monitor. Exemplo: $expand=evidence,configuration.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Aplica-se a