Skip to main content

Inventory Device Ipping

The inventory device IP ping API endpoint provides functionality to retrieve IP ping information for devices in your inventory. This endpoint allows you to monitor network connectivity status and track ping metrics for managed devices, helping with network diagnostics and device health monitoring.

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 is designed for network administrators and IT teams who need to monitor and track the network connectivity status of devices in their managed inventory. This endpoint provides detailed ping information including response times, packet loss statistics, and connectivity status for specific devices.

Common use cases include:

  • Monitoring network health across your device inventory
  • Troubleshooting connectivity issues for specific devices
  • Generating network performance reports
  • Setting up automated network monitoring workflows
  • Tracking historical ping performance data

This endpoint works as part of the broader inventory management system, allowing you to correlate device information with network performance metrics. The ping data can be used to identify network bottlenecks, plan maintenance windows, and ensure optimal device connectivity.


Endpoints

GET /inventory_device_ipping/{id}/

Description: Retrieves detailed IP ping information for a specific device in your inventory. This endpoint returns comprehensive connectivity metrics including ping response times, packet loss statistics, success rates, and historical ping data for the specified device.

Use Cases:

  • Monitor real-time network connectivity for critical infrastructure devices
  • Troubleshoot connectivity issues by reviewing ping history and statistics
  • Generate network performance reports for specific devices
  • Validate network changes and improvements over time

Full URL Example:

https://control.zequenze.com/api/v1/inventory_device_ipping/12345/

Parameters:

Parameter Type In Required Description
id integer path Yes Unique identifier of the device for which to retrieve ping information

cURL Example:

curl -X GET "https://control.zequenze.com/api/v1/inventory_device_ipping/12345/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"

Example Response:

{
  "id": 12345,
  "device_id": 67890,
  "device_name": "Server-NYC-001",
  "ip_address": "192.168.1.100",
  "ping_status": "active",
  "last_ping_time": "2024-01-15T14:32:15Z",
  "response_time_ms": 12.5,
  "packet_loss_percentage": 0.0,
  "success_rate_24h": 99.8,
  "total_pings_24h": 1440,
  "failed_pings_24h": 3,
  "average_response_time_24h": 11.2,
  "min_response_time_24h": 8.1,
  "max_response_time_24h": 45.7,
  "ping_enabled": true,
  "ping_interval_seconds": 60,
  "timeout_seconds": 5,
  "last_successful_ping": "2024-01-15T14:32:15Z",
  "last_failed_ping": "2024-01-15T08:15:30Z",
  "created_at": "2024-01-10T09:00: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"
    }
  ]
}

Response Codes:

Status Description
200 Success - Returns ping information for the specified device
401 Unauthorized - Invalid or missing authentication token
404 Not Found - Device with specified ID does not exist or ping monitoring not configured
403 Forbidden - Insufficient permissions to access device ping information

Common Use Cases

Use Case 1: Network Health Dashboard

Retrieve ping metrics for multiple devices to build a real-time network health monitoring dashboard. Use this endpoint to gather connectivity status and response times for all critical infrastructure devices.

Use Case 2: Troubleshooting Connectivity Issues

When users report connectivity problems, fetch detailed ping history for the affected device to identify patterns, intermittent failures, or degraded performance 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.

Use Case 4: Maintenance Window Planning

Review ping success rates and failure patterns to identify optimal maintenance windows when devices experience the least connectivity issues or lowest usage periods.


Best Practices

  • Polling Frequency: Avoid excessive API calls by implementing appropriate caching strategies. Consider the ping interval configured for devices when determining how frequently to fetch updated data.

  • Error Handling: Implement robust error handling for 404 responses, as devices may be temporarily unavailable or ping monitoring might be disabled for certain devices.

  • Data Interpretation: Use the 24-hour statistics (success_rate_24h, average_response_time_24h) for trend analysis rather than relying solely on the most recent ping result, which may not be representative.

  • Monitoring Thresholds: Establish appropriate thresholds for response times and success rates based on your network infrastructure and business requirements rather than using fixed values.

  • Historical Data Usage: Leverage the historical_data array for trend analysis and pattern recognition, but be aware that the amount of historical data returned may be limited to prevent large response sizes.