Source code for pypuppetdb.api.status

import logging

from pypuppetdb.api.base import BaseAPI

log = logging.getLogger(__name__)


[docs]class StatusAPI(BaseAPI): """This class provides methods that interact with the `status/*` PuppetDB API endpoints. """
[docs] def status(self): """Get PuppetDB server status. :returns: A dict with the PuppetDB status information :rtype: :obj:`dict` """ return self._query("status")