Activity Duration Rules
An activity duration rule is a regular expression (used to match an activity name (that is, a Job ID)) combined with a run time limit which the job should not exceed. You can add as many rules as you like, one per line, in the Activity Duration Rules property.
The format of each rule is regex=number where the regex is a regular expression to match against the activity name, and number is the job duration limit, in minutes. When a new activity starts, each regex expression is tested against the name of the activity for a match.
The list of rules is tested in order, and the first match found is used. For example, if the rule set is:
any activity named "foo" would be marked slow if it ran for more than 10 minutes. Any activity named "bar" would be marked slow if it ran for more than 20 minutes.
Since Java regular expressions can be used, if the rule set is:
any activity with a name that starts with "foo" (for example, fool, food, foot) matches the first rule.
If there is no match for an activity, then that activity is not monitored for job duration. However, you can add a "catch-all" as the last rule that always matches any name:
foo.*=10 bar=20 baz=30 .*=60
In this case, any job that runs longer than 60 minutes is marked slow and generates an event.