DYNAMIC_SESSIONS

Collects an array of session start and end times, where a session is defined as a group of events that are not separated by a gap of more than the configured window size.

Syntax

DYNAMIC_SESSIONS([MAX_SESSIONS,] TIME, WINDOWSIZE)

Arguments

MAX_SESSIONS

Type: integer

Default: 2,147,483,647

(Optional) The maximum number of entries that are counted.

TIME

Type: numeric

The time value associated with each event. This is the value that is used to calculate the gap.

WINDOWSIZE

Type: numeric

The window gap size to use. A session is defined as a group of events that are not separated by a time gap larger than WINDOWSIZE.

This value should be in the same time unit as TIME.

Returns

Type: array

Returns an array of session start and end times based on the values in TIME with session length being configured by WINDOWSIZE.

Last updated