🔗 Console REST APIConnection Analytics
Gets connection analytics grouped by service, protocol, and data center for the current organization
Returns connection analytics for your organization grouped by service, protocol, and data center. Shows total connections, active connections, unique API keys, connection duration metrics, and activity timestamps.
Authorization<token>
API Key is required to access the endpoints
In: header
Query Parameters
serviceName?string
Optional service name filter
protocolName?string
Optional protocol name filter
dataCenter?string
Optional data center filter
timeStart?string
Start time for the analysis period
Format
date-timetimeEnd?string
End time for the analysis period
Format
date-timeminutes?integer
Minutes back from now (alternative to timeStart/timeEnd)
Format
int32Response Body
curl -X GET "https://api-console.apibricks.io/api/connection-analytics/summary"[
{
"organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"serviceName": "coinapi-ws",
"protocolName": "WebSocket",
"dataCenter": "us-east-1/server-01",
"totalConnections": 284,
"newConnectionsInPeriod": 34,
"uniqueApiKeys": 12,
"averageConnectionDurationSeconds": 2134,
"totalConnectionTimeSeconds": 10134,
"firstConnection": "2024-01-14T08:15:30.0000000Z",
"lastConnection": "2024-01-15T14:22:45.0000000Z",
"lastActivity": "2024-01-15T14:30:25.0000000Z"
},
{
"organizationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"serviceName": "coinapi-rest",
"protocolName": "REST",
"dataCenter": "eu-west-1/server-02",
"totalConnections": 145,
"newConnectionsInPeriod": 89,
"uniqueApiKeys": 8,
"averageConnectionDurationSeconds": 1847,
"totalConnectionTimeSeconds": 4482,
"firstConnection": "2024-01-14T09:30:15.0000000Z",
"lastConnection": "2024-01-15T14:18:20.0000000Z",
"lastActivity": "2024-01-15T14:28:10.0000000Z"
}
]Empty
Empty
