Intervals

object Intervals

This object contains methods related to marked intervals. Marked intervals can be used to represent important, named time intervals with meta data so that measurement data can be associated with application/domain specific information.

Functions

Link copied to clipboard
fun markIntervalEnd(intervalType: String, elapsedMillis: Long? = null)

Marks the end of a started interval.

Link copied to clipboard
fun markIntervalStart(intervalType: String, contentId: String, elapsedMillis: Long? = null, timeoutSeconds: Long = 43200)

Marks the start of a special interval.

Link copied to clipboard
fun setIntervalAttribute(intervalType: String, key: String, value: Boolean)

Sends a custom boolean meta-data property for the given interval.

fun setIntervalAttribute(intervalType: String, key: String, value: Number)

Sends a custom number meta-data property for the given interval.

fun setIntervalAttribute(intervalType: String, key: String, value: String)

Sends a custom string meta-data property for the given interval.