Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Server → Ping Server

AI-generated

Overview

This node performs a ping operation to a server, typically used to check the server's availability and responsiveness. It is useful in scenarios where you want to verify that a server is online and reachable before proceeding with further actions or workflows.

Use Case Examples

  1. Checking if a server is online before attempting to fetch data.
  2. Monitoring server uptime by periodically pinging the server.

Output

JSON

  • status - The status of the ping operation, indicating if the server is reachable.
  • responseTime - The time taken to receive a response from the server, useful for measuring latency.

Dependencies

  • Requires an API key credential or authentication token to access the server if needed.

Troubleshooting

  • If the node returns a timeout error, check the server URL and network connectivity.
  • Authentication errors may occur if the API key or token is missing or invalid; ensure credentials are correctly configured.

Discussion