NodePing.Results.uptime-exclamation-mark
You're seeing just the function
uptime-exclamation-mark
, go back to NodePing.Results module for more information.
Get uptime information for a check
Parameters
token
- NodePing API token that was provided with accountid
- Check id of the check you want to get uptime information aboutopts
- optional list of args for specifying the range of information to gather. Empty list for no optscustomerid
- optional ID to access a subaccount
Opts
interval
- "days" or "months". "months" is the defaultstart
- date/time for the start of the results. Timestamps should be milliseconds, or an RFC2822 or ISO 8601 dateend
- 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)