Redwood Documentation

Product Documentation

 

›Triggering Alerts

RunMyJobsAlerting

Triggering Alerts

  • Active Monitoring Module
  • Triggering Alerts
  • Process Alert Sources
  • Raising Alerts and Notifications from Processes
  • Process Server Alert Sources
  • Raising Alerts and Notifications from Process Servers
  • Ad Hoc Alert Sources
  • Using Ad Hoc Alert Sources
  • Monitor Alert Sources

Escalation Routes

  • Defining Escalation Routes

Email Alert Gateways

  • Email Alert Gateways
  • Creating and Configuring Email Alert Gateways

Alerting Routes

  • Visualizing Alerting Routes
← Active Monitoring ModuleProcess Alert Sources →

Triggering Alerts

Alert sources define which objects create alerts, under which circumstances and which alert to send. By default, the only response to an alert operator message is Acknowledge. This can be changed on the alert source.

The following types of alert sources are available:

  • process alert sources - defines the situations in which specific processes raise alerts.
  • monitor alert sources - defines the situations in which monitors raise alerts.
  • process servers alert sources - defines the situations in which specific process servers raise alerts.
  • AdHoc alert sources - used in chains, for example, with the System_Alert_Send process definition.

Each alert source uses specific rules to determine:

  • when an alert needs to be raised, specifc to each alert source type
  • the escalation to use
  • the message to send

The following topic covers features that are shared by all alert sources.

Context-Menu

Alert sources support the following context-menu actions:

ActionDescription
Edit SecurityEdit the security of the alert source
DuplicateMake a copy of the alert source to create a similar one
DeleteDelete the alert source
Export > ExportExport the alert source into a CAR file
Export > Export with related objectsExport the alert source into a CAR file including referenced objects
Promote > Promote to systemPromote the object to a remote system
Promote > Edit further then promoteEdit the export rule set prior to promoting
PromotePromote the alert source to another Redwood Server instance
EditEdit the alert source
Show permalinksShow links that can be used from third party applications to link to the object
Add to navigation barAdd the current object to the navigation bar
New alert sourceCreate a new alert source
Show diagramDisplay the dependencies in a diagram
Filter > New FilterCreate a new alert source filter
Filter > Edit FilterEdit current alert source filter
Filter > DeleteDelete current alert source filter
Filter > Duplicate FilterCreate a copy of the filter
Filter > Export FilterExport the filter into a CAR file
Filter > Add to navigation barAdd the filter to a navigation bar
Filter > Create filter from searchCreate a filter from the current IntelliSearch query

Alert Source Emails

Gateways will always attempt to use the most specific email and email address, the search is done in the following order:

  1. Specific alert source.
  2. Gateway.
  3. Default.

The email type is detected by the first letter, if the first letter is a <, then the email type is set to HTML, otherwise a text email is sent. You can use specific constructs using REL expressions in your emails. For more information, see Customizing Emails.

Email Addresses and Aliases

The value of the Email Address field specified on the alert source is used to determine the email alert gateway and the addressee(s). You specify either an email address or an alias, such as alias:operators. When you specify an alias in the Email Address field, the alias is used to lookup the email alert gateway, only, and will not be used as a recipient address.

The list of recipients should be maintained on the email alert gateway on the Headers tab; if an email address was specified in the Email Address field of the alert source (it does not start with alias: ), this will be added as well. Multiple headers with the same name are supported, Redwood Server will combine them all to one.

The following table provides a few examples; for simplicity, it is assumed that the email alert gateway Address Pattern matches the value of the alert source Email Address field.

Alert Source - Email Address FieldAlert Source - Email TabEmail Alert Gateway - Headers TabEmail Alert Gateway - Email TabResult
alias:development<none defined>to:jdoe@example.comto:jsmith@example.comcc:emustermann@example.comto:cberthier@example.comto:jdoe@example.com, jsmith@example.com, cberthier@example.comcc:emustermann@example.com
cberthier@example.comto:jsmith@example.comto:jdoe@example.comcc:emustermann@example.comto:cberthier@example.com, jsmith@example.com, jsmith@example.com

Customizing Alert Source Emails

You can customize emails on the Alert Source Email tab, using the following two constructs:

  • conditional evaluation
  • REL expressions (without the equals (=))

Conditional Evaluation

[?if test="expression"?]
text
[?endif?]

REL Expressions

[?=expression?]

Substitution Parameters for use in Emails

The following substitution parameters can be used in emails:

  • ${<object>.name} - Name of (ie. getErrorName()) the object,
  • ${<object>.url} Link to the object (permalink URL),
  • ${<object>.link} Fully formed link: <a href="link">name</a>

Where <object> can be one of the following:

  • object - the alert
  • operatorMessage - the operator message of the alert
The following alert was not replied to in a timely manner: `${operatorMessage}`. Please check the following: `${operatorMessage.link}`.

Example

<html>
<head><title>Email</title></head>
<body>
[?if test="alertSourceType === 'AdHocAlertSource'"?]
Ad hoc alert data: [?=data?]
[?endif?]

Link <a
href="http://prd1.example.com:50200/redwood/api-permalink/show?link-objecttype=[?=alertSourceType?]&link-uniqueid=[?=alertSourceUniqueId?]">alert source</a>
</body>
</html>
note

Only ad hoc alert sources can resolve the data parameter in the Email body, Processes alert sources, for example, cannot resolve process parameters in an email body.

Alert Source Actions

Alert source actions are used to customize the behavior using RedwoodScript.

The following predefined objects are available:

ObjectClassExample Code
jcsOutLogcom.redwood.scheduler.infrastructure.logging.api.LoggerjcsOutLog.info("This is an informational message.");
jcsAlertSourcePostAlertContextcom.redwood.scheduler.api.scripting.variables.AlertSourcePostAlertActionScriptObjectjcsAlertSourcePostAlertContext.getAlertSource();
jcsSessioncom.redwood.scheduler.api.model.SchedulerSessionjcsSession.getQueueByName("PRD_Queue");
note

The jcsSession object is only available when you set an Action Subject.

Finding Alert Sources and Filerting Overviews

You search for alert sources using filters and the Search Alert Sources box in the overview for the Alert Source. This box is located under your username on the top right-hand side of the user interface. Filters allow you to specify a list of objects with static criteria, SQL queries, and/or IntelliSearch expressions, and any combination thereof. IntelliSearch allows you to specify complex queries in a simple way using prefixes. Prefixes are used to specify which property you are searching in and have short as well as long syntaxes. For example, if you want to display all alert sources of the current overview with the term error in the Description, you would use the search criteria as follows:

d:error

You can search more than one property, as follows:

d:error n:all
note

No spaces should be entered before or after the colon (: ).

See the Advanced Object Search for more information.

The following table illustrates the available prefixes for alert sources:

PrefixesDescription
n, namesearches the name property
c, comm, commentsearches the documentation property
d, desc, descriptionsearches the description property
a, applicationsearches the application property
cb, changedbefore(internal) search for alert sources that changed before a certain ISO-8601 period

See Also

  • Process Alert Sources
  • Raising Alerts and Notifications from Processes
  • Process Server Alert Sources
  • Raising Alerts and Notifications from Process Servers
  • Ad Hoc Alert Sources
  • Sending Ad Hoc Alert Sources
  • Monitor Alert Sources
← Active Monitoring ModuleProcess Alert Sources →
  • Context-Menu
  • Alert Source Emails
    • Email Addresses and Aliases
    • Customizing Alert Source Emails
  • Alert Source Actions
  • Finding Alert Sources and Filerting Overviews
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |