NodePing.Checks.get_checks-exclamation-mark

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

get_checks!(token, opts \\ [])

View Source

Get all checks present on your NodePing account or specified subaccount

Parameters

  • token - NodePing API token that is provided with account
  • 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 check's uptime will be added to the response

Examples

iex> token = System.fetch_env!("TOKEN")
iex> customerid = System.fetch_env!("CUSTOMERID")
iex> result = NodePing.Checks.get_checks!(token, [{:customerid, customerid}])