public final class HealthEvent


Represents a user's health event.

Summary

Nested types

public final class HealthEvent.Type

Health event types.

Public constructors

HealthEvent(
    @NonNull HealthEvent.Type type,
    @NonNull Instant eventTime,
    @NonNull DataPointContainer metrics
)

Public methods

boolean
equals(Object other)
final @NonNull Instant

Returns the time of the health event.

final @NonNull DataPointContainer

Gets metrics associated to the event.

final @NonNull HealthEvent.Type

Gets the type of event.

int

Public constructors

HealthEvent

Added in 1.0.0
public HealthEvent(
    @NonNull HealthEvent.Type type,
    @NonNull Instant eventTime,
    @NonNull DataPointContainer metrics
)

Public methods

equals

public boolean equals(Object other)

getEventTime

Added in 1.0.0
public final @NonNull Instant getEventTime()

Returns the time of the health event.

getMetrics

Added in 1.0.0
public final @NonNull DataPointContainer getMetrics()

Gets metrics associated to the event.

getType

Added in 1.0.0
public final @NonNull HealthEvent.Type getType()

Gets the type of event.

hashCode

public int hashCode()