salt.modules.uptime
Wrapper around uptime API
-
Check if a given URL is in being monitored by uptime
CLI Example:
salt '*' uptime.check_exists http://example.org
salt.modules.uptime.check_exists(name)
-
List URL checked by uptime
CLI Example:
salt '*' uptime.checks_list
salt.modules.uptime.checks_list()
-
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.create(name, **params)
-
Delete a check on a given URL
CLI Example:
salt '*' uptime.delete http://example.org
salt.modules.uptime.delete(name)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.uptime.html