Description Usage Arguments Value Author(s) Examples
uptimerobot.monitor.delete remove a monitor and all existing statistics of it.
| 1 | uptimerobot.monitor.delete(api.key, id)
 | 
| api.key | string with a valid key for connecting to Uptimerobot API. | 
| id | numeric or integer with the ID of the monitor to delete. | 
The function returns TRUE in case success. An error is thrown otherwise.
Gabriele Baldassarre
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run: 
 # Let's assume the api.key is available into the environment variable KEY
 api.key <- Sys.getenv("KEY", "")
 # Create a monitor and get its monitor.id
 monitor.id <- uptimerobot.monitor.new(api.key,
   friendly.name="Open Analytics",
   url="https://gabrielebaldassarre.com", type="http"
 )
 # Change the friendly name of the monitor
  if(uptimerobot.monitor.edit(api.key,
     monitor.id,
     friendly.name="Open Analytics - gabrielebaldassarre.com"
  ){
   message("Monitor has been successfully edited!")
 }
 # Delete the just-made monitor
 if(uptimerobot.monitor.delete(api.key, monitor.id){
   message("Monitor has been successfully deleted!")
 }
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.