public MetricTransformation withDimensions(java.util.Map<String, String> dimensions) {
        setDimensions(dimensions);
        return this;
    }
<p>
The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.
</p>
<important>
<p>
Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not
specify high-cardinality fields such as <code>IPAddress</code> or <code>requestID</code> as dimensions. Each
different value found for a dimension is treated as a separate metric and accrues charges as a separate custom
metric.
</p>
<p>
CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified
dimensions within a certain amount of time. This helps to prevent accidental high charges.
</p>
<p>
You can also set up a billing alarm to alert you if your charges are higher than expected. For more information,
see <a href=
"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html">
Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
</p>
</important>

@param dimensions
       The fields to use as dimensions for the metric. One metric filter can include as many as three
       dimensions.</p> <important>
       <p>
       Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do
       not specify high-cardinality fields such as <code>IPAddress</code> or <code>requestID</code> as
       dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges
       as a separate custom metric.
       </p>
       <p>
       CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your
       specified dimensions within a certain amount of time. This helps to prevent accidental high charges.
       </p>
       <p>
       You can also set up a billing alarm to alert you if your charges are higher than expected. For more
       information, see <a href=
       "https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html"
       > Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/MetricTransformation.java