vexo_get_sessions
Summarize recent app sessions grouped by entity to distinguish bailed out sessions from event-poor ones.
Instructions
Summarize the most recent app sessions, grouped by an entity. Use to tell a "bailed out" session (short, few screens) apart from an "event-poor" session (normal length but missing data events).
By default scans the configured lookback window (default 30 days) ending now; pass start_date/end_date to override. Groups events by sessionId, then returns the N most recent sessions per group value (most recent first).
Inputs: group_by: OPTIONAL entity dimension (defaults to server group key, else "deviceId"), e.g. "worker_id". filter_values: OPTIONAL list restricting group_by to these values. Max 200. filters: OPTIONAL extra key/value constraints. n_sessions_per_group: default 20, max 50. start_date, end_date: OPTIONAL ISO dates to override the lookback window.
Returns: { window, group_by, rows:[{group?, session_id, start, end, duration_s, screen_count, event_count, last_screen}], truncated, total_count? }. screen_count = # of screen_view events. On failure: { error }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group_by | No | ||
| filter_values | No | ||
| filters | No | ||
| n_sessions_per_group | No | ||
| start_date | No | ||
| end_date | No |