...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="utf-8"?> <CheckHistoryConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CheckHistoryConfiguration_v1.0.xsd"> <MonitoredObject> <JobChains> <JobChain scheduler_id="MY_JOB_SCHEDULER_ID" name="MY_JOB_CHAIN_NAME"/> </JobChains> <Timers> <Timer> <JobChains> <JobChain name="MY_JOB_CHAIN_NAME" /> </JobChains> <Maximum><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></Maximum> </Timer> </Timers> </MonitoredObject> </CheckHistoryConfiguration> |
<!--
Now in order to configure the XML file and following the description from above (about the schema):
- Specify the JobScheduler that should be monitored: Job Scheduler with "MY_JOB_SCHEDULER_ID"
- Specify the JobScheduler objects that should be monitored: Job Chain "MY_JOB_CHAIN_NAME"
- Specify Timer for your JobChain: Timer for Job Chain "MY_JOB_CHAIN_NAME" (moreover a function that calculates the expiration time for the timer)
-->
Explanation
MonitoredObject/JobChains
can contain severalJobChain
definitions for monitoring of error or success conditionsMonitoredObject/JobChains/JobChain
has the following attributesscheduler_id
(optional) - JobScheduler instance with the given identification. By default - JobChain will be checked in all JobScheduler instances that logged into the same databasename
(optional) - Job chain name including possible folder names. By default - all JobChains for defined scheduler_id are checkedstep_from
(optional) - Start Job node name for checkingstep_to
(optional) - End Job node name for checking
Schema: SystemMonitorNotification_v1.0.xsd
...