From 5526b08763dd0ff10ad493015d0fa5df4d1966e4 Mon Sep 17 00:00:00 2001 From: Ricardo Nunes Date: Wed, 10 Jun 2020 13:05:31 +0100 Subject: [PATCH] Updated to include ping time in output --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 62c11c3..a20c717 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ This example should output an object like this: { domain: 'github.com', ip: '192.30.253.112', ping: true, + ping_time: 53.480, online: true, statusCode: 200, success: true } @@ -72,6 +73,7 @@ Where: - `domain` is the domain you requested - `ip` is the IP address the domain should be pointing to, as defined in the DNS server by an A record - `ping` is true if the server is responding to ping requests, false otherwise (false does not mean it's down, ICMP could be blocked on the server's firewall) + - `ping_time` is the average time in ms of the ping requests - `online` is true if the server is responding to HTTP requests for the chosen domain, with status code = 200, false otherwise - `statusCode` is the actual status code replied by the server in the HTTP request (200, 404, 503, etc) - `success` is true if the entire process executed correctly, false otherwise (check Errors below)