NodePing.Notifications (NodePing Elixir v1.7.1) View Source
Get notifications for your checks
Link to this section Summary
Link to this section Functions
Get check notifications
Parameters
token- NodePing API token that is provided with accountopts-Mapof optional arguments for getting a subset of notifications.nilif no opts
Opts
id- Check id of the check for which you want to list notificationsspan- optional integer - number of hours of notifications to retrievelimit- optional integer - number of records to retrieve. Defaults to 300subaccounts- optional boolean - if set, notifications sent to subaccounts will also be included.
Examples
iex> token = System.fetch_env!("TOKEN")
iex> opts = %{:id => "201911191441YC6SJ-4S9OJ78G", :limit => 30}
iex> {:ok, result} = NodePing.Notifications.get(token, opts)
Get check notifications
Parameters
token- NodePing API token that is provided with accountopts-Mapof optional arguments for getting a subset of notifications.nilif no opts
Opts
id- Check id of the check for which you want to list notificationsspan- optional integer - number of hours of notifications to retrievelimit- optional integer - number of records to retrieve. Defaults to 300subaccounts- optional boolean - if set, notifications sent to subaccounts will also be included.
Examples
iex> token = System.fetch_env!("TOKEN")
iex> opts = %{:id => "201911191441YC6SJ-4S9OJ78G", :limit => 30}
iex> result = NodePing.Notifications.get!(token, opts)