-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve ping output parsing for IP targets
- Loading branch information
1 parent
78b1ec7
commit f6c97da
Showing
6 changed files
with
115 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"testId": "test", | ||
"measurementId": "measurement", | ||
"result": { | ||
"status": "finished", | ||
"rawOutput": "PING 2606:4700:4700::1111(2606:4700:4700::1111) 56 data bytes\n64 bytes from 2606:4700:4700::1111: icmp_seq=1 ttl=57 time=1.47 ms\n64 bytes from 2606:4700:4700::1111: icmp_seq=2 ttl=57 time=1.14 ms\n64 bytes from 2606:4700:4700::1111: icmp_seq=3 ttl=57 time=1.07 ms\n\n--- google.com ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss, time 1003ms\nrtt min/avg/max/mdev = 1.072/1.224/1.466/0.172 ms\n", | ||
"resolvedAddress": "2606:4700:4700::1111", | ||
"resolvedHostname": "2606:4700:4700::1111", | ||
"timings": [ | ||
{ | ||
"ttl": 57, | ||
"rtt": 1.47 | ||
}, | ||
{ | ||
"ttl": 57, | ||
"rtt": 1.14 | ||
}, | ||
{ | ||
"ttl": 57, | ||
"rtt": 1.07 | ||
} | ||
], | ||
"stats": { | ||
"min": 1.072, | ||
"max": 1.466, | ||
"avg": 1.224, | ||
"total": 3, | ||
"loss": 0, | ||
"rcv": 3, | ||
"drop": 0 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PING 2606:4700:4700::1111(2606:4700:4700::1111) 56 data bytes | ||
64 bytes from 2606:4700:4700::1111: icmp_seq=1 ttl=57 time=1.47 ms | ||
64 bytes from 2606:4700:4700::1111: icmp_seq=2 ttl=57 time=1.14 ms | ||
64 bytes from 2606:4700:4700::1111: icmp_seq=3 ttl=57 time=1.07 ms | ||
|
||
--- google.com ping statistics --- | ||
3 packets transmitted, 3 received, 0% packet loss, time 1003ms | ||
rtt min/avg/max/mdev = 1.072/1.224/1.466/0.172 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"testId": "test", | ||
"measurementId": "measurement", | ||
"result": { | ||
"status": "finished", | ||
"resolvedAddress": "1.1.1.1", | ||
"resolvedHostname": "1.1.1.1", | ||
"stats": { | ||
"min": 41.666, | ||
"max": 41.706, | ||
"avg": 41.689, | ||
"total": 3, | ||
"loss": 0, | ||
"rcv": 3, | ||
"drop": 0 | ||
}, | ||
"timings": [ | ||
{ | ||
"ttl": 58, | ||
"rtt": 41.7 | ||
}, | ||
{ | ||
"ttl": 58, | ||
"rtt": 41.7 | ||
}, | ||
{ | ||
"ttl": 58, | ||
"rtt": 41.7 | ||
} | ||
], | ||
"rawOutput": "PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.\n64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=41.7 ms\n64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=41.7 ms\n64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=41.7 ms\n\n--- 1.1.1.1 ping statistics ---\n3 packets transmitted, 3 received, 0% packet loss, time 1003ms\nrtt min/avg/max/mdev = 41.666/41.689/41.706/0.017 ms\n" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. | ||
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=41.7 ms | ||
64 bytes from 1.1.1.1: icmp_seq=2 ttl=58 time=41.7 ms | ||
64 bytes from 1.1.1.1: icmp_seq=3 ttl=58 time=41.7 ms | ||
|
||
--- 1.1.1.1 ping statistics --- | ||
3 packets transmitted, 3 received, 0% packet loss, time 1003ms | ||
rtt min/avg/max/mdev = 41.666/41.689/41.706/0.017 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters