NodePing.Results.uptime-exclamation-mark

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

uptime!(token, id, opts, customerid \\ nil)

View Source

Get uptime information for a check

Parameters

  • token - NodePing API token that was provided with account
  • id - Check id of the check you want to get uptime information about
  • opts - optional list of args for specifying the range of information to gather. Empty list for no opts
  • customerid - optional ID to access a subaccount

Opts

  • interval - "days" or "months". "months" is the default
  • start - date/time for the start of the results. Timestamps should be milliseconds, or an RFC2822 or ISO 8601 date
  • end - date/time for the end of the results.

Examples

iex> opts = [{:interval, "days"}, {:start, "2020-02"}, {:end, "2020-05"}]
iex> token = System.fetch_env!("TOKEN")
iex> checkid = "201205050153W2Q4C-0J2HSIRF"
iex> results = NodePing.Results.get_results(token, checkid, opts)