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
Sends a message to your team on slack.com
put, slack, notify
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 Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Webhook URL | webhook-url | The 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 Text | webhook-text | The text sent in the webhook message Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Channel | channel | A 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) | ||
Username | username | The displayed Slack username Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Icon URL | icon-url | Icon URL to be used for the message Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Icon Emoji | icon-emoji | Icon 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 Service | SSL Context Service | Controller Service API: SSLContextService Implementations: StandardRestrictedSSLContextService StandardSSLContextService | Specifies an optional SSL Context Service that, if provided, will be used to create connections |
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|---|---|
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) |
Name | Description |
---|---|
success | FlowFiles are routed to success after being successfully sent to Slack |
failure | FlowFiles are routed to failure if unable to be sent to Slack |