Class: Fluent::SlackClient::IncomingWebhook
- Defined in:
- lib/fluent/plugin/slack_client.rb
Overview
Slack client for Incoming Webhook api.slack.com/incoming-webhooks
Instance Attribute Summary
Attributes inherited from Base
#debug_dev, #endpoint, #https_proxy, #log
Instance Method Summary collapse
-
#initialize(endpoint, https_proxy = nil) ⇒ IncomingWebhook
constructor
A new instance of IncomingWebhook.
- #post_message(params = {}, opts = {}) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(endpoint, https_proxy = nil) ⇒ IncomingWebhook
Returns a new instance of IncomingWebhook.
134 135 136 |
# File 'lib/fluent/plugin/slack_client.rb', line 134 def initialize(endpoint, https_proxy = nil) super end |
Instance Method Details
#post_message(params = {}, opts = {}) ⇒ Object
138 139 140 141 |
# File 'lib/fluent/plugin/slack_client.rb', line 138 def (params = {}, opts = {}) log.info { "out_slack: post_message #{params}" } post(endpoint, params) end |