Specifications

Except Statement
Example
Suppose you want to monitor the performance of Lotus Notes. Scheduling a
meeting involves some user actions followed by a flurry of exchanges with the
database server. The following transaction definition configures Application
Response to recognize such a transaction.
transaction ”ScheduleMeeting”
module ”ScheduleMeeting”
{
event "1" Windows MouseClick { Title="Schedule a Meeting" }
event "2" Windows MouseClick { Title="Save and Send Invitations" }
event "3" Windows ButtonPress { Text="Yes" }
event "4" Windows SetTitle { ObjectID="NLNOTES-23-3207281309" }
last
{
event "5" Connection Response { }
}
}
In this example, the last statement helps Application Response to identify the
flurry of network activity occurring at the end of the transaction. This example
requires the last statement because the number of Request/Response events
may vary with each appointment scheduled. When Application Response
observes an event other than a network response, it uses the final response to
mark the end of the transaction.
Except Statement
The except statement instructs Application Response to ignore a transaction if
a particular event (or any one of several events) occurs. When an except
statement is satisfied, Application Response discards any response time data
collected (for that particular transaction) up to that point. It then begins to
evaluate succeeding events to see if they match a defined transaction. Use the
except statement to distinguish between two or more transactions that are the
same except for one intervening event.
The except statement instructs Application Response not to measure response
time for transactions that contain a particular event. You can use the except
statement at the transaction level (that is, define it within a transaction
definition). Compare this to the IgnoreEvents clause, which continues to
measure response time for transactions but omits the response time of
specified events from the transactions. Ignored events are defined application-
wide; you specify them in the additional resources section of an application
rule set.
BT Language Reference 169