Message
Message (message)
Conditionally generate a message when an event meets the provided condition.
Messaging json
Minimal example
actions: - message: condition: "" message-content: "" notification-type: alertJSON
{ "actions": [ { "message": { "condition": "", "message-content": "", "notification-type": "alert" } } ]}Contents
Fields
| Field | Type | Required | Description |
|---|---|---|---|
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. |
description | string | Describe this step. | |
log-event | boolean (bool) | Send this event to the job log? |
Schema
Notification Type Options
| Value | Description |
|---|---|
alert | The message indicates that something is wrong |
info | This message is informational |