class HealthEvent


Represents a user's health event.

Summary

Nested types

Health event types.

Public constructors

HealthEvent(
    type: HealthEvent.Type,
    eventTime: Instant,
    metrics: DataPointContainer
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Instant

Returns the time of the health event.

DataPointContainer

Gets metrics associated to the event.

HealthEvent.Type

Gets the type of event.

Public constructors

HealthEvent

Added in 1.0.0
HealthEvent(
    type: HealthEvent.Type,
    eventTime: Instant,
    metrics: DataPointContainer
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

eventTime

Added in 1.0.0
val eventTimeInstant

Returns the time of the health event.

metrics

Added in 1.0.0
val metricsDataPointContainer

Gets metrics associated to the event.

type

Added in 1.0.0
val typeHealthEvent.Type

Gets the type of event.