HealthEvent
public final class HealthEvent
Represents a user's health event.
Summary
Nested types |
|---|
public final class HealthEvent.TypeHealth event types. |
Public constructors |
|---|
HealthEvent( |
Public methods |
|
|---|---|
boolean |
|
final @NonNull Instant |
Returns the time of the health event. |
final @NonNull DataPointContainer |
Gets metrics associated to the event. |
final @NonNull HealthEvent.Type |
getType()Gets the type of event. |
int |
hashCode() |
Public constructors
HealthEvent
Added in 1.0.0
public HealthEvent(
@NonNull HealthEvent.Type type,
@NonNull Instant eventTime,
@NonNull DataPointContainer metrics
)
Public methods
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.