Share via


HealthEvent Class

 

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

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

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

Inheritance Hierarchy

System.Object
  System.Fabric.Health.HealthEvent

Syntax

public sealed class HealthEvent

Properties

Name Description
System_CAPS_pubproperty HealthInformation

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

System_CAPS_pubproperty IsExpired

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

System_CAPS_pubproperty 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).

System_CAPS_pubproperty LastModifiedUtcTimestamp

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

System_CAPS_pubproperty 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).

System_CAPS_pubproperty 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).

System_CAPS_pubproperty SourceUtcTimestamp

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

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

Gets a string representation of the health event. (Overrides Object.ToString().)

Remarks

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

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Fabric.Health Namespace

Return to top