...
Code Block |
---|
language | xml |
---|
title | Example |
---|
collapse | true |
---|
|
...
<Script language="javascript"><![CDATA[1000]]></Script>
...
<Script language="javascript"><![CDATA[
function calculate(){
var fileSize = new java.lang.Double(%file_size%);
var timerExpiryFactor = 0.0025;
var timerExpiryTolerance = timerExpiryFactor*0.1;
var timerExpiry = new java.lang.Double(timerExpiryFactor+timerExpiryTolerance);
timerExpiry = timerExpiry*fileSize;
return timerExpiry;
}
calculate();
]]></Script>
... |
Message
Usage
The Message sended to System Monitor can be configured as CDATA element Message can be configured on the following parent nodes as CDATA element :
SystemMonitorNotification / Notification / NotificationCommand
SystemMonitorNotification / Notification / NotificationInterface
The Message can contains:
Example contains fixed values and variables. e.g.: <![CDATA[ scheduler id = %MON_N_SCHEDULER_ID% ]]>
Variables
All variables must be defined by using of the %<variable name>%
syntax.
...
- Table variables.
- Service variables.
- OS environment variables.
Tables variables
Expand |
---|
title | Variables: table SCHEDULER_MON_NOTIFICATIONS |
---|
|
Table of the history of steps of processed orders. Name | Description |
---|
%MON_N_ID% | Unique notification id | %MON_N_SCHEDULER_ID% | Id of the JobScheduler | %MON_N_TASK_ID% | Id of the JobScheduler task | %MON_N_STEP% | Consecutive number of the order step | %MON_N_ORDER_HISTORY_ID% | Id of the JobScheduler order | %MON_N_JOB_CHAIN_NAME% | Name of the job chain of the order | %MON_N_JOB_CHAIN_TITLE% | Title of the job chain of the order | %MON_N_ORDER_ID% | Unique (within the job chain) id of the order | %MON_N_ORDER_TITLE% | Title of the order | %MON_N_ORDER_START_TIME% | Timestamp of the start of the order | %MON_N_ORDER_END_TIME% | Timestamp of the end of the order | %MON_N_ORDER_TIME_ELAPSED% | The time or difference in seconds between a beginning time and an ending time of the order | %MON_N_ORDER_STEP_STATE% | State of the order inside the job chain | %MON_N_ORDER_STEP_START_TIME% | Timestamp of the start of the order step | %MON_N_ORDER_STEP_END_TIME% | Timestamp of the end of the order step | %MON_N_ORDER_STEP_TIME_ELAPSED% | The time or difference in seconds between a beginning time and an ending time of the order step | %MON_N_JOB_NAME% | Name of the job | %MON_N_JOB_TITLE% | Title of the job | %MON_N_TASK_START_TIME% | Timestamp of the job task start | %MON_N_TASK_END_TIME% | Timestamp of the job task end | %MON_N_TASK_TIME_ELAPSED% | The time or difference in seconds between a beginning time and an ending time of the job task | %MON_N_RECOVERED% | 0 = dependent of the %MON_N_ERROR% - ok or error was not recovered,
1 = error was recovered
| %MON_N_ERROR% | 0 = ok
1 = error
| %MON_N_ERROR_CODE% | Exception-code of the job error | %MON_N_ERROR_TEXT% | Exception message of the job (that processed the order) | %MON_N_CREATED% | Timestamp of the notification initial record | %MON_N_MODIFIED% | Timestamp of the latest changes to this notification record |
|
...
Code Block |
---|
language | xml |
---|
title | Example |
---|
collapse | true |
---|
|
timer name = %MON_C_NAME%, text = %MON_C_CHECK_TEXT% |
Service variables
Expand |
---|
|
Name | Description |
---|
%SERVICE_NAME% | Current service name SystemMonitorNotification / Notification / NotificationMonitor / @service_name_on_error or
SystemMonitorNotification / Notification / NotificationMonitor / @service_name_on_success
| %SERVICE_STATUS% | Current service status SystemMonitorNotification / Notification / NotificationMonitor / @service_status_on_error or
SystemMonitorNotification / Notification / NotificationMonitor / @service_status_on_success
| %SERVICE_MESSAGE_PREFIX% | Message prefix ERROR sending of the error notificationRECOVERED sending of the error recovery notificationTIMER sending of the performance check notification
|
|
Code Block |
---|
language | xml |
---|
title | Example |
---|
collapse | true |
---|
|
service name = %SERVICE_NAME% |
OS environment variables
All existing system variables can be defined by message with the syntax like %<variable name>%
(Windows/Unix)
.
...