Message
Message (message)
Section titled “Message (message)”Conditionally generate a message when an event meets the provided condition.
Messaging json
Minimal example
Section titled “Minimal example”actions: - message: condition: "" message-content: "" notification-type: alertJSON
{ "actions": [ { "message": { "condition": "", "message-content": "", "notification-type": "alert" } } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
description |
string |
Describe this step. | |
condition |
lua-expression (string) |
✅ | A Lua expression which determines whether to generate a message based on the event. Examples: 2 * count() |
notification-type |
Notification Type |
✅ | Is this message an alert or an info notification? Allowed values: alert, info |
message-content |
multiline-text (string) |
✅ | The content of the message. |
log-event ✓ |
boolean (bool) |
Send this event to the job log? Default: false |
Schema
Section titled “Schema”Notification Type Options
Section titled “Notification Type Options”| Value | Aliases | Name | Description |
|---|---|---|---|
alert |
alert | The message indicates that something is wrong | |
info |
info | This message is informational |