Share via


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

FabricClient.HealthClient.ReportHealth 方法

定义

重载

ReportHealth(HealthReport)

报告 Service Fabric 实体的运行状况。

ReportHealth(HealthReport, HealthReportSendOptions)

报告 Service Fabric 实体的运行状况,并传递发送选项来控制报表的发送方式。

ReportHealth(HealthReport)

报告 Service Fabric 实体的运行状况。

public void ReportHealth (System.Fabric.Health.HealthReport healthReport);
member this.ReportHealth : System.Fabric.Health.HealthReport -> unit
Public Sub ReportHealth (healthReport As HealthReport)

参数

healthReport
HealthReport

HealthReport 提交的 。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

将 null 引用传递给不接受它作为有效参数的方法时返回。

由以下原因之一引起:

当此操作的访问检查失败时,将返回E_ACCESSDENIED。

注解

保护群集后,运行状况客户端需要管理员权限才能发送报告。 详细了解 如何使用 FabricClient API 连接到群集

有关运行状况报告的详细信息,请参阅 Service Fabric 运行状况监视

适用于

ReportHealth(HealthReport, HealthReportSendOptions)

报告 Service Fabric 实体的运行状况,并传递发送选项来控制报表的发送方式。

public void ReportHealth (System.Fabric.Health.HealthReport healthReport, System.Fabric.Health.HealthReportSendOptions sendOptions);
member this.ReportHealth : System.Fabric.Health.HealthReport * System.Fabric.Health.HealthReportSendOptions -> unit
Public Sub ReportHealth (healthReport As HealthReport, sendOptions As HealthReportSendOptions)

参数

healthReport
HealthReport

HealthReport 提交的 。

sendOptions
HealthReportSendOptions

控制 HealthReportSendOptions 报表发送方式的 。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

将 null 引用传递给不接受它作为有效参数的方法时返回。

由以下原因之一引起:

当此操作的访问检查失败时,将返回E_ACCESSDENIED。

注解

保护群集后,运行状况客户端需要管理员权限才能发送报告。 详细了解 如何使用 FabricClient API 连接到群集。

有关运行状况报告的详细信息,请参阅 Service Fabric 运行状况监视

适用于