healbesdk / com.healbe.healbesdk.business_api.healthdata.data.stress / StressSummary

StressSummary

data class StressSummary

Full summary about stress: minimum and maximum values and durations for all stress levels.

Properties

averageLevel

val averageLevel: Float

average stress level during measurement period

averageState

val averageState: StressState

Average stress state

maxLevel

val maxLevel: Float

maximum stress level during measurement period

maxState

val maxState: StressState

Maximum stress state

maxTimestamp

val maxTimestamp: Long

UNIX-timestamp of maximum stress level during measurement period

minLevel

val minLevel: Float

minimum stress level during measurement period

minState

val minState: StressState

Minimum stress state

minTimestamp

val minTimestamp: Long

UNIX-timestamp of minimum stress level during measurement period

Functions

getHighStressDuration

fun getHighStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns high stress state duration in specified units. Default units: TimeUnit.SECONDS.

getLightDuration

fun getLightDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns light stress state duration in specified units. Default units: TimeUnit.SECONDS.

getModerateStressDuration

fun getModerateStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns moderate stress state duration in specified units. Default units: TimeUnit.SECONDS.

getNoStressDuration

fun getNoStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns no stress state duration in specified units. Default units: TimeUnit.SECONDS.

getVeryHighStressDuration

fun getVeryHighStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns very high stress state duration in specified units. Default units: TimeUnit.SECONDS.