salt.modules.uptime

Wrapper around uptime API

salt.modules.uptime.check_exists(name)

Check if a given URL is in being monitored by uptime

CLI Example:

salt '*' uptime.check_exists http://example.org

salt.modules.uptime.checks_list()

List URL checked by uptime

CLI Example:

salt '*' uptime.checks_list

salt.modules.uptime.create(name, **params)

Create a check on a given URL.

Additional parameters can be used and are passed to API (for example interval, maxTime, etc). See the documentation https://github.com/fzaninotto/uptime for a full list of the parameters.

CLI Example:

salt '*' uptime.create http://example.org

salt.modules.uptime.delete(name)

Delete a check on a given URL

CLI Example:

salt '*' uptime.delete http://example.org