...
Element | Element description | Description |
---|---|---|
JobChain | Optional, once or more inside of NotificationObjects element | Restricts notifications for job chains |
Timer | Optional, once or more inside of NotificationObjects element | Restricts notifications for performance checks (Timer) |
SystemMonitorNotification / Notification / NotificationObjects / JobChain
JobChain
support the following attributes:
Attribute | Usage | Description |
---|---|---|
notifications | Optional Integer | Specifies the number of notifications that are sent to a System Monitor. Default: |
scheduler_id | Optional | Notifications are restricted to the JobScheduler instance with the given identification. By default notifications will be sent for all JobScheduler instances that would log into the same database. Regular expression can be used. |
name | Optional | Job chain name including possible folder names. Regular expression can be used. |
step_from | Optional | Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
step_to | Optional | Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
excluded_steps | Optional | Specifies the steps which will be excluded from the analysing (separated by semicolon) |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<SystemMonitorNotification system_id="OP5">
<Notification>
<NotificationMonitor service_name_on_error="Errors">
...
</NotificationMonitor>
<NotificationObjects>
<!--
Send the job chain error, occurrent in the "test/my_jobchain" job chain, to the "Errors" service.
-->
| ||||||
Code Block | ||||||
| ||||||
... <JobChain notifications="2" name="test/my_jobchain"/> ... <JobChain scheduler_id="scheduler_4444" /> ... <JobChain scheduler_id="scheduler_4444" name="^(test/my)" /> ... <JobChain name="test/my_jobchain" step_from="200"/> ... <JobChain name="test/my_jobchain" step_to="500"/> ... <JobChain name="test/my_jobchain" step_from="300" step_to="300"/> ... <JobChain name="test/my_jobchain" excluded_steps="200;300"/> .../> </NotificationObjects> </Notification> </SystemMonitorNotification> |
SystemMonitorNotification / Notification / NotificationObjects /
...
JobChain
Timer JobChain
support the following attributes:
Attribute | Usage | Description |
---|---|---|
notifications | Optional Integer | Specifies the number of notifications that are sent to a System Monitor. Default: |
name scheduler_id | Optional | Correspondence to Timer name setting defined in the SystemMonitorNotification / Timer element |
notify_on_error | Optional Boolean | Send timer check notification when the configured job chain contains the error notifications. Default: |
Notifications are restricted to the JobScheduler instance with the given identification. By default notifications will be sent for all JobScheduler instances that would log into the same database. Regular expression can be used. | ||
name | Optional | Job chain name including possible folder names. Regular expression can be used. |
step_from | Optional | Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
step_to | Optional | Restricts notifications for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
excluded_steps | Optional | Specifies the steps which will be excluded from the analysing (separated by semicolon) |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<JobChain notifications="2" name= | ||||||
Code Block | ||||||
| ||||||
<SystemMonitorNotification system_id="OP5"> <Notification> <NotificationMonitor service_name_on_error="Errors"> ... </NotificationMonitor> <NotificationObjects> <!-- Send the job chain error, occurrent in the "test/my_jobchain" job chain, to the "Errors" service. --> /> ... <JobChain scheduler_id="scheduler_4444" /> ... <JobChain scheduler_id="scheduler_4444" name="^(test/my)" /> ... <JobChain name="test/my_jobchain" step_from="200"/> ... <JobChain name="test/my_jobchain" step_to="500"/> ... <JobChain name="test/my_jobchain" step_from="300" step_to="300"/> ... <JobChain name="test/my_jobchain" excluded_steps="200;300"/> ... |
SystemMonitorNotification / Notification / NotificationObjects / Timer
Timer support the following attributes:
Attribute | Usage | Description |
---|---|---|
notifications | Optional Integer | Specifies the number of notifications that are sent to a System Monitor. Default: |
name | Optional | Correspondence to Timer name setting defined in the SystemMonitorNotification / Timer element |
notify_on_error | Optional Boolean | Send timer check notification when the configured job chain contains the error notifications. Default: |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<SystemMonitorNotification system_id="OP5"> <Notification> <NotificationMonitor service_name_on_error="Errors"> ... </NotificationMonitor> <NotificationObjects> <!-- Send the job chain error, occurrent in </NotificationObjects> </Notification> <Notification> <NotificationMonitor service_name_on_error="Performance"> ... </NotificationMonitor> <NotificationObjects> <!-- Send the performance check error, occurrent in the "test/my_jobchain" job chain, to the "Performance" service. Send of the performance check error to the "Performance" service will be ignored when the "test/my_jobchain" has the job chain, errorto (default notify_on_error = false)the "Errors" service. --> <Timer<JobChain name="test/my_timerjobchain" /> </NotificationObjects> </Notification> <Notification> <Timer name="my_timer"> <JobChain name= <NotificationMonitor service_name_on_error="Performance"> ... </NotificationMonitor> <NotificationObjects> <!-- Send the performance check error, occurrent in the "test/my_jobchain" /> </Timer> </SystemMonitorNotification> |
SystemMonitorNotification / Timer
The following elements must be nested inside a Timer
element:
Element | Element description | Description |
---|---|---|
JobChain | Once or more inside of Timer element | Restricts notifications for job chains |
Minimum | Optional or once inside of Timer element | Minimum required time consumption for job or job chain execution. Allows script code to be executed that returns the minimum execution time required in seconds. |
Maximum | Optional or once inside of Timer element | Maximum allowed time consumption for job or job chain execution. Allows script code to be executed that returns the maximum execution time required in seconds. |
Timer
support the following attributes:
Attribute | Usage | Description |
---|---|---|
name | Required | Correspondence to Timer used in the The name must be unique across all timers definitions. |
SystemMonitorNotification / Timer / JobChain
JobChain
support the following attributes:
Attribute | Usage | Description |
---|---|---|
scheduler_id | Optional | Notifications are restricted to the JobScheduler instance with the given identification. By default notifications will be sent for all JobScheduler instances that would log into the same database. Regular expression can be used. |
name | Optional | Job chain name including possible folder names. Regular expression can be used. |
step_from | Optional | Restricts checks for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
step_to | Optional | Restricts checks for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
SystemMonitorNotification / Timer / Minimum
The following elements must be nested inside a Minimum
element:
Element | Element description | Description |
---|---|---|
Script | Once inside of Minimum element | Script code in one of the supported languages |
SystemMonitorNotification / Timer / Maximum
The following elements must be nested inside a Maximum
element:
Element | Element description | Description |
---|---|---|
Script | Once inside of Maximum element | Script code in one of the supported languages |
SystemMonitorNotification / Timer / Minimum|Maximum / Script
Script
support the following attributes:
...
job chain, to the "Performance" service.
Send of the performance check error to the "Performance" service will be ignored when the "test/my_jobchain" has the job chain error (default notify_on_error = false).
-->
<Timer name="my_timer" />
</NotificationObjects>
</Notification>
<Timer name="my_timer">
<JobChain name="test/my_jobchain" />
</Timer>
</SystemMonitorNotification> |
SystemMonitorNotification / Timer
The following elements must be nested inside a Timer
element:
Element | Element description | Description |
---|---|---|
JobChain | Once or more inside of Timer element | Restricts notifications for job chains |
Minimum | Optional or once inside of Timer element | Minimum required time consumption for job or job chain execution. Allows script code to be executed that returns the minimum execution time required in seconds. |
Maximum | Optional or once inside of Timer element | Maximum allowed time consumption for job or job chain execution. Allows script code to be executed that returns the maximum execution time required in seconds. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<SystemMonitorNotification system_id="OP5">
...
<Timer name="my_timer_1">
<JobChain name="test/my_jobchain_1" />
<Maximum><Script language="javascript"><![CDATA[1000]]></Script></Maximum>
</Timer>
<Timer name="my_timer_2">
<JobChain name="test/my_jobchain_2" />
<Minimum><Script language="javascript"><![CDATA[500]]></Script></Minimum>
<Maximum><Script language="javascript"><![CDATA[1000]]></Script></Maximum>
</Timer>
</SystemMonitorNotification> |
Timer
support the following attributes:
Attribute | Usage | Description |
---|---|---|
name | Required | Correspondence to Timer used in the The name must be unique across all timers definitions. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Timer name="my_timer">
... |
SystemMonitorNotification / Timer / JobChain
JobChain
support the following attributes:
Attribute | Usage | Description |
---|---|---|
scheduler_id | Optional | Notifications are restricted to the JobScheduler instance with the given identification. By default notifications will be sent for all JobScheduler instances that would log into the same database. Regular expression can be used. |
name | Optional | Job chain name including possible folder names. Regular expression can be used. |
step_from | Optional | Restricts checks for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
step_to | Optional | Restricts checks for job chains to a sequence of job nodes that are specified with the step_from and step_to attributes. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<JobChain scheduler_id="scheduler_4444" />
...
<JobChain scheduler_id="scheduler_4444" name="^(test/my)" />
...
<JobChain name="test/my_jobchain" step_from="200"/>
...
<JobChain name="test/my_jobchain" step_to="500"/>
...
<JobChain name="test/my_jobchain" step_from="300" step_to="300"/>
... |
SystemMonitorNotification / Timer / Minimum
The following elements must be nested inside a Minimum
element:
Element | Element description | Description |
---|---|---|
Script | Once inside of Minimum element | Script code in one of the supported languages |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Timer name="my_timer">
...
<Maximum><Script language="javascript"><![CDATA[1000]]></Script></Maximum>
</Timer>
... |
SystemMonitorNotification / Timer / Maximum
The following elements must be nested inside a Maximum
element:
Element | Element description | Description |
---|---|---|
Script | Once inside of Maximum element | Script code in one of the supported languages |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Timer name="my_timer">
...
<Minimum><Script language="javascript"><![CDATA[1000]]></Script></Minimum>
</Timer>
... |
SystemMonitorNotification / Timer / Minimum|Maximum / Script
Script
support the following attributes:
Attribute | Usage | Description |
---|---|---|
language | Required | Script language name Supported languages:
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<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>
... |
Script language name
Supported languages:
...
Message
Usage
The Message sended to System Monitor can be configured as CDATA element on the following parent nodes:
...