PutSlack

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, whether a property supports the NiFi Expression Language, and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDefault ValueAllowable ValuesDescription
Webhook 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 TextThe text sent in the webhook message
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
ChannelA 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)
UsernameThe displayed Slack username
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Icon URLIcon URL to be used for the message
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
Icon 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)

Dynamic Properties:

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.