Condividi tramite


HealthEvent Class

Definition

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

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

ToString()

Gets a string representation of the health event.

Applies to