Pattern is a regular expression that will be applied to the URL textual response. Pattern is tested on a simple match and optionally extracting and evaluating a numeric value. When a pattern test fails (pattern match is not found or extracted value doesn’t pass the condition), reporters assigned to the module are alerted by email and optionally a phone call.
Pattern administration contains a list of all active and inactive patterns defined for the selected URL. Pattern data can be edited by clicking Edit. Activate/deactivate icon deactivates pattern record and restores it again. Deactivated pattern is removed from the monitoring process like it was deleted but it can be restored again. Add opens a clear form for creating new pattern.
New Pattern / Edit pattern
A form for entering new pattern data or modification of existing one. After saving the record to database, the pattern is immediately included in the monitoring process.
Pattern fields:
-
Pattern name
Display name for the pattern -
RegExp
Regular expression to search for. Detailed information on regex standard can be found on web page: http://java.sun.com/docs/books/tutorial/essential/regex/ -
Active
If the box is checked, the pattern is enabled; otherwise it is disabled and not processed. -
Critical value
A condition for testing a numeric value extracted by the regular expression. RegExp must contain capturing group e.g. (\d*) providing an integer value. Result of the condition evaluation becomes result of the pattern test.
Following condition types can be used:
-
=
Pattern test is successful when the numeric value extracted by the regular expression equals to the given value -
<
Extracted value must be less than the given value -
>
Extracted value must be greater than the given value -
<=
Extracted value must be less or equal to the given value -
>=
Extracted value must be greater or equal to the given value -
X
No condition is applied. The pattern is tested on a simple match only.
-
Severity: Warning / Error
Severity of the pattern failure. When pattern check fails (no match found or value condition failed) and the severity is set to Error, assigned reporters will be called and emailed. When the severity is set to Warning, reporters will be emailed only. -
Order
Display order in list of patterns, order of patterns in processing cycle.
