NodePing.Information.get_probe-exclamation-mark

You're seeing just the function get_probe-exclamation-mark, go back to NodePing.Information module for more information.

Get information about all active NodePing probes The returned value is a JSON object that is converted to a map of maps

Parameters

  • token - NodePing API token that is provided with account

Examples

iex> token = Application.fetch_env!(:nodeping, :token)
iex> result = NodePing.Information.get_probe(token)
iex> is_map(result)
true
Link to this function

get_probe!(token, probe)

View Source

Get information about all active NodePing probes The returned value is a JSON object that is converted to a map of maps

Parameters

  • token - NodePing API token that is provided with account
  • probe - The abbreviation for the region/location of probe. For example, nam for the NAM region or wa for the Washington server

Examples

iex> token = System.fetch_env!("TOKEN")
iex> NodePing.Information.get_probe!(token, :de)
%{
  "country" => "DE",
  "ipv4" => "54.36.110.96",
  "ipv6" => "2001:41d0:700:1360::10",
  "location" => "de",
  "locationname" => "Frankfurt, Germany",
  "region" => "eur",
  "regionname" => "Europe"
}