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 name="samples/sample_jobChain_1"/>
                  <JobChain name="samples/sample_jobChain_2"/>
                  <JobChain name="samples/sample_jobChain_3"/>
               </JobChains>
               
               
	       <Timers>
                   <Timer>
		   <!-- 
                     configure job chains and expected maximum execution time for performance measurement
                
                     impact: if the execution time of job chain samples/sample_jobChain_1 is greater as 10 seconds,
                     the order will be set as performance problem. 
                   -->
                     <JobChains>
		         <JobChain name="samples/sample_jobChain_1" step_from="100" step_to="100"/>
	             </JobChains>
                     <Maximum><Script language="javascript"><![CDATA[10]]></Script></Maximum>
		   </Timer>
	       </Timers>
          </MonitoredObject>
  </CheckHistoryConfiguration>

...

Code Block
languagehtml/xml
  ....
  
  <Timer>
      <!-- 
      configure job chains and expected maximum execution time for performance measurement
                
      impact: if the execution of job chain samples/sample_jobChain_1 is greater as calculated time (in seconds),
      the order will be set as performance problem.
                
      The calculation uses the order parameter FILE_SIZE.
                
      Parameter FILE_SIZE must be configured for storing in the database.
      -->
      <JobChains>
          <JobChain name="samples/sample_jobChain_1"/>
      </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*60;
              return timerExpiry;
              \} 
              calculate();
              ]]></Script>
      </Maximum>
  </Timer>
  ...     

...