Send a notification via the slack notifier Args: new_analysis (dict): The new_analysis to send.
(self, new_analysis)
| 123 | |
| 124 | |
| 125 | def notify_slack(self, new_analysis): |
| 126 | """Send a notification via the slack notifier |
| 127 | |
| 128 | Args: |
| 129 | new_analysis (dict): The new_analysis to send. |
| 130 | """ |
| 131 | |
| 132 | if self.slack_configured: |
| 133 | message = self._indicator_message_templater( |
| 134 | new_analysis, |
| 135 | self.notifier_config['slack']['optional']['template'] |
| 136 | ) |
| 137 | if message.strip(): |
| 138 | self.slack_client.notify(message) |
| 139 | |
| 140 | |
| 141 | def notify_twilio(self, new_analysis): |
no test coverage detected