Creating a Summarization Class Using Filtering
This topic describes how to create a summarization class using filtering. Filtering allows the summarization to filter out data based on the value of a member of the base class.
For a summarization class, the ClassType attribute of the class definition is set to "3". The InstExclusionExpr attribute of the class definition contains the expression string to filter on. The filtering feature supports the IN and NOT IN operators using the following syntax:
Exclusion string = "BaseClassMemberName IN(value)"
Exclusion string = "BaseClassMemberName NOT IN(value)"
Because the steps to extend the schema were shown in the previous sections, the following examples will just show the particular steps for creating the summarizations with filtering.
Example 1
'Set the class name
Set recNew = CreateObject("ADODB.Record")
recNew("ClassDefName") = "NewRequestAgg"
'Set the class type to aggregation
recNew("ClassType") = 3
'Set the name of the base class to use for data
recNew("BaseClassName") = "Request"
'Set the exclusion string (filter)
'This excludes all data from the aggregation where IsRequest = 1
recNew("InstExclusionExpr") = "IsRequest IN(1)"
Example 2
'Set the class name
recNew("ClassDefName") = "NewHTTPStatustAgg"
'Set the class type to aggregation
recNew("ClassType") = 3
'Set the name of the base class to use for data
recNew("BaseClassName") = "Request"
'Set the exclusion string (filter)
'This excludes all hits that have an HTTPStatus not in the given set
recNew("InstExclusionExpr") = _
"HttpStatus NOT IN(0,200,202,203,204,304)"