Monitor Stats Overview
Monitor Stats Overview (Autodialer)
API thống kê tổng quan các chiến dịch Autodialer theo khoảng thời gian (INTERVAL) gần nhất.
curl --location 'https://{{base_url}}/v3/monitor-stats/overview?interval=30' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}'
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| interval | integer | Yes | Khoảng thời gian thống kề từ INTERVAL phút đến hiện tại |
| campaign_uuid | array | No | Danh sach của Campaign UUIDs cần filter. Ví dụ: ?campaign_uuid=CAMPAIGN_ID1&campaign_uuid=CAMPAIGN_ID2 |
Response trả về:
| Field | Description |
|---|---|
| total_calls | Tổng số cuộc gọi đã dial trong khoảng thời gian interval |
| connected_customers | Số KH nghe máy (status: ANSWERED, BUSY LINE, DROP) |
| connected_agents | Số cuộc gọi agent nhấc máy (status: ANSWERED) |
| dropped_calls | Số cuộc gọi rớt = connected_customers - connected_agents |
| customer_connection_rate | (connected_customers / total_calls) × 100 |
| dropped_call_rate | (dropped_calls / connected_customers) × 100 |
| last_updated | Thời gian cập nhật dữ liệu gần nhất |
Ví dụ:
HTTP Request
GET https://{{base_url}}/v3/monitor-stats/overview?interval=30
Response:
{
"data": {
"total_calls": 20000,
"connected_customers": 15000,
"connected_agents": 10000,
"dropped_calls": 5000,
"customer_connection_rate": 75.00,
"dropped_call_rate": 33.33,
"last_updated": "2025-01-31T10:30:00Z"
},
"status": "success"
}