

# MetricFilter

A single predicate that selects which events contribute to a metric.

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

 ** field **   <a name="appmonetization-Type-MetricFilter-field"></a>
The event property key the filter is evaluated against.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z][a-z0-9_]*`   
Required: Yes

 ** operator **   <a name="appmonetization-Type-MetricFilter-operator"></a>
The comparison operator (EQUALS, NOT\_EQUALS, IN, or NOT\_IN).  
Type: String  
Valid Values: `EQUALS | NOT_EQUALS | IN | NOT_IN`   
Required: Yes

 ** values **   <a name="appmonetization-Type-MetricFilter-values"></a>
The values the field is compared against.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 20 items.  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[^'\\]*`   
Required: Yes

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appmonetization-2022-07-26/MetricFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/MetricFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/MetricFilter) 