你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HealthMonitorResource.GetHealthMonitorStateChangeAsync 方法

定义

在提供的时间戳处获取虚拟机监视器的运行状况更改。 可选参数:$expand (检索监视器的证据和配置) 。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceCollectionName}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitors/{monitorId}/history/{timestampUnix}
  • 操作IdHealthMonitors_GetStateChange
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorStateChangeResource>> GetHealthMonitorStateChangeAsync (string timestampUnix, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHealthMonitorStateChangeAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorStateChangeResource>>
override this.GetHealthMonitorStateChangeAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.WorkloadMonitor.HealthMonitorStateChangeResource>>
Public Overridable Function GetHealthMonitorStateChangeAsync (timestampUnix As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HealthMonitorStateChangeResource))

参数

timestampUnix
String

状态更改的时间戳 (unix 格式) 。

expand
String

(可选)展开监视器的证据和/或配置。 示例:$expand=evidence,配置。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

timestampUnix 是一个空字符串,预期为非空。

timestampUnix 为 null。

适用于