共用方式為


IStatelessServicePartition.ReportInstanceHealth Method

Definition

Overloads

ReportInstanceHealth(HealthInformation)

Reports health information on the current stateless service instance of the partition.

ReportInstanceHealth(HealthInformation, HealthReportSendOptions)

Reports health information on the current stateless service instance of the partition.

ReportInstanceHealth(HealthInformation)

Reports health information on the current stateless service instance of the partition.

public void ReportInstanceHealth (System.Fabric.Health.HealthInformation healthInfo);
abstract member ReportInstanceHealth : System.Fabric.Health.HealthInformation -> unit
Public Sub ReportInstanceHealth (healthInfo As HealthInformation)

Parameters

healthInfo
HealthInformation

The HealthInformation that describes the health report information, such as source, property, and health state.

Exceptions

This indicates that the partition object is closed. The replica/replicator/instance has either been closed or is about to be closed.

Remarks

The health information describes the report details, like the source ID, the property, the health state and other relevant details. The partition uses an internal health client to send the reports to the health store. If the report has high priority, you can specify send options to send it immediately by using ReportInstanceHealth(HealthInformation, HealthReportSendOptions).

Read more about health reporting.

Applies to

ReportInstanceHealth(HealthInformation, HealthReportSendOptions)

Reports health information on the current stateless service instance of the partition.

public void ReportInstanceHealth (System.Fabric.Health.HealthInformation healthInfo, System.Fabric.Health.HealthReportSendOptions sendOptions);
abstract member ReportInstanceHealth : System.Fabric.Health.HealthInformation * System.Fabric.Health.HealthReportSendOptions -> unit
Public Sub ReportInstanceHealth (healthInfo As HealthInformation, sendOptions As HealthReportSendOptions)

Parameters

healthInfo
HealthInformation

The HealthInformation that describes the health report information, such as source, property and health state.

sendOptions
HealthReportSendOptions

The HealthReportSendOptions that controls how the report is sent.

Exceptions

This indicates that the partition object is closed. The replica/replicator/instance has either been closed or is about to be closed.

Remarks

The health information describes the report details, like the source ID, the property, the health state and other relevant details. The partition uses an internal health client to send the reports to the health store. The client optimizes messages to Health Manager by batching reports per a configured duration (Default: 30 seconds). If the report has high priority, you can specify send options to send it immediately.

Read more about health reporting.

Applies to