Description Usage Arguments Details Value Author(s) See Also Examples
uptimerobot.contact.new
creates a new alert contact with the given properties.
1 | uptimerobot.contact.new(api.key, type, value, friendly.name)
|
api.key |
string with a valid key for connecting to Uptimerobot API. |
type |
string or numeric with the type of the contact. You can use both the value (string) or the index (numeric) here. |
value |
string with the value of the contact (ie. the email address). |
friendly.name |
string the friendly (screen) name of the contact. |
The alert contacts are whom to be notified when the monitor goes up/down.
The index lookup keys and values are available on the Uptimerobot API page on https://uptimerobot.com/api
The function returns the ID of the newly created contact in case success. An error is thrown otherwise.
Gabriele Baldassarre
uptimerobot.contacts
, uptimerobot.contact.delete
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Let's assume the api.key is available into the environment variable KEY
api.key <- Sys.getenv("KEY", "")
# Create a new contact and get the ID
contact.new <- uptimerobot.contact.new(api.key, type = "email", value = "foo@bar.com", "John Doe")
# Get informations about this new contact
contact.detail <- uptimerobot.contacts(api.key, contacts = contact.new)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.