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

ResourceHealthExtensions.GetHealthEventsOfSingleResource 方法

定义

列出给定资源的当前服务运行状况事件。

  • 请求路径/{resourceUri}/providers/Microsoft.ResourceHealth/events
  • 操作IdEvents_ListBySingleResource
public static Azure.Pageable<Azure.ResourceManager.ResourceHealth.ResourceHealthEventData> GetHealthEventsOfSingleResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member GetHealthEventsOfSingleResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ResourceHealth.ResourceHealthEventData>
<Extension()>
Public Function GetHealthEventsOfSingleResource (client As ArmClient, scope As ResourceIdentifier, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ResourceHealthEventData)

参数

client
ArmClient

方法 ArmClient 将对其执行的实例。

scope
ResourceIdentifier

资源将应用于的范围。

filter
String

要应用于操作的筛选器。 有关详细信息,请参阅 https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于