Device App Connection Log
The
deviceDeviceappAppconnectionConnectionlogLog APIprovidesenablesfunctionalityapplications to register detailed network connectioneventslogsbetweenfordevicesmonitoring andapplications.analytics purposes. This endpointiscaptures comprehensive network connectivity data including connection types, security protocols, location information, and performance metrics, making it essential fortrackingnetwork monitoring applications and connectivitypatterns,analysismonitoring device activity, and maintaining audit trails for security and compliance purposes.tools.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Device App Connection Log API allowsprovides youa centralized way to recordtrack and tracklog network connectionconnections events betweenfrom devices and applicationsapplications. within your system. This logging mechanism is crucial for:
This API is typicallydesigned usedfor by network monitoring tools, security applications, and device management systemsorganizations that need to monitor network usage patterns, analyze connectivity performance, and maintain comprehensivedetailed logsrecords of device connectivitynetwork events.activity.
Key loggedFeatures:
Common Use Cases:
Endpoints
POST /device_app_connection_log/
Description: Registers a new network connection log entry betweenwith detailed network information, performance metrics, and location data. This endpoint is typically called when a device andestablishes, anmaintains, application.or Thisterminates endpointa capturesnetwork connection events in real-time, allowing you to buildcreate a comprehensive audit trail of device-application interactions. Use this endpoint whenever a device establishes or terminates a connection with an application to maintain accurate connectivity records.trail.
Use Cases:
LogLoggingdeviceWiFiauthenticationconnection eventstowithapplicationssecurity and performance detailsRecordRecordingconnectionmobileattemptsnetwork connections including roaming status and cell information
Full URL Example:
https://gate.zequenze.com/api/v1/device_app_connection_log/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | string | body | Yes | JSON string containing the network connection log |
Request Body Schema:
cURL Example:
curl -X POST "https://gate.zequenze.com/api/v1/device_app_connection_log/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"device_id"network_name": "DEV-001-XR7H9",Office "application_id":WiFi "APP-MOBILE-001",
"connection_type": "established",
"timestamp": "2024-01-15T14:30:25Z",
"ip_address": "192.168.1.105",
"user_agent": "MobileApp/2.1.0 (iOS 17.0)",
"status": "success",
"duration": null,
"metadata": {
"location": "Building A - Floor 2"5GHz",
"network_type": "WiFi"wi",
"signal_strength"network_security": "wp2",
"frequency": 5.2,
"authentication": "psk",
"bssid": "aa:bb:cc:dd:ee:ff",
"latitude": "40.7128",
"longitude": "-74.0060",
"inbytes": 1048576,
"outbytes": 524288,
"link_speed": 150.0,
"quality_metric": "rssi",
"quality_value": -45
}45.0
}'
Example RequestResponse Body:(201 Created):
{
"device_id"network_name": "DEV-001-XR7H9",Office "application_id":WiFi "APP-MOBILE-001",
"connection_type": "established",
"timestamp": "2024-01-15T14:30:25Z",
"ip_address": "192.168.1.105",
"user_agent": "MobileApp/2.1.0 (iOS 17.0)",
"status": "success",
"duration": null,
"metadata": {
"location": "Building A - Floor 2"5GHz",
"network_type": "WiFi"wi",
"signal_strength"network_security": "wp2",
"network_mccmnc": null,
"frequency": 5.2,
"authentication": "psk",
"bssid": "aa:bb:cc:dd:ee:ff",
"cellid": null,
"roaming": null,
"latitude": "40.7128",
"longitude": "-74.0060",
"inbytes": 1048576,
"outbytes": 524288,
"link_speed": 150.0,
"quality_metric": "rssi",
"quality_value": -45,
"session_id": "sess_abc123xyz",
"protocol": "HTTPS"
}45.0
}
ExampleMobile Response:Network Example:
curl -X POST "https://gate.zequenze.com/api/v1/device_app_connection_log/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 12847,
"device_id"network_name": "DEV-001-XR7H9",Verizon "application_id": "APP-MOBILE-001",
"connection_type": "established",
"timestamp": "2024-01-15T14:30:25Z",
"ip_address": "192.168.1.105",
"user_agent": "MobileApp/2.1.0 (iOS 17.0)",
"status": "success",
"duration": null,
"created_at": "2024-01-15T14:30:26Z",
"metadata": {
"location": "Building A - Floor 2"LTE",
"network_type": "WiFi"mo",
"signal_strength": -45,
"session_id"network_security": "sess_abc123xyz"3gp",
"protocol"network_mccmnc": "HTTPS"310012",
"authentication": "3gp",
"cellid": "12345678",
"roaming": false,
"latitude": "37.7749",
"longitude": "-122.4194",
"inbytes": 2097152,
"outbytes": 1048576,
"quality_metric": "sinr",
"quality_value": 15.2
}
}'
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - Connection log successfully registered |
| 400 | Bad Request - Invalid data format or missing required fields |
| 401 | Unauthorized - Invalid or missing |
| 422 | Unprocessable Entity - |
Common Use Cases
Use Case 1: Real-timeWiFi SecurityConnection Monitoring
MonitorApplications devicemonitoring connectionsWiFi inconnectivity real-timecan tolog detect unauthorized access attempts or unusualeach connection patterns. Log every connection attemptevent with devicenetwork details,name, timestamps,security type, signal strength, and connectiondata outcomesusage. toThis feedhelps intoidentify securitynetwork monitoringperformance dashboards.issues and optimize WiFi deployments.
Use Case 2: ComplianceMobile AuditNetwork TrailAnalytics
MaintainMobile detaileddevice logsmanagement ofapplications allcan device-applicationtrack cellular connections forincluding regulatorycarrier complianceinformation, requirements.roaming Record connection events with timestamps, user context,status, and sessiondata detailsconsumption to supportanalyze auditmobile processesnetwork usage patterns and compliance reporting.costs.
Use Case 3: Location-Based Network Performance AnalyticsAnalysis
TrackIoT devices and mobile applications can combine network connection patternsdata andwith durationsGPS coordinates to analyze network performancecoverage, identify dead zones, and identifycorrelate bottlenecks.network Useperformance connectionwith logsgeographic to understand peak usage times, popular applications, and connection quality metrics.locations.
Use Case 4: TroubleshootingSecurity Connectivity IssuesAuditing
CreateSecurity detailedapplications can log network connections to detect unusual network access patterns, unauthorized network usage, or potential security threats by analyzing connection logs to assist with diagnosing connectivity problems. Include metadata such as signal strength, network type,types and errorauthentication codes to help technical teams quickly identify and resolve issues.methods.
Use Case 5: UsagePerformance AnalyticsTroubleshooting
Network diagnostic tools can capture detailed connection metrics including link speeds, signal quality, and Reportingdata
Generatetransfer reportsvolumes onto applicationhelp usagetroubleshoot patterns,connectivity device activity,issues and connection statistics. Use the logged data to understand user behavior, optimize resource allocation, and plan network capacity.performance.
Best Practices
- Data Accuracy: Ensure network type and security values use the specified codes (wi, mo, bl, et for types; opn, wep, wpa, wp2, 3gp for security) to maintain data consistency