Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
   <?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>

Following Now in order to configure the XML file and following the description above:

  1. Specifies Specify the JobScheduler that should be monitored: Job Scheduler with "MY_JOB_SCHEDULER_ID"
  2. Specifies Specify the JobScheduler objects that should be monitored: Job Chain "MY_JOB_CHAIN_NAME"
  3. Timers check the job and job chain execution for timeoutsSpecify Timer for your JobChain: Timer for Job Chain "MY_JOB_CHAIN_NAME" (moreover a function that calculates the expiration time for the timer)

...