

# QueryFilter
<a name="API_QueryFilter"></a>

A structure that defines a key and values that you can use to filter the results. The only performance events that are returned are those that have values matching the ones that you specify in one of your `QueryFilter` structures.

For example, you could specify `Browser` as the `Name` and specify `Chrome,Firefox` as the `Values` to return events generated only from those browsers.

Specifying `Invert` as the `Name` works as a "not equal to" filter. For example, specify `Invert` as the `Name` and specify `Chrome` as the value to return all events except events from user sessions with the Chrome browser.

## Contents
<a name="API_QueryFilter_Contents"></a>

 ** Name **   <a name="cloudwatchrum-Type-QueryFilter-Name"></a>
The name of a key to search for. The filter returns only the events that match the `Name` and `Values` that you specify.   
Valid values for `Name` are `Browser` \$1 `Device` \$1 `Country` \$1 `Page` \$1 `OS` \$1 `EventType` \$1 `Invert`   
Type: String  
Required: No

 ** Values **   <a name="cloudwatchrum-Type-QueryFilter-Values"></a>
The values of the `Name` that are to be be included in the returned results.  
Type: Array of strings  
Required: No

## See Also
<a name="API_QueryFilter_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/rum-2018-05-10/QueryFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rum-2018-05-10/QueryFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rum-2018-05-10/QueryFilter) 