These docs are for v0.0.1. Click to read the latest docs for v1.0.61.

Discussions

Ask a Question
Back to All

Request Metrics returns lower case attributes when passed mixed case

In postman when I do a GET https://na.api.avayacloud.com/api/queue-metrics/v1/accounts/CRIZWE/queues/d9300609-414d-4825-992e-58bd0c4b1438/channels/Voice/metrics?attributes=Location.Boston,Service.Customer%20Support,Language.English

The response JSON (see below) has the attributes converted from mixed case to lower case, which I did not expect. Even if case does not matter when doing the internal matching, this change means I cannot validate the response against the request without also converting to lower case.

{
"accountId": "CRIZWE",
"matchQueue": {
"queueId": "d9300609-414d-4825-992e-58bd0c4b1438",
"channelId": "Voice",
"attributes": [
"location.boston",
"service.customer support",
"language.english"
]
},
"metricType": "SPECIALIZED_QUEUE",
"metrics": [
{
"metricName": "rollingASA",
"metricValue": "0.0"
},
{
"metricName": "oldestEngagementWaiting",
"metricValue": "0"
},
{
"metricName": "agentStaffedCount",
"metricValue": "0"
},
{
"metricName": "queueOccupancy",
"metricValue": "0"
},
{
"metricName": "processingEngagementCount",
"metricValue": "0"
},
{
"metricName": "waitingEngagementCount",
"metricValue": "0"
},
{
"metricName": "agentBusyCount",
"metricValue": "0"
},
{
"metricName": "expectedWaitTime",
"metricValue": "999999"
},
{
"metricName": "agentReadyCount",
"metricValue": "0"
}
]
}