The NotifyMessage component sends event notifications.
Features
Actions | Description | Use cases |
notifyByMessageCenter | Sends event notifications via Message Center. The message type is "Security Message - Cloud Security Information Notification". | Uses the notification methods configured in Message Center to send notifications for security event generation, security alert generation, and security event updates. |
notifyByCustom | Sends custom event notifications. | Sends custom messages to email addresses and DingTalk groups. |
Configuration example
This topic provides configuration examples for NotifyMessage actions, which you can import as test playbooks. Use the visualization flow editor to understand and test the configuration parameters for each action. This helps you quickly master the component's logic and usage. For import instructions, see Playbook import.
Save the example data as a JSON file before you proceed.
Resource instance configuration
To use the NotifyMessage component, first configure the email settings:
Click the component. On the Basic Information Configuration tab, in the Resource instance configuration area, click Resource instance configuration.
On the Resource instance configuration page, click Add and configure the parameters as shown in the following table.
Parameter | Description |
assetname | A custom name for the resource instance. |
emailSendServer | The SMTP server. This parameter is optional.
|
emailUsername | The sender's email address. Important
|
emailPassword | The password for the sender's email address. Important If authorization is enabled for your email account, enter the authorization code. Authorization codes expire and must be replaced before their expiration date. Otherwise, authentication will fail, and the component will be unable to send emails. |
notifyByMessageCenter
Sends event notifications via Message Center. The message type is "Security Message - Cloud Security Information Notification".
Parameters
Parameter | Description |
Notification method | This parameter is optional. You can select multiple methods.
For example, if you specify internal message and email for the component, but you specify email and webhook in Message Center, notifications are sent only by email. |
Notification template | The following templates are supported: event generation, alert generation, and event update. Note The notification template contains variables that are replaced with actual values when the component sends a notification. |
Parameter settings | Configure actual values for the variables defined in the notification template. You can specify constants or output parameters from a preceding node, such as ${event._tenant_id}. |
notifyByCustom
Sends custom messages. Email and DingTalk groups are supported.
Email parameters
Parameter | Description |
Sender | The sender's email address. This must be configured in the resource instance. |
Recipient | The recipient's email address. |
Subject | The email subject. |
Body | The email body. |
DingTalk parameters
Parameter | Description |
Webhook | The destination webhook URL for messages. You can manage webhook URLs in Message Center. |
Message template | The message template. |