Meaningful Sessions

Access the number of meaningful, non-meaningful and total sessions by executing

query SessionsMetering(
$accountId: uuid
$deskIds: _uuid
$brainIds: _uuid
$integrationIds: _uuid
$brainVersions: _int4
$startDate: timestamp
$endDate: timestamp
) {
rows: sessions_metering(
args: {
start_time: $startDate
end_time: $endDate
account_id: $accountId
brain_parent_ids: $brainIds
desk_ids: $deskIds
integration_ids: $integrationIds
brain_versions: $brainVersions
}
) {
meaningful_sessions
nonmeaningful_sessions
total_sessions
}
}

Below are some examples of how SessionsMetering can be called.

{
"deskIds": "{d2be0283-9b53-4d7b-b77d-2650f3a1a99c}",
"startDate": "2022-04-08",
"endDate": "2022-04-17"
}

Example Result:

{
"data": {
"rows": [
{
"meaningful_sessions": 1904,
"nonmeaningful_sessions": 2041,
"total_sessions": 3945
}
]
}
}
Last updated on