Skip to main content
Version: 25.03

Performance Monitoring - Network Latency Breakdown Read

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 by country, with the number of requests that were fast, medium and slow.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires performance_monitoring Read permission.

Request Parameters​

ParameterTypeRequiredDescription
app_idStringYesApplication ID.
periodString or ArrayNoPeriod of the data. Defaults to 30days.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Read the latency breakdown of the last 30 days​

/o/apm/network-latency-breakdown?
app_id=6991c75b024cb89cdc04efd2&
api_key=YOUR_API_KEY&
period=30days

Response​

Success Response​

[
{
"cc": "TR",
"data": {
"response_time": 375
},
"breakdown": {
"below": 3,
"between": 0,
"above": 0
}
}
]

Response Fields​

FieldTypeDescription
ccStringCountry code, or Unknown.
data.response_timeNumberMedian response time, in milliseconds.
breakdown.belowNumberNumber of requests faster than 2 seconds.
breakdown.betweenNumberNumber of requests between 2 and 6 seconds.
breakdown.aboveNumberNumber of requests of 6 seconds or more.