healbesdk / com.healbe.healbesdk.business_api.healthdata / HealthData / getStressTimeMinutes

getStressTimeMinutes

abstract fun getStressTimeMinutes(level: StressLevel, from: Long, to: Long): Flowable<Int>

Returns Flowable that emits duration in minutes of specified stress level for period from from to to.

Parameters

level - stress level

from - minimum UNIX-timestamp of stress data

to - maximum UNIX-timestamp of stress data

Return
Flowable that emits duration in minutes of specified stress level

See Also

StressLevel

StressData

abstract fun getStressTimeMinutes(level: StressLevel, daysBack: Int): Flowable<Int>

Returns Flowable that emits duration in minutes of specified stress level for day daysBack ago.

Parameters

level - stress level

daysBack - for how many days ago in relation to today information is needed (0 for today)

Return
Flowable that emits duration in minutes of specified stress level for day daysBack ago

See Also

StressLevel

StressData