StressSummary

data class StressSummary

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

See also

Properties

Link copied to clipboard

average stress level during measurement period

Link copied to clipboard

Average stress state

Link copied to clipboard

maximum stress level during measurement period

Link copied to clipboard

Maximum stress state

Link copied to clipboard

UNIX-timestamp of maximum stress level during measurement period

Link copied to clipboard

minimum stress level during measurement period

Link copied to clipboard

Minimum stress state

Link copied to clipboard

UNIX-timestamp of minimum stress level during measurement period

Link copied to clipboard

StressData used for calculate the summary. The same list will be returned by HealthData.getStressData for the same daysBack.

Functions

Link copied to clipboard
fun getAccumulatedStress(units: TimeUnit = TimeUnit.SECONDS): Long

Returns accumulated stress duration in specified units. Default units: TimeUnit.SECONDS.

Link copied to clipboard
fun getHighStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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

Link copied to clipboard
fun getLightDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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

Link copied to clipboard
fun getModerateStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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

Link copied to clipboard
fun getNoStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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

Link copied to clipboard
fun getVeryHighStressDuration(units: TimeUnit = TimeUnit.SECONDS): Long

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