File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/uptime.cpython-310.pyc
o
�N�gl � @ s d Z dd� Zdd� ZdS )a�
Monitor Web Server with Uptime
==============================
`Uptime <https://github.com/fzaninotto/uptime>`_ is an open source
remote monitoring application using Node.js, MongoDB, and Twitter
Bootstrap.
.. warning::
This state module is beta. It might be changed later to include
more or less automation.
.. note::
This state module requires a pillar to specify the location of
your uptime install
.. code-block:: yaml
uptime:
application_url: "http://uptime-url.example.org"
Example:
.. code-block:: yaml
url:
uptime.monitored
url/sitemap.xml:
uptime.monitored:
- polling: 600 # every hour
c C s dt v rdS dS )z3
Only load if the uptime module is present
zuptime.checks_listT)Fz!uptime module could not be loaded)�__salt__� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/uptime.py�__virtual__% s r c K s� | i ddd�}t d | d�r d|d<