Skip to main content
Version: 25.03

Performance Monitoring - Network Trace 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

Overview​

Returns the aggregated and over-time metrics of one network trace.

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.
idStringYesTrace ID, as returned in the id field of traces by Overview Read.
periodString or ArrayNoPeriod of the data. Defaults to 30days.
bucketStringNohourly returns the over-time data per hour; otherwise it is returned per day.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Read a network trace​

/o/apm/network?
app_id=6991c75b024cb89cdc04efd2&
api_key=YOUR_API_KEY&
id=TRACE_ID&
period=30days

Response​

Success Response​

{
"trace": "example.com/api/items",
"aggregate": {
"name": "example.com/api/items",
"id": "51dc02d105e5aaa1d576cbd9f2225726:0650152841ea0d08dd73b937a3987328c4f3a1675b2ba71137208da4fcacee51",
"data": {
"response_time": [106, 106, 106]
}
},
"overTime": {
"name": "example.com/api/items",
"id": "51dc02d105e5aaa1d576cbd9f2225726:0650152841ea0d08dd73b937a3987328c4f3a1675b2ba71137208da4fcacee51",
"data": {
"response_time": {
"2022.4.7": [106, 106, 106]
}
}
},
"metrices": {
"response_time": true
}
}

Response Fields​

FieldTypeDescription
traceStringName of the trace.
aggregateObjectAggregated metrics of the trace over the period, with name, id and data. Empty if there is no data.
overTimeObjectMetrics of the trace per day (or per hour), with name, id and data. Empty if there is no data.
metricesObjectMetrics recorded for the trace.

Error Responses​

  • 400
{
"result": "Device trace id not provided"
}