public java.util.Map<String, String> getDimensions() {
        if (dimensions == null) {
            dimensions = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        return dimensions;
    }
<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>

@return 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>
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/MetricTransformation.java