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 の正常性の監視」を参照してください。

適用対象