The action identifier is newrelic.notification.sendSlack.
Sends a Slack message to a channel, integrated with destinations.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
destinationId | String | Required. DestinationId associated with the New Relic destination. See NerdGraph tutorial: Alerts destinations to configure a destination and retrieve its ID, and Destinations for more information. |
|
text | String | Optional. Text message to send. Provide either |
|
blocks | List | Optional. JSON array of Slack Block Kit elements. See Supported block types. Provide either |
|
channel | String | Required. Channel name to send the message to. |
|
threadTs | String | Optional. Timestamp of the parent message, used to post a reply in a thread. |
|
selectors | List | Optional. Selectors to extract specific fields from the output. |
|
Supported block types
The sendSlack action supports only two block types and rejects any others during validation.
Block type | Description | Allowed keys | Example |
|---|---|---|---|
| The only block type that renders text. The |
|
|
| Renders a visual horizontal line. |
|
|
For more information, see the Slack Block Kit reference and the Slack Block Kit Builder.
The following table describes all output fields returned by this action.
Output | Type | Example |
|---|---|---|
| Boolean |
|
| String |
|
| String |
|
Workflow example: text message |
|---|
|
Workflow example: Block Kit blocks |
|---|
|