NodePing.Checks.get_many

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

get_many(token, checkids, opts \\ [])

View Source

Get many checks at once on your NodePing account or specified subaccount

Parameters

  • token - NodePing API token that is provided with account
  • checkids - list of checkids that will be queried
  • opts - Optional list of tuples to specify results

Opts - list of tuples

  • customerid - optional ID to access a subaccount
  • uptime - boolean - If this parameter is present, the checks uptimes wilwl be added to the response

Examples

iex> token = System.fetch_env!("TOKEN")
iex> checkids = ["201205050153W2Q4C-0J2HSIRF", "201205050153W2Q4C-4RZT8MLN"]
iex> {:ok, result} = NodePing.Checks.get_many(token, checkids, [{:uptime, true}])