createNotification()

Overview

public string function createNotification(
      required string topic
    , required string type 
    , required struct data 
)

Adds a notification to the system.

Arguments

NameTypeRequiredDescription
topicstringYesTopic that indicates the specific notification being raised. e.g. 'sync.jobFailed'
typestringYesType of the notification, i.e. 'INFO', 'WARNING' or 'ALERT'
datastructYesSupporting data for the notification. This is used, in combination with the topic, to render the alert for the end users.