PutSlack

Deprecation notice:

This Processor makes use of a Webhook URL, rather than Slack's REST API. As a result, the Processor is more difficult to configure than necessary and requires special permissions for the Slack Application / Bot. These permissions must be granted for every channel that the application is to respond to, which makes setup and maintenance difficult. Additionally, it does not make clear the differences between PutSlack and PostSlack. Each provides slightly different capabilities. PublishSlack combines the capabilities of both Processors in a simpler configuration that makes use of Slack's standard REST API.

Please consider using one the following alternatives: PublishSlack

Description:

Sends a message to your team on slack.com

Additional Details...

Tags:

put, slack, notify

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, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Webhook URLwebhook-urlThe POST URL provided by Slack to send messages into a channel.
Sensitive Property: true
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Webhook Textwebhook-textThe text sent in the webhook message
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
ChannelchannelA public channel using #channel or direct message using @username. If not specified, the default webhook channel as specified in Slack's Incoming Webhooks web interface is used.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
UsernameusernameThe displayed Slack username
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Icon URLicon-urlIcon URL to be used for the message
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Icon Emojiicon-emojiIcon Emoji to be used for the message. Must begin and end with a colon, e.g. :ghost:
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
SSL Context ServiceSSL Context ServiceController Service API:
SSLContextService
Implementations: StandardSSLContextService
StandardRestrictedSSLContextService
Specifies an optional SSL Context Service that, if provided, will be used to create connections

Dynamic Properties:

Supports Sensitive Dynamic Properties: No

Dynamic Properties allow the user to specify both the name and value of a property.

NameValueDescription
A JSON object to add to Slack's "attachments" JSON payload.JSON-formatted string to add to Slack's payload JSON appended to the "attachments" JSON array.Converts the contents of each value specified by the Dynamic Property's value to JSON and appends it to the payload being sent to Slack.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

Relationships:

NameDescription
successFlowFiles are routed to success after being successfully sent to Slack
failureFlowFiles are routed to failure if unable to be sent to Slack

Reads Attributes:

None specified.

Writes Attributes:

None specified.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.