Skip to main content
Version: 24.05

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 Read permission for the Performance Monitoring feature (performance_monitoring) in the target app.

Request Parameters​

ParameterTypeRequiredDescription
api_keyStringYes (or auth_token)API key authentication
auth_tokenStringYes (or api_key)Auth token authentication
app_idStringYesID of the app.
periodStringNoPeriod 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​

FieldTypeDescription
(root array)ArrayOne entry per country.
ccStringCountry code, or Unknown when the country is not known.
data.response_timeNumberMedian response time for the country.
breakdown.belowNumberNumber of requests in the fastest latency group (below 2 seconds).
breakdown.betweenNumberNumber of requests in the middle group (2 seconds up to 6 seconds).
breakdown.aboveNumberNumber of requests in the slowest group (6 seconds or more).

Behavior​

  • Only network traces are included.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.apmTrace dataReads the response times stored per country.