--> --> --> -->

Get Average Handling Time (AHT) for Threads Within Provided Period

Permissions

  ----
  Permissions:INTEGRATOR,SUPERVISOR
  ----

Request Parameters

ParameterTypeDescription
queue numberExternal queue ID to link results
intervalMinutes numberInterval length in minutes to split the provided period into chunks. Limitation: the length must be between 1 and 24 * 60 (24 hours)
startDate datePeriod start date in the format yyyy-MM-dd’T’HH:mm:ss.SSS’Z’
endDate datePeriod end date in the format yyyy-MM-dd’T’HH:mm:ss.SSS’Z’

HTTP Request

GET /api/v1/threads/aht?queue=1000&intervalMinutes=15&startDate=2022-02-04T07%3A59%3A05.381Z&endDate=2022-02-04T08%3A00%3A05.381Z HTTP/1.1
Authorization: Bearer <integrator_token>
Host: localhost:8080

Example of a Successful HTTP Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 209
[
    {
        "aht": 100,
        "queue": 1000,
        "threadsCount": 1,
        "date": "2022-02-04T07:59:05.380Z"
    },
    {
        "aht": 2100,
        "queue": 1000,
        "threadsCount": 2,
        "date": "2022-02-04T07:59:05.380Z"
    }
]

Response Parameters

ParameterTypeDescription
[].ahtnumberAverage handling time for threads that belong to the time interval you specify
[].queuenumberExternal queue ID to link the results
[].threadsCountnumberNumber of threads that belong to the time interval
[].datestringEnd date of the current interval