Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
Description
Current Situation
- Job properties warnIfLonger and warnIfShorter consider the duration of job execution specified in seconds.
Desired Behavior
- In addition to specifying seconds, users want to specify a percentage of the average duration of any successful job executions.
- warnIfLonger/warnIfShorter configuration format:
- hh:mm:ss / seconds / percentage%
- warnIfLonger/warnIfShorter configuration format:
Maintainer Note
- This feature is available from branch 1 and is added to branch 2 for better compatibility
Test Instructions
- warnIfShorter
- CONFIGURATION/Notification
- configure a notitication for a specific job/workflow with the type WARNING
- CONFIGURATION/Inventory
- configure a specific job, that successfully running > 0s (e.g. shell job - use ping or sleep)
- run this job
- configure the Job Options -> Warn if shorter = 200%
- run this job
- check the notification results
- mail, file etc
- check the <joc data>/logs/service-monitor.log
- find notified SHORTER_THAN WARNING
- CONFIGURATION/Notification
- warnIfLonger
- see above and adjust the configuration settings to send a warning in exceeded job time execution