def __init__(self, rule):
    super(SlackAlerter, self).__init__(rule)
    self.slack_webhook_url = self.rule['slack_webhook_url']
    if isinstance(self.slack_webhook_url, str):
        self.slack_webhook_url = [self.slack_webhook_url]
    self.slack_proxy = self.rule.get('slack_proxy', None)
    self.slack_username_override = self.rule.get('slack_username_override', 'elastalert')
    self.slack_channel_override = self.rule.get('slack_channel_override', '')
    if isinstance(self.slack_channel_override, str):
        self.slack_channel_override = [self.slack_channel_override]
    self.slack_title_link = self.rule.get('slack_title_link', '')
    self.slack_title = self.rule.get('slack_title', '')
    self.slack_emoji_override = self.rule.get('slack_emoji_override', ':ghost:')
    self.slack_icon_url_override = self.rule.get('slack_icon_url_override', '')
    self.slack_msg_color = self.rule.get('slack_msg_color', 'danger')
    self.slack_parse_override = self.rule.get('slack_parse_override', 'none')
    self.slack_text_string = self.rule.get('slack_text_string', '')
    self.slack_alert_fields = self.rule.get('slack_alert_fields', '')
    self.slack_ignore_ssl_errors = self.rule.get('slack_ignore_ssl_errors', False)
    self.slack_timeout = self.rule.get('slack_timeout', 10)
    self.slack_ca_certs = self.rule.get('slack_ca_certs')
    self.slack_attach_kibana_discover_url = self.rule.get('slack_attach_kibana_discover_url', False)
    self.slack_kibana_discover_color = self.rule.get('slack_kibana_discover_color', '#ec4b98')
    self.slack_kibana_discover_title = self.rule.get('slack_kibana_discover_title', 'Discover in Kibana')
def __init__(self, rule):
    super(SlackAlerter, self).__init__(rule)
    self.slack_webhook_url = self.rule['slack_webhook_url']
    if isinstance(self.slack_webhook_url, str):
        self.slack_webhook_url = [self.slack_webhook_url]
    self.slack_proxy = self.rule.get('slack_proxy', None)
    self.slack_username_override = self.rule.get('slack_username_override', 'elastalert')
    self.slack_channel_override = self.rule.get('slack_channel_override', )
    if isinstance(self.slack_channel_override, str):
        self.slack_channel_override = [self.slack_channel_override]
    self.slack_title_link = self.rule.get('slack_title_link', )
    self.slack_title = self.rule.get('slack_title', )
    self.slack_emoji_override = self.rule.get('slack_emoji_override', ':ghost:')
    self.slack_icon_url_override = self.rule.get('slack_icon_url_override', )
    self.slack_msg_color = self.rule.get('slack_msg_color', 'danger')
    self.slack_parse_override = self.rule.get('slack_parse_override', 'none')
    self.slack_text_string = self.rule.get('slack_text_string', )
    self.slack_alert_fields = self.rule.get('slack_alert_fields', )
    self.slack_ignore_ssl_errors = self.rule.get('slack_ignore_ssl_errors', False)
    self.slack_timeout = self.rule.get('slack_timeout', 10)
    self.slack_ca_certs = self.rule.get('slack_ca_certs')
    self.slack_attach_kibana_discover_url = self.rule.get('slack_attach_kibana_discover_url', False)
    self.slack_kibana_discover_color = self.rule.get('slack_kibana_discover_color', '#ec4b98')
    self.slack_kibana_discover_title = self.rule.get('slack_kibana_discover_title', 'Discover in Kibana')