Udostępnij za pośrednictwem


CodePackageActivationContext.ReportDeployedApplicationHealth Method

Definition

Overloads

ReportDeployedApplicationHealth(HealthInformation)

Reports health for current deployed application.

ReportDeployedApplicationHealth(HealthInformation, HealthReportSendOptions)

Reports health for current deployed application.

ReportDeployedApplicationHealth(HealthInformation)

Reports health for current deployed application.

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

Parameters

healthInfo
HealthInformation

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

Implements

Exceptions

Returned when a null reference is passed to a method that does not accept it as a valid argument.

Remarks

The health information describes the report details, like the source ID, the property, the health state and other relevant details. The code package activation context 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 by using ReportDeployedApplicationHealth(HealthInformation, HealthReportSendOptions).

Read more about health reporting.

Applies to

ReportDeployedApplicationHealth(HealthInformation, HealthReportSendOptions)

Reports health for current deployed application.

public void ReportDeployedApplicationHealth (System.Fabric.Health.HealthInformation healthInfo, System.Fabric.Health.HealthReportSendOptions sendOptions);
abstract member ReportDeployedApplicationHealth : System.Fabric.Health.HealthInformation * System.Fabric.Health.HealthReportSendOptions -> unit
override this.ReportDeployedApplicationHealth : System.Fabric.Health.HealthInformation * System.Fabric.Health.HealthReportSendOptions -> unit
Public Sub ReportDeployedApplicationHealth (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.

Implements

Exceptions

Returned when a null reference is passed to a method that does not accept it as a valid argument.

Remarks

The health information describes the report details, like the source ID, the property, the health state and other relevant details. The code package activation context 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