Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Latest commit

 

History

History
57 lines (35 loc) · 1.27 KB

Slack.md

File metadata and controls

57 lines (35 loc) · 1.27 KB

Slack

Slack sink connector

Description

Used to send data to Slack Channel. Both support streaming and batch mode.

For example, if the data from upstream is [age: 12, name: huan], the content send to socket server is the following: {"name":"huan","age":17}

Key features

Options

name type required default value
webhooks_url String Yes -
oauth_token String Yes -
slack_channel String Yes -
common-options no -

webhooks_url [string]

Slack webhook url

oauth_token [string]

Slack oauth token used for the actual authentication

slack_channel [string]

slack channel for data write

common options

Sink plugin common parameters, please refer to Sink Common Options for details

Example

sink {
 SlackSink {
  webhooks_url = "https://hooks.slack.com/services/xxxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxxxxxxx"
  oauth_token = "xoxp-xxxxxxxxxx-xxxxxxxx-xxxxxxxxx-xxxxxxxxxxx"
  slack_channel = "channel name"
 }
}

Changelog

new version

  • Add Slack Sink Connector