NodePing.Diagnostics.get

You're seeing just the function get, go back to NodePing.Diagnostics module for more information.
Link to this function

get(token, checkid, location, tool, opts \\ %{})

View Source

Get diagnostic information from a probe or agent

Parameters

  • token - NodePing API token that was provided with account
  • checkid - Check id of the check you want to get diagnostics on
  • location - The probe or AGENT you want to gather metrics from
  • tool - The type of diagnostic you would like to run

Tool options include:

  • mtr, ping, traceroute, dig, pageload, or screenshot

NOTE AGENTs do not support browserperf or screenshot

Opts

  • target - The URL, FQDN, or IP address you'd like to get diagnostics about
  • dnsserver - Used for the dig tool - the FQDN or IP address of the DNS server you'd like to query
  • dnstype - Used for the dig tool - the DNS record type for the query
  • count - Used for the following tools: mtr and ping

The opts are a map where the key is an atom. For example,

%{:target => "www.example.com", :count => 10}