Udostępnij za pośrednictwem


CodePackageActivationContext.ReportDeployedServicePackageHealth Method

Definition

Overloads

ReportDeployedServicePackageHealth(HealthInformation)

Reports health for current deployed service package.

ReportDeployedServicePackageHealth(HealthInformation, HealthReportSendOptions)

Reports health for current deployed service package.

ReportDeployedServicePackageHealth(HealthInformation)

Reports health for current deployed service package.

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

Read more about health reporting.

Applies to

ReportDeployedServicePackageHealth(HealthInformation, HealthReportSendOptions)

Reports health for current deployed service package.

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