Device App Test Report
The Device App Test Report API
provides endpoints for registering network test reports fromallows mobile applicationsorandclientnetworkdevices.monitoringThis functionality enables applicationstools to submitdiagnostic data, connectivity metrics, andnetwork performance test results to theserverGATEforsystem.monitoring,Thisanalysis,endpoint enables the collection of comprehensive network metrics including download/upload speeds, latency, jitter, andtroubleshootingDNSpurposes.response times across different network types like WiFi, Mobile, Bluetooth, and Ethernet.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Device App Test Report API is designed tofor collectapplications that perform network testing and processneed networkto diagnosticcentrally datareport fromtheir clientfindings applicationsto andthe devices.GATE monitoring system. This API category is essentialparticularly useful for:
-
NetworkMobilePerformanceapplicationsMonitoring:conductingCollecting real-timeperiodic networkmetricsperformancefrom end-user devices to monitor connectivity quality and identify potential issuestests -
DiagnosticIoTDatadevicesCollectionreporting connectivity metrics
The endpoint accepts detailed test reports thatincluding includethe network context (type, name), test methodology (download, upload, latency, bandwidth,etc.), packettarget loss,destinations, and connectivitymeasured statusvalues informationwith
The API uses standardized abbreviations for network types and test reportstypes typicallyto containensure structuredconsistent data aboutcollection networkacross conditions,different devicereporting information, test parameters,applications and results. This data helps organizations maintain service quality, identify network bottlenecks, and proactively address connectivity problems before they impact users.
Common scenarios include mobile apps performing periodic connectivity checks, IoT devices reporting status, and diagnostic tools submitting comprehensive network analysis results.devices.
Endpoints
POST /device_app_test_report/
Description: RegistersSubmits a newnetwork networkperformance test report fromto athe clientGATE device or application.system. This endpoint acceptsallows diagnosticapplications to register the results of network tests they have performed, including speed tests, latency measurements, and connectivity checks. The submitted data includinghelps build a comprehensive picture of network performance metrics,across connectivitydifferent test results, device information,environments and environmentalconnection factors that may affect network performance. Use this endpoint whenever your application completes a network diagnostic test or needs to report connectivity status.types.
Use Cases:
- Mobile
applicationsapp reporting WiFi speed test results in different locations
Full URL Example:
https://gate.zequenze.com/api/v1/device_app_test_report/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | string | body | Yes |
Request Body Schema:
Network Type Codes:
wi = WiFi
mo = Mobile (cellular)
bl = Bluetooth
et = Ethernet
Test Type Codes:
dl = Download speed test
ul = Upload speed test
de = Delay/latency test
jt = Jitter measurement
dn = DNS response time test
cURL Example:
curl -X POST "https://gate.zequenze.com/api/v1/device_app_test_report/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data"network_name": "{\Office WiFi 5GHz",
"device_id\network_type": "wi",
"test_type":\ "device_12345\dl",
"destination": "speedtest.net",\
"app_version\value": 85.7,
"count":\ 3,
"2.1.3\unit": ",\"test_type\":\"connectivity_check\",\"timestamp\":\"2024-01-15T14:30:00Z\",\"network_type\":\"wifi\",\"signal_strength\":-45,\"latency_ms\":23,\"download_speed_mbps\":85.2,\"upload_speed_mbps\":42.7,\"packet_loss_percent\":0.1,\"dns_resolution_time_ms\":15,\"connection_success\":true,\"server_endpoint\":\"api.example.com\",\"geolocation\":{\"latitude\":37.7749,\"longitude\":-122.4194},\"device_info\":{\"os\":\"iOS\",\"version\":\"17.1\",\"model\":\"iPhone 14\"}}"Kbps"
}'
Example Request Body:
{
"data": "{\"device_id\":\"device_12345\",\"app_version\":\"2.1.3\",\"test_type\":\"connectivity_check\",\"timestamp\":\"2024-01-15T14:30:00Z\",\"network_type\":\"wifi\",\"signal_strength\":-45,\"latency_ms\":23,\"download_speed_mbps\":85.2,\"upload_speed_mbps\":42.7,\"packet_loss_percent\":0.1,\"dns_resolution_time_ms\":15,\"connection_success\":true,\"server_endpoint\":\"api.example.com\",\"geolocation\":{\"latitude\":37.7749,\"longitude\":-122.4194},\"device_info\":{\"os\":\"iOS\",\"version\":\"17.1\",\"model\":\"iPhone 14\"}}"
}
Example Response:
{
"id": 789456,
"status"network_name": "received"Office WiFi 5GHz",
"report_id"network_type": "rpt_2024011514300012345"wi",
"timestamp"test_type": "2024-01-15T14:30:15Z"dl",
"processed": false,
"message"destination": "Testspeedtest.net",
report"value": successfully85.7,
registered"count": and3,
queued"unit": for processing""Kbps"
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Test report successfully |
| 400 | Bad Request - Invalid data format or missing required fields |
| 401 | Unauthorized - Invalid or missing authentication token |
Common Use Cases
Use Case 1: Mobile Speed Test App Connectivity Monitoring
MobileA applicationsmobile canapplication useperforms thisregular endpointspeed tests and reports results to regularly submittrack network performance reports, helping identify connectivity issues across different carriers, locations,locations and networkcarriers. conditions.The Submitapp reportsconducts afterdownload significanttests networkevery eventshour orand onsubmits aresults scheduledwith basis.location context.
Use Case 2: IoT Device Health ReportingMonitoring
Industrial IoT devices canperform report theirperiodic connectivity status,checks signalto strength,ensure reliable communication with cloud services. Devices test DNS response times and communication reliabilitylatency to helpcritical maintainendpoints optimalevery network15 performance and identify devices that may need attention or repositioning.minutes.
Use Case 3: QualityOffice AssuranceNetwork TestingMonitoring
During application testing phases,An automated testmonitoring suitessystem cantests submit comprehensiveinternal network diagnosticperformance reportsby measuring upload/download speeds to validatevarious cloud services, helping IT teams identify performance under various network conditions and identify potential issuesdegradation before release.users are affected.
Use Case 4: UserQuality ExperienceAssurance TroubleshootingTesting
WhenQA usersteams experienceuse connectivityautomated issues,tools to test application performance across different network conditions, submitting jitter and latency measurements to ensure applications canmeet automaticallyperformance generate and submit detailed diagnostic reports to help support teams quickly identify and resolve problems.standards.
Use Case 5: Network Infrastructure MonitoringTroubleshooting
ApplicationsNetwork deployedadministrators acrossdeploy multipletesting locationstools canthat submitcontinuously regularmonitor connection quality to specific destinations, helping identify intermittent connectivity reportsissues to help network administrators monitor infrastructureand performance and identify areas needing improvement.bottlenecks.
Best Practices
-
DataConsistentStructureTestingConsistencyIntervals:Maintain a consistent JSON structure within the data parameter across allSubmit test reports at regular intervals toenableestablishproperbaselineanalysisperformance metrics andtrendingidentify trends over time. -
IncludeMeaningfulTimestamps:NetworkAlways include accurate UTC timestamps in your test data to enable proper chronological analysis and correlation with network events
Appropriate Test Counts: When performing multiple test iterations, include the count parameter to provide context for the averaged or aggregated value.
Error Handling: Implement proper retry logic with exponential backoff for failed submissions, especiallyas importantnetwork forconditions network-relatedduring failurestesting might also affect API connectivity.
Data Validation: Validate test data locallyresults before submission to reduce 422 errors and ensure datarealistic qualityvalues (e.g., don't submit negative latency or impossibly high speeds).
BatchDestination ReportingDiversity: ConsiderTest batchingagainst multiple test results when appropriatedestinations to reduceget APIa calls,comprehensive butview ensureof individualnetwork timestampsperformance, areincluding preservedboth local and geographically distributed endpoints.
SensitiveUnit InformationConsistency: AvoidAlways includingspecify personallyunits identifiablefor informationyour (PII)measurements into testensure reports;proper focusdata on technical metricsinterpretation and anonymouscomparison deviceacross characteristics