feat: Add live agent load report api (#4297)
This change allows the admin user to fetch conversation metrics for an account, agents, and filter conversation metrics for a specific agent. Fixes #4305
This commit is contained in:
23
swagger/paths/application/reports/conversation/account.yml
Normal file
23
swagger/paths/application/reports/conversation/account.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
tags:
|
||||
- Reports
|
||||
operationId: get-account-conversation-metrics
|
||||
summary: Account Conversation Metrics
|
||||
description: Get conversation metrics for Account
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: object
|
||||
description: 'Object of account conversation metrics'
|
||||
properties:
|
||||
open:
|
||||
type: number
|
||||
unattended:
|
||||
type: number
|
||||
unassigned:
|
||||
type: number
|
||||
|
||||
404:
|
||||
description: reports not found
|
||||
403:
|
||||
description: Access denied
|
||||
18
swagger/paths/application/reports/conversation/agent.yml
Normal file
18
swagger/paths/application/reports/conversation/agent.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
tags:
|
||||
- Reports
|
||||
operationId: get-agent-conversation-metrics
|
||||
summary: Agent Conversation Metrics
|
||||
description: Get conversation metrics for Agent
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: array
|
||||
description: 'Array of agent based conversation metrics'
|
||||
items:
|
||||
$ref: '#/definitions/agent_conversation_metrics'
|
||||
|
||||
404:
|
||||
description: reports not found
|
||||
403:
|
||||
description: Access denied
|
||||
@@ -10,7 +10,12 @@ responses:
|
||||
type: array
|
||||
description: 'Array of date based conversation statistics'
|
||||
items:
|
||||
$ref: '#/definitions/report'
|
||||
type: object
|
||||
properties:
|
||||
value:
|
||||
type: string
|
||||
timestamp:
|
||||
type: number
|
||||
404:
|
||||
description: reports not found
|
||||
403:
|
||||
|
||||
@@ -7,10 +7,8 @@ responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
type: array
|
||||
description: 'Array of date based conversation statistics'
|
||||
items:
|
||||
$ref: '#/definitions/report'
|
||||
description: 'Object of summary metrics'
|
||||
$ref: '#/definitions/account_summary'
|
||||
404:
|
||||
description: reports not found
|
||||
403:
|
||||
|
||||
Reference in New Issue
Block a user