Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HealthEvent Class

Definition

Namespace:
System.Fabric.Health
Assembly:
System.Fabric.dll
Package:
Microsoft.ServiceFabric v11.4.268

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents health information reported on a health entity, such as cluster, application or node, with additional metadata added by the Health Manager.

public sealed class HealthEvent
type HealthEvent = class
Public NotInheritable Class HealthEvent
Inheritance
HealthEvent

Remarks

Health events are returned by health queries such as GetClusterHealthAsync(ClusterHealthQueryDescription). They contain HealthInformation sent to Health Manager in a HealthReport.

Properties

Name Description
HealthInformation

Gets the health information that was sent to health store in a HealthReport.

IsExpired

Gets a value that indicates whether the health event has expired.

LastErrorTransitionAt

If the current HealthState is Error, returns the time at which the health report was first reported with Error. For periodic reporting, many reports with the same state may have been generated.

If the current HealthState is Ok or Warning, returns the time at which the health state was last in Error, before transitioning to a different state. If the HealthState has never been Error, the value will be System.DateTime.FromFileTimeUtc(0).

LastModifiedUtcTimestamp

Gets the date and time when the health report was last modified by the health store.

LastOkTransitionAt

If the current HealthState is Ok, returns the time at which the health report was first reported with Ok. For periodic reporting, many reports with the same state may have been generated.

If the current HealthState is Error or Warning, returns the time at which the health state was last in Ok, before transitioning to a different state. If the HealthState has never been Ok, the value will be System.DateTime.FromFileTimeUtc(0).

LastWarningTransitionAt

If the current HealthState is Warning, returns the time at which the health report was first reported with Warning. For periodic reporting, many reports with the same state may have been generated.

If the current HealthState is Ok or Error, returns the time at which the health state was last in Warning, before transitioning to a different state. If the HealthState has never been Warning, the value will be System.DateTime.FromFileTimeUtc(0).

SourceUtcTimestamp

Gets the date and time when the health report was sent by the source.

Methods

Name Description
ToString()

Gets a string representation of the health event.

Applies to


Feedback

Was this page helpful?