ex_uptimerobot v0.4.0 ExUptimerobot.AlertContact
Interact with Alert Contact -related API methods.
Summary
Functions
Delete an existing alert contact by the ID of alert contact
Edit an existing alert contact with given parameters
Get all alert contacts, or a set of contacts as specified by params. Full documentation for all parameters can be found from https://uptimerobot.com/api
Add new alert contact with given parameters
Functions
delete_alert_contact(id)
delete_alert_contact(integer) :: tuple
delete_alert_contact(String.t) :: tuple
Delete an existing alert contact by the ID of alert contact
Example
iex> ExUptimerobot.AlertContact.delete_alert_contact(1337)
{:ok, response}
Edit an existing alert contact with given parameters
Required: id
Optional: friendly_name
, value
Example
iex> ExUptimerobot.AlertContact.edit_alert_contact([id: 1337, friendly_name: "Edited contact"])
{:ok, response}
Get all alert contacts, or a set of contacts as specified by params. Full documentation for all parameters can be found from https://uptimerobot.com/api.
Example
iex> ExUptimerobot.AlertContact.get_alert_contacts()
{:ok, results}