

# MetricUsage

A single metric's raw usage over the window.

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

 ** metricId **   <a name="appmonetization-Type-MetricUsage-metricId"></a>
The metric this usage is for.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[A-Za-z0-9_-]+`   
Required: Yes

 ** quantity **   <a name="appmonetization-Type-MetricUsage-quantity"></a>
The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 22.  
Pattern: `(0|[1-9][0-9]{0,14})(\.[0-9]{1,6})?`   
Required: Yes

## See Also
<a name="API_MetricUsage_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/MetricUsage) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/MetricUsage) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/MetricUsage) 