Documentation Index
Fetch the curated documentation index at: https://grafana_com_website/llms.txt
Fetch the complete documentation index at: https://grafana_com_website/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: /docs/k6/latest/javascript-api/k6-x-icmp/ping-detail.md (append .md) or send Accept: text/markdown to /docs/k6/latest/javascript-api/k6-x-icmp/ping-detail/. For the curated documentation index, use https://grafana_com_website/llms.txt. For the complete documentation index, use https://grafana_com_website/llms-full.txt.
PingDetail
Data you receive as a parameter in the ping callback.
Properties
| Property | Type | Description |
|---|---|---|
| alive | boolean | Indicates whether the target is reachable (if an echo reply was received). |
| target | string | Hostname or IP address that was pinged. |
| target_ip | string | Target IP address that was pinged. |
| target_ip_version | IP | Target IP version that was used for the ping request. Valid values are "ip4" and "ip6". |
| sent_at | number | Timestamp when the request was sent. Value is in UTC milliseconds since the Unix epoch. |
| received_at | number | Timestamp when the response was received. Value is in UTC milliseconds since the Unix epoch. |
| ttl | number | Time to live from the echo reply, if a response was received. |
| id | number | Identifier for the ICMP session from the echo reply, if a response was received. |
| seq | number | Sequence number for the ICMP echo request from the echo reply, if a response was received. |
| size | number | Size of the ICMP echo reply, if a response was received. |
| options | PingOptions | Ping options used for the request. |
PingCallback
Callback function for ping results. This function is called for every echo packet sent. If the deadline is exceeded, it is not called for the remaining packets. If the echo response has been received, the error value will be null, otherwise it contains the error.
Signature
(err, data) => voidParameters
| Parameter | Type | Description |
|---|---|---|
| err | Error | null | Error object if an error occurred, otherwise null. |
| data | PingDetail | Data about the ping attempt, including timing and echo details. |
Was this page helpful?
Related resources from Grafana Labs

