User based statistics
Retrieve User Based Statistics, filtered according to given options.
Request | |
---|---|
Method | GET |
Resource | https://[customer].asp.virtual-call-center.eu/v2/statistics/userbased |
Options | from, to, dimensions, projects, users, of |
Body | N/A |
Response | |
Body | Requested user-based statistic records in tabulator-tabbed, CSV or JSON format. |
Request
Resource parameters
Name | Type | Mandatory | Comment |
---|---|---|---|
customer | string | yes | Your call centre’s unique identifier (subdomain). |
Options
Name | Type | Mandatory | Comment |
---|---|---|---|
dimensions | string | yes | Dimensions. If there are several items, they should be separated with commas (e.g: dimensions=project, user,time). Possible values: – project – user – date – time |
from | string | yes | First date of the requested time period to be searched, in yyyymmdd format (e.g: from=20210301). |
of | string | no | Output format. Possible values: – tab – cvs – json (default) |
projects | integer | no | Required field. From which specific project(s) should data be retrieved. If there are several items, they should be separated with commas. (e.g: projects=53,64). |
to | string | yes | Last date of the requested time period to be searched, in yyyymmdd format (e.g: from=20120331). |
users | integer | no | Required field. From which specific user(s) should data be retrieved. If there are several items, they should be separated with commas. (e.g: users=53,64). |
Response
Response object
Name | Type | Comment |
---|---|---|
date | string | Date in yyyy-mm-dd format. |
time | integer | Time in hhmm format. |
projectId | integer | Project identifier. |
userId | integer | User identifier. |
data | array |
field: The name of the field the values belong to. count: Number of values belong to the specified field for the specified date. sum: The value itself. |
Example
List user based statistics of projectid:2 between 06.01.2020. and 06.31.2020. based on the ‘project,user,date,time’ dimensions.
https://mycc.asp.virtual-call-center.eu/v2/statistics/outbound?from=202000106&to=20200106&dimensions=project,user,date,time&projects=2&users=17
Response body
{
"response": [
{
"date": "2020-06-15",
"time": 1500,
"projectId": 2,
"userId": 17,
"data": [
{
"field": "userstateAvailable",
"count": 1,
"sum": 160
},
{
"field": "dispositionStatusRecall",
"count": 1,
"sum": null
},
{
"field": "dispositionReachFailed",
"count": 1,
"sum": null
},
{
"field": "userstateAfterwork",
"count": 1,
"sum": 5
},
{
"field": "userstateCall",
"count": null,
"sum": 7
},
{
"field": "callOut",
"count": null,
"sum": 7
}
],
"level": 3
},
{
"date": "2020-06-23",
"time": 1400,
"projectId": 2,
"userId": 17,
"data": [
{
"field": "handledChat",
"count": 2,
"sum": null
}
],
"level": 3
},
{
"date": "2020-06-23",
"time": 1500,
"projectId": 2,
"userId": 17,
"data": [
{
"field": "userstateAvailable",
"count": 2,
"sum": 304
},
{
"field": "ticketCreated",
"count": 1,
"sum": null
},
{
"field": "chatCompleted",
"count": 1,
"sum": null
},
{
"field": "chatFirstResponse",
"count": 1,
"sum": 92
},
{
"field": "chatResponse",
"count": 1,
"sum": 92
},
{
"field": "chatTotal",
"count": 1,
"sum": 219
}
],
"level": 3
},
{
"date": "2020-06-23",
"time": 1600,
"projectId": 2,
"userId": 17,
"data": [
{
"field": "userstateAvailable",
"count": 1,
"sum": 1971
},
{
"field": "chatCompleted",
"count": 2,
"sum": null
},
{
"field": "chatTotal",
"count": 2,
"sum": 1354
}
],
"level": 3
}
],
"errors": []
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.