Inventory Device Ipping
The
inventoryInventorydeviceDevice IPping APIPing endpointprovidesallowsfunctionalityyou to retrieveIPnetwork connectivity status and pinginformationtest results for specific devices in your inventory. Thisendpointisallowsessentialyoufortomonitoringmonitordevice network health, troubleshooting connectivitystatusissues, andtrack ping metrics for managed devices, helping withmaintaining networkdiagnosticsinfrastructureand device health monitoring.visibility.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The inventoryInventory deviceDevice IP pingPing API provides network diagnostics and connectivity monitoring capabilities for devices in your inventory management system. This endpoint is specifically designed forto help network administrators and IT teams whomonitor needthe tonetwork monitorstatus of managed devices by providing ping test results and trackconnectivity themetrics.
Key Capabilities:
Common useIntegration cases include:Scenarios:
MonitoringNetworknetworkmonitoring dashboards that display device connectivity status
This endpoint works asin partconjunction ofwith theyour broader inventory management system, allowingproviding youthe network layer visibility needed to correlatemaintain reliable device informationconnectivity withacross networkyour performance metrics. The ping data can be used to identify network bottlenecks, plan maintenance windows, and ensure optimal device connectivity.infrastructure.
Endpoints
GET /inventory_device_ipping/{id}/
Description: Retrieves detailed IPping pingtest results and network connectivity information for a specific deviceinventory in your inventory.device. This endpoint returns comprehensive connectivitynetwork metricsdiagnostics including ping response times, packet loss statistics, success rates, and historicalconnection ping datastatus for the specified device.
Use Cases:
MonitorCheckingreal-timethe current network connectivityforstatus of a criticalinfrastructureserverdevicesor network deviceTroubleshootRetrieving ping statistics for network performance analysis and reporting
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_ipping/12345/1234/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | integer | path | Yes | Unique identifier of the inventory device |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_ipping/12345/1234/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"id": 12345,1234,
"device_id": 67890,5678,
"device_name": "Server-NYC-001"web-server-01",
"ip_address": "192.168.1.100",
"ping_status"status": "active"online",
"last_ping_time": "2024-01-15T14:32:15Z"30:25Z",
"response_time_ms": 12.5,
"packet_loss_percentage"packet_loss_percent": 0.0,
"success_rate_24h"ping_count": 99.4,
"successful_pings": 4,
"average_response_time": 11.8,
"total_pings_24h"min_response_time": 1440,
"failed_pings_24h": 3,
"average_response_time_24h": 11.10.2,
"min_response_time_24h"max_response_time": 8.14.1,
"max_response_time_24h"jitter_ms": 45.7,1.2,
"ping_enabled"connectivity_status": true,
"ping_interval_seconds": 60,
"timeout_seconds": 5,stable",
"last_successful_ping": "2024-01-15T14:32:15Z"30:25Z",
"last_failed_ping": null,
"2024-01-15T08:15:30Z",uptime_percentage": 99.95,
"monitoring_enabled": true,
"ping_interval_seconds": 300,
"timeout_threshold_ms": 5000,
"created_at": "2024-01-10T09:00:15:00Z",
"updated_at": "2024-01-15T14:32:15Z",
"historical_data": [
{
"timestamp": "2024-01-15T14:30:00Z",
"response_time_ms": 11.8,
"status": "success"
},
{
"timestamp": "2024-01-15T14:29:00Z",
"response_time_ms": 12.1,
"status": "success"
}
]25Z"
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns the ping |
| 401 | Unauthorized - Invalid or missing |
Common Use Cases
Use Case 1: Network Health Dashboard
Integrate this endpoint into monitoring dashboards to display real-time connectivity status for critical infrastructure devices. Retrieve ping metricsdata for multiple devices to buildcreate a real-timecomprehensive network health monitoringvisualizations dashboard.showing Useresponse thistimes, endpointuptime topercentages, gatherand connectivity status and response times for all critical infrastructure devices.trends.
Use Case 2: Automated Alert Systems
Use this endpoint in monitoring scripts that check device connectivity status and trigger alerts when devices become unreachable or experience degraded network performance. The packet loss and response time data can help determine the severity of network issues.
Use Case 3: Troubleshooting ConnectivityNetwork Issues
When users report connectivity problems, fetchsupport detailedteams can use this endpoint to quickly assess the network status of affected devices, review recent ping historystatistics, for the affected device toand identify patterns, intermittent failures, or degraded performancepatterns that might indicate network issues.
Use Case 3: Performance Baseline Establishment
Collect historical ping data to establish performance baselines for network segments, helping to identify when response times deviate from normal patterns and require investigation.problems.
Use Case 4: MaintenanceNetwork WindowPerformance Reporting
Generate periodic network performance reports by collecting ping data over time, analyzing trends in response times and uptime percentages, and identifying devices that may need network optimization or hardware replacement.
Use Case 5: Infrastructure Capacity Planning
ReviewMonitor pingnetwork successperformance ratesmetrics andacross failureyour patternsdevice inventory to identify optimalpotential maintenancebottlenecks, windowsplan whenfor devicesnetwork experienceupgrades, theand leastensure connectivityadequate issuesnetwork orcapacity lowestfor usagebusiness periods.operations.
Best Practices
-
PollingEfficientFrequencyPolling::Avoid making excessiveAPIrequestscallstobythisimplementingendpoint.appropriateThecachingpingstrategies.dataConsideris typically updated based on the configured ping intervalconfigured(usuallyforeverydevices5whenminutes),determiningsohowpolling more frequentlytothanfetchthisupdatedintervaldata.provides no additional value. -
Error
HandlingHandling::Implementrobustproper error handling for 404 responses, as devices may betemporarilyremovedunavailablefrom inventory or have their ping monitoringmightdisabled.beAlwaysdisabledcheckforthecertainmonitoring_enableddevices.field to confirm active monitoring. -
DataPerformanceInterpretationMonitoring::Use the24-hourresponse_time_ms,statisticspacket_loss_percent,(success_rate_24h,andaverage_response_time_24h)jitter_msforfieldstrendtoanalysisestablishratherbaselinethanperformancerelyingmetricssolelyandondetecttheanomaliesmostthatrecentmightpingindicateresult,networkwhich may not be representative.degradation. -
MonitoringStatusThresholdsInterpretation::EstablishTheappropriateconnectivity_statusthresholdsfield provides a high-level summary (stable,degraded,unreachable), while individual ping metrics offer detailed diagnostics. Use both forresponse times and success rates based on yourcomprehensive networkinfrastructurehealthand business requirements rather than using fixed values.assessment. -
Historical
DataAnalysis:UsageCombinelast_successful_pingandlast_failed_pingtimestamps withuptime_percentageto understand device reliability patterns and identify recurring connectivity issues.
Security Considerations:: LeverageThis theendpoint historical_datamay arrayexpose sensitive network topology information. Ensure proper access controls are in place and only authorized personnel can access network connectivity data for trendcritical analysisinfrastructure and pattern recognition, but be aware that the amount of historical data returned may be limited to prevent large response sizes.devices.