Partager via


HealthInformation.RemoveWhenExpired Property

 

Applies To: Azure, Windows 10, Windows 8, Windows 8.1, Windows Server 2012 R2

Gets or sets a value that indicates whether the report is removed from health store when it expires. If set to false, the report is treated as an error when expired. false by default.

Namespace:   System.Fabric.Health
Assembly:  System.Fabric (in System.Fabric.dll)

Syntax

public bool RemoveWhenExpired { get; set; }

Property Value

Type: System.Boolean

true if the report should be removed from health store when expired; otherwise, false.

Remarks

When clients report periodically, they should set RemoveWhenExpiredfalse (default). This way, is the reporter has issues (eg. deadlock) and can't report, the entity is evaluated at error when the health report expires, and this will flag the entity as Error. Periodic health clients should send reports with higher frequency than time to live to account for delays due to health client batching, message transport over the wire and health store processing.

See Also

HealthInformation Class
System.Fabric.Health Namespace

Return to top