

# PublishMetricAction
<a name="API_PublishMetricAction"></a>

Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.

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

 ** Dimensions **   <a name="networkfirewall-Type-PublishMetricAction-Dimensions"></a>
  
Type: Array of [Dimension](API_Dimension.md) objects  
Array Members: Fixed number of 1 item.  
Required: Yes

## See Also
<a name="API_PublishMetricAction_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/network-firewall-2020-11-12/PublishMetricAction) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/network-firewall-2020-11-12/PublishMetricAction) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/network-firewall-2020-11-12/PublishMetricAction) 