Learn R Programming

uptimeRobot (version 1.0.0)

uptimerobot.contact.delete: Delete an alert contact

Description

uptimerobot.contact.delete removes an alert contanct, unlinking from all the registered monitors.

Usage

uptimerobot.contact.delete(api.key, id)

Arguments

api.key
string with a valid key for connecting to Uptimerobot API.
id
numeric or integer with the ID of the contact to delete.

Value

The function returns TRUE in case success. An error is thrown otherwise.

Examples

Run this code
## Not run: 
#  # Let's assume the api.key is available into the environment variable KEY
#  api.key <- Sys.getenv("KEY", "")
# 
#  # Delete the contact with id=12345678
#  if(uptimerobot.contact.delete(api.key, 12345678){
#    message("Alert contact successfully deleted!")
#  }
# ## End(Not run)

Run the code above in your browser using DataLab