NodePing.Results.get_events
You're seeing just the function
get_events
, go back to NodePing.Results module for more information.
Retrieves information about "events" for checks. Events include down events and disabled checks.
https://nodeping.com/docs-api-results.html#events
Parameters
token
- NodePing API token that was provided with accountid
- Check id of the check you want to get events foropts
- Optional list of tuples to specify returned results
Opts
start
- Start date to retrieve events from a specific range of time.end
- End date to retrieve events from a specific range of time.limit
- limit for the number of records to retrieve.
Examples
iex> token = System.fetch_env!("TOKEN")
iex> checkid = "201205050153W2Q4C-0J2HSIRF"
iex> start = "2020-06"
iex> end = "2020-07"
iex> limit = 10
iex> opts = [{:start, start}, {:end, end}, {:limit, limit}]
iex> {:ok, results} = NodePing.Results.get_events(token, checkid, opts)