File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/serverdensity_device.cpython-310.pyc
Back
o ;j� � @ s6 d Z ddlZddlZe�e�Zdd� Z d dd�ZdS ) a Monitor Server with Server Density ================================== .. versionadded:: 2014.7.0 `Server Density <https://www.serverdensity.com/>`_ Is a hosted monitoring service. .. warning:: This state module is beta. It might be changed later to include more or less automation. .. note:: This state module requires a pillar for authentication with Server Density To install a v1 agent: .. code-block:: yaml serverdensity: api_token: "b97da80a41c4f61bff05975ee51eb1aa" account_url: "https://your-account.serverdensity.io" To install a v2 agent: .. code-block:: yaml serverdensity: api_token: "b97da80a41c4f61bff05975ee51eb1aa" account_name: "your-account" .. note:: Although Server Density allows duplicate device names in its database, this module will raise an exception if you try monitoring devices with the same name. Example: .. code-block:: yaml 'server_name': serverdensity_device.monitored � Nc C s t d � } t d � }i }zm|d |d<