server.workflow_reaper.notifiers ================================ .. py:module:: server.workflow_reaper.notifiers .. autoapi-nested-parse:: Places to notify upon certain events (ex. slack to notify of unhealthy workflow). Attributes ---------- .. autoapisummary:: server.workflow_reaper.notifiers.logger Classes ------- .. autoapisummary:: server.workflow_reaper.notifiers.SlackNotifier Module Contents --------------- .. py:data:: logger .. py:class:: SlackNotifier(api_url: str = '', token: str = '', channel_default: str = '') Bases: :py:obj:`object` Send notifications via slack. Container for connection with Slack. :param api_url: url to Slack. :type api_url: str :param token: token gotten from your app in api.slack.com. :type token: str :param channel_default: name of channel to which you want to post. :type channel_default: str .. py:attribute:: api_url :value: '' .. py:attribute:: channel_default :value: '' .. py:method:: send(msg: str, channel: Optional[str] = None) -> None Send message to Slack using requests.post.