AlertDefinitionBase

View as Markdown

Fields every alert definition has.

Name identifies the alert. MessageType is required and sets the colour, icon and log level ('Info', 'Success', 'Warning' or 'Error'). MessageHeader is the notification title. MessageText is the body. Suspend with IsSuspended.

TypeScript
export interface AlertDefinitionBase extends
Extends

SuspendableObject

Properties

PropertyTypeDescription
MessageHeaderstringTitle of displayed Alert Message
MessageTextstringBody of the displayed alert. The title is .

Tokens such as the column and the old and new values are substituted when the alert fires. When omitted, a rule-based alert uses the scope and the rule, and a row-change alert uses a count of the rows that were added or removed. alertOptions.alertMessageText overrides this text when it returns a string.
MessageTypeAdaptableMessageTypeType of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging
NamestringName of the Alert Definition
TypeAlertTypeAlert category. When omitted, inferred from Rule or Schedule. See .
IsReadOnlybooleanSets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
IsSuspendedbooleanSuspends (i.e. turns off) an Adaptable Object

Property Details

MessageHeader

Title of displayed Alert Message

TypeScript
MessageHeader?: string;
Property Value

string

MessageText

Body of the displayed alert. The title is .

Tokens such as the column and the old and new values are substituted when the alert fires. When omitted, a rule-based alert uses the scope and the rule, and a row-change alert uses a count of the rows that were added or removed. alertOptions.alertMessageText overrides this text when it returns a string.

TypeScript
MessageText?: string;
Property Value

string

MessageType

Type of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging

TypeScript
MessageType: AdaptableMessageType;
Property Value

AdaptableMessageType

Name

Name of the Alert Definition

TypeScript
Name: string;
Property Value

string

Type

Alert category. When omitted, inferred from Rule or Schedule. See .

TypeScript
Type?: AlertType;
Property Value

AlertType

IsSuspended

Inherited from SuspendableObject

Suspends (i.e. turns off) an Adaptable Object

TypeScript
IsSuspended?: boolean;
Property Value

boolean

IsReadOnly

Inherited from AdaptableObject

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

TypeScript
IsReadOnly?: boolean;
Property Value

boolean