Inventory Device Ipping
Endpoints Summary
GET
/inventory_device_ipping/{id}/
Swagger ↗
The Inventory Device IP Ping
endpointAPIallowsprovidesyoufunctionality to retrievenetwork connectivity status andping testresultsinformation forspecificnetwork devices in your inventory. Thisisendpointessentialallowsforyoumonitoringto monitor network connectivity and troubleshoot devicenetworkaccessibilityhealth,issuestroubleshootingacrossconnectivityyourissues, and maintaining network infrastructure visibility.infrastructure.
Base URL: https://control.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Inventory Device IP Ping API providescategory enables you to access ping test results and network diagnostics and connectivity monitoring capabilitiesdata for devices in your inventory management system. This endpointAPI is specificallyessential designed to helpfor network administratorsmonitoring, device health checks, and IT teams monitor the network status of managed devices by providing ping test results andtroubleshooting connectivity metrics.issues.
Key Capabilities:capabilities include:
RetrieveRetrieving ping test results for specificinventorydevicesMonitorMonitoring networkconnectivitydevicestatus and response timesaccessibilityAccessAccessing historicalpingconnectivity datafor network health analysisSupportSupporting network troubleshooting workflowsfor network connectivity issues
Common Integration Scenarios:
This endpoint worksis incommonly conjunctionused with your broader inventory management system, providing theby network layeradministrators, visibilitymonitoring neededsystems, and automated scripts that need to maintain reliableverify device connectivity acrossstatus. yourThe infrastructure.ping data helps identify network issues, validate device configurations, and ensure infrastructure reliability.
The API follows RESTful conventions and returns detailed ping information including response times, packet loss statistics, and connection status indicators.
Endpoints
GET /inventory_device_ipping/{id}/
Description: Retrieves detailed ping test results and network connectivity information for a specific inventory device. This endpoint returns comprehensivedetailed network diagnosticsconnectivity data including ping response times, packet loss statistics, and overall connection status for the specified device.
Use Cases:
CheckingMonitorthenetworkcurrentdevice health and connectivity status
Full URL Example:
https://control.zequenze.com/api/v1/inventory_device_ipping/1234/123/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| id | integer | path | Yes |
cURL Example:
curl -X GET "https://control.zequenze.com/api/v1/inventory_device_ipping/1234/123/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Example Response:
{
"id": 1234,123,
"device_id": 5678,456,
"device_name": "web-server-Core Switch 01",
"ip_address": "192.168.1.100"10",
"status": "online",
"last_ping_time": "2024-01-15T14:15T10:30:25Z"00Z",
"response_time_ms": 12.5,2.45,
"packet_loss_percent": 0.0,
"ping_count": 4,
"successful_pings": 4,
"average_response_time": 11.8,2.38,
"min_response_time": 10.2,2.12,
"max_response_time": 14.1,2.67,
"jitter_ms"is_reachable": 1.2,
"connectivity_status": "stable",true,
"last_successful_ping": "2024-01-15T14:15T10:30:25Z"00Z",
"last_failed_ping": null,
"consecutive_failures": 0,
"uptime_percentage": 99.95,
"monitoring_enabled": true,
"ping_interval_seconds": 300,
"timeout_threshold_ms": 5000,
"created_at": "2024-01-10T09:15:00Z",
"updated_at": "2024-01-15T14:30:25Z"95
}
Response Codes:
| Status | Description |
|---|---|
| 200 | Success - Returns the ping data for the specified device |
| 401 | Unauthorized - Invalid or missing API token |
| 404 |
Common Use Cases
Use Case 1: Network Health DashboardMonitoring
IntegrateMonitor this endpoint into monitoring dashboards to display real-timethe connectivity status forof critical network infrastructure devices.devices Retrieveby regularly checking their ping datastatistics. forThis multiplehelps identify devices tothat createmay comprehensivebe networkexperiencing health visualizations showing response times, uptime percentages, andintermittent connectivity trends.issues or degraded performance.
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 Network Issues
When users report connectivity problems, supportretrieve teamsping candata usefor thisaffected endpointdevices to quickly assessidentify whether the issue is related to network connectivity, high latency, or packet loss.
Use Case 3: Maintenance Planning
Before performing maintenance on network devices, check their current ping status ofto affectedensure devices,they revieware recent ping statistics,accessible and identifyfunctioning patternsproperly. thatThis mighthelps indicateavoid networkscheduling infrastructuremaintenance problems.during existing outages.
Use Case 4: Network Performance ReportingAnalysis
Generate periodic network performance reports by collectingAnalyze ping data over time, analyzing trends in response times and uptimepacket percentages,loss statistics over time to identify trends in network performance and identifyingplan devicesinfrastructure that may need network optimization or hardware replacement.improvements.
Use Case 5: InfrastructureAutomated Capacity PlanningAlerting
MonitorIntegrate networkping performancedata metricsinto acrossmonitoring your device inventorysystems to identifytrigger potentialalerts bottlenecks,when plandevices forbecome networkunreachable upgrades,or andwhen ensureresponse adequatetimes networkexceed capacityacceptable for business operations.thresholds.
Best Practices
-
EfficientRegularPolling:Monitoring:AvoidPollmakingdevice ping status at appropriate intervals based on your monitoring requirements, but avoid excessive requeststothatthiscouldendpoint.impactThenetworkping data is typically updated based on the configured ping interval (usually every 5 minutes), so polling more frequently than this interval provides no additional value.performance -
Error
Handling:Handling: Implement proper error handling for404casesresponses, aswhere devices may beremovedtemporarilyfrom inventoryunreachable orhave theirpingmonitoringrecordsdisabled.mayAlwaysnotcheck themonitoring_enabledfield to confirm active monitoring.exist -
PerformanceThresholdMonitoring:Management:UseEstablishthereasonableresponse_time_ms,thresholdspacket_loss_percent,for response times andpacketjitter_msfieldslosstopercentagesestablishbasedbaselineonperformanceyourmetricsnetwork requirements anddetect anomalies that might indicate network degradation.SLAs -
StatusHistoricalInterpretation:Tracking:Theconnectivity_statusfield provides a high-level summary (stable,degraded,unreachable), while individualStore pingmetricsdataofferoverdetailed diagnostics. Use both for comprehensive network health assessment.
Historical Analysis: Combine last_successful_ping and last_failed_ping timestamps with time to uptime_percentageunderstand device reliabilityidentify patterns and identifytrends recurringin connectivitynetwork issues.
Security Considerations:Considerations: ThisEnsure endpointAPI maytokens exposeare sensitiveproperly secured and rotated regularly, and limit access to ping data based on user permissions