PutSlack

Description:

Publishes a message to Slack

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 Environment variables)
Webhook Textwebhook-textThe text sent in the webhook message
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
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 Environment variables)
UsernameusernameThe displayed Slack username
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
Thread TimestampThread TimestampThe timestamp of the parent message, also known as a thread_ts, or Thread Timestamp. If not specified, the message will be send to the channel as an independent message. If this value is populated, the message will be sent as a reply to the message whose timestamp is equal to the given value.
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
Icon URLicon-urlIcon URL to be used for the message
Supports Expression Language: true (will be evaluated using flow file attributes and Environment variables)
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 Environment variables)
SSL Context ServiceSSL Context ServiceController Service API:
SSLContextService
Implementations: StandardRestrictedSSLContextService
StandardSSLContextService
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 Environment variables)

Relationships:

NameDescription
failureFlowFiles are routed to failure if unable to be sent to Slack
successFlowFiles are routed to success after being successfully 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.