Response Times Interval

Access the agent response times per interval (i.e per day) by executing:

query ResponseTimesInterval(
$deskIds: _uuid
$brainIds: _uuid
$integrationIds: _uuid
$brainVersions: _int4
$channels: _text
$startDate: timestamp
$endDate: timestamp
$intervalInDays: interval
$events: _text
$firstMessage: Boolean
$isTest: Boolean
) {
rows: response_times_interval(
args: {
interval_span: $intervalInDays
start_time: $startDate
end_time: $endDate
brain_parent_ids: $brainIds
desk_ids: $deskIds
integration_ids: $integrationIds
brain_versions: $brainVersions
channels: $channels
events: $events
first_message: $firstMessage
is_test: $isTest
}
) {
average_time
median_time
max_time
min_time
num_responses
date: per_interval
}
}

Below are some examples of how ResponseTimesInterval can be called.

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

Example Result:

{
"data": {
"rows": [
{
"average_time": 0.44362998,
"median_time": 0.024566667,
"max_time": 1.7883333,
"min_time": 0.023866666,
"num_responses": 5,
"date": "2022-04-15T00:00:00"
},
{
"average_time": 0.101399995,
"median_time": 0.084366664,
"max_time": 0.15781666,
"min_time": 0.062016666,
"num_responses": 3,
"date": "2022-04-18T00:00:00"
}
]
}
}
Last updated on