SlackRecordSink

Description:

Format and send Records to a configured Channel using the Slack Post Message API. The service requires a Slack App with a Bot User configured for access to a Slack workspace. The Bot User OAuth Bearer Token is required for posting messages to Slack.

Tags:

slack, record, sink

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.

Display NameAPI NameDefault ValueAllowable ValuesDescription
API URLapi-urlhttps://slack.com/apiSlack Web API URL for posting text messages to channels. It only needs to be changed if Slack changes its API URL.
Access Tokenaccess-tokenBot OAuth Token used for authenticating and authorizing the Slack request sent by NiFi.
Sensitive Property: true
Channel IDchannel-idSlack channel, private group, or IM channel to send the message to. Use Channel ID instead of the name.
Input Character Setinput-character-setUTF-8Specifies the character set of the records used to generate the Slack message.
Record Writerrecord-sink-record-writerController Service API:
RecordSetWriterFactory
Implementations: XMLRecordSetWriter
FreeFormTextRecordSetWriter
AvroRecordSetWriter
ScriptedRecordSetWriter
JsonRecordSetWriter
ParquetRecordSetWriter
RecordSetWriterLookup
CSVRecordSetWriter
Specifies the Controller Service to use for writing out the records.
Web Service Client Providerweb-service-client-providerController Service API:
WebClientServiceProvider
Implementation: StandardWebClientServiceProvider
Controller service to provide HTTP client for communicating with Slack API

State management:

This component does not store state.

Restricted:

This component is not restricted.

System Resource Considerations:

None specified.