The action identifier is newrelic.notification.waitForStatus.
Polls for the delivery outcome of a notification sent by a prior newrelic.notification.send step. Given a sessionId, this action polls NrNotificationsEvent until the notification reaches a terminal status (SUCCESS or FAIL) or the specified timeout elapses. For Slack destinations, also returns the thread_ts value needed to reply into the thread the notification created.
The following table describes all available input fields for this action.
Input
Type
Description
Example
sessionId
String
Required. The sessionId returned by a prior newrelic.notification.send step.
The following table describes all output fields returned by this action.
Output
Type
Example
success
Boolean
true for all terminal outcomes (SUCCESS, FAIL, TIMEOUT). false only if the action itself errored.
errorMessage
String
Present only when success is false. Contains the action-level failure reason.
notificationStatus
Object
{
"status":"SUCCESS",
"errorMessage":"Delivery failed: channel not found",
"threadTs":"1234567890.123456"
}
status is one of SUCCESS, FAIL, or TIMEOUT. errorMessage is only present when status is FAIL. threadTs is only present for Slack destinations and contains the Slack thread timestamp needed to reply into the notification thread.
Workflow example: send a Slack notification and wait for delivery confirmation
name: notify_and_wait
description: Send a Slack notification then wait for its delivery status