uptimerobot.monitor.reset {uptimeRobot} | R Documentation |
Reset a monitor
Description
uptimerobot.monitor.reset
remove all the statistics and logs associated to a monitor ID.
Usage
uptimerobot.monitor.reset(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 monitor to delete. |
Value
The function returns TRUE
in case success. An error is thrown otherwise.
Author(s)
Gabriele Baldassarre
Examples
## Not run:
# Let's assume the api.key is available into the environment variable KEY
api.key <- Sys.getenv("KEY", "")
# Get a list of all available monitors, and take the first id
monitors.id <- uptimerobot.monitors(api.key, fields="id")[1,1]
# Reset the stats for that monitor
uptimerobot.monitor.reset(api.key, monitor.id)
## End(Not run)
[Package uptimeRobot version 1.0.0 Index]