createNotification()
Overview
public string function createNotification(
required string topic
, required string type
, required struct data
)
Adds a notification to the system.
Arguments
Name | Type | Required | Description |
---|---|---|---|
topic | string | Yes | Topic that indicates the specific notification being raised. e.g. 'sync.jobFailed' |
type | string | Yes | Type of the notification, i.e. 'INFO', 'WARNING' or 'ALERT' |
data | struct | Yes | Supporting data for the notification. This is used, in combination with the topic, to render the alert for the end users. |