Performance Monitoring - Network Latency Breakdown
Enterprise
This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.
Endpoint
/o/apm/network-latency-breakdown
Overview
Returns the response time of network requests per country, together with how many requests fall into each latency group.
Authentication
Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.
Permissions
- Requires
Readpermission for the Performance Monitoring feature (performance_monitoring) in the target app.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Yes (or auth_token) | API key authentication |
auth_token | String | Yes (or api_key) | Auth token authentication |
app_id | String | Yes | ID of the app. |
period | String | No | Period of the data, for example 30days or a date range. Defaults to 30days. |
Examples
Example: Read the network latency breakdown
curl "https://your-server.com/o/apm/network-latency-breakdown?api_key=YOUR_API_KEY&app_id=YOUR_APP_ID&period=30days"
Response
Success Response
[
{
"cc": "TR",
"data": {
"response_time": 375
},
"breakdown": {
"below": 3,
"between": 0,
"above": 0
}
}
]
Response Fields
| Field | Type | Description |
|---|---|---|
(root array) | Array | One entry per country. |
cc | String | Country code, or Unknown when the country is not known. |
data.response_time | Number | Median response time for the country. |
breakdown.below | Number | Number of requests in the fastest latency group (below 2 seconds). |
breakdown.between | Number | Number of requests in the middle group (2 seconds up to 6 seconds). |
breakdown.above | Number | Number of requests in the slowest group (6 seconds or more). |
Behavior
- Only network traces are included.
Related Endpoints
Implementation details
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.apm | Trace data | Reads the response times stored per country. |