Release 1.3 - ...
<url> element
Allows you to filter hits based on the url. The url is matched with the pattern attribute which is a regular expression. If the url of the request matches the regular expression, the condition is met.
The example show an exclude filter where all requests are excluded that either start with http://localhost or http or https requests that end with the extension .js
Example
XML |
Copy Code
|
<filter>
<hits>
<exclude>
<url pattern="http://localhost[\w\W]*" />
<url pattern="^https?://[\w\W]*\.js([\?\#]{1}[\w\W]*)?$" />
</exclude>
</hits>
</filter>
|
Attributes
Attribute name |
Required |
Description |
pattern |
Yes |
Defines a regular expression that must be matched for the filter to be true. |
Parent element
Element name |
Description |
<include> |
Describes the include element used to filter hits in Smi. |
Child elements
None.