User Connection Statistics
Track and analyze user connection metrics, performance data, and server usage
User Connection Statistics
Access detailed connection metrics and performance data. Monitor current sessions, historical data, and server usage patterns for optimization.
Real-Time Metrics
Monitor live connection data.
Performance Analysis
Track speed and latency metrics.
Historical Data
View connection history.
Endpoint Overview
/graphqlRetrieve comprehensive connection statistics including current sessions, recent history, data transfer metrics, and server usage patterns.
GraphQL Query
query myConnectionDashboard {
myConnectionDashboard {
currentConnection {
id
serverId
serverName
connectionStart
connectionEnd
dataTransferred
uploadSpeed
downloadSpeed
latency
responseTime
}
recentConnections {
id
serverId
serverName
connectionStart
connectionEnd
dataTransferred
}
totalDataTransferred
averageMetrics {
averageUploadSpeed
averageDownloadSpeed
averageNetworkSpeed
averageResponseTime
averageLatency
}
serverHistory {
serverId
serverName
totalConnections
totalTime
totalDataTransferred
averagePerformance
lastUsed
}
}
}HTTP Request:
curl -X POST https://api.orbnet.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"query": "query myConnectionDashboard { myConnectionDashboard { currentConnection { serverName uploadSpeed downloadSpeed latency } totalDataTransferred averageMetrics { averageDownloadSpeed averageLatency } } }"
}'Response
{
"data": {
"myConnectionDashboard": {
"currentConnection": {
"id": "conn_789",
"serverId": "srv_123",
"serverName": "US West - Los Angeles",
"connectionStart": "2024-01-15T10:30:00Z",
"connectionEnd": null,
"dataTransferred": "2.5GB",
"uploadSpeed": "45 Mbps",
"downloadSpeed": "120 Mbps",
"latency": "25ms",
"responseTime": "15ms"
},
"recentConnections": [
{
"id": "conn_788",
"serverId": "srv_456",
"serverName": "EU West - Amsterdam",
"connectionStart": "2024-01-14T18:00:00Z",
"connectionEnd": "2024-01-14T22:30:00Z",
"dataTransferred": "8.2GB"
}
],
"totalDataTransferred": "156.7GB",
"averageMetrics": {
"averageUploadSpeed": "42 Mbps",
"averageDownloadSpeed": "115 Mbps",
"averageNetworkSpeed": "78.5 Mbps",
"averageResponseTime": "18ms",
"averageLatency": "28ms"
},
"serverHistory": [
{
"serverId": "srv_123",
"serverName": "US West - Los Angeles",
"totalConnections": 45,
"totalTime": "128 hours",
"totalDataTransferred": "89.3GB",
"averagePerformance": 94,
"lastUsed": "2024-01-15T10:30:00Z"
}
]
}
}
}{
"errors": [
{
"message": "No connection data available",
"path": ["myConnectionDashboard"],
"extensions": {
"code": "NO_DATA"
}
}
],
"data": null
}Available Metrics
Speed Metrics
Upload, download, and network speeds.
Latency Data
Response time and ping measurements.
Data Transfer
Total bytes sent and received.
Server Performance
Per-server usage and metrics.
Dashboard Sections
Current Connection
Recent Connections
Average Metrics
Server History
Use Cases
Performance Monitoring
Track connection quality over time.
Usage Tracking
Monitor data consumption patterns.
Server Optimization
Identify best-performing servers.
Troubleshooting
Diagnose connection issues.
Related Endpoints
Real-Time Updates
Current connection metrics update in real-time. For active monitoring, poll this endpoint periodically or use WebSocket subscriptions if available.
View Full Connection History
Access detailed logs of all past connections for comprehensive analysis.