public String getEventPattern() {
        return this.eventPattern;
    }
<p>
The EventBridge event pattern that defines how the metric is recorded.
</p>
<p>
For more information about EventBridge event patterns, see <a
href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html">Amazon EventBridge event
patterns</a>.
</p>
<p>
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For
example: '{"key": "value"}'.
</p>

@return The EventBridge event pattern that defines how the metric is recorded.</p>
        <p>
        For more information about EventBridge event patterns, see <a
        href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html">Amazon EventBridge
        event patterns</a>.
aws-java-sdk-cloudwatchevidently/src/main/java/com/amazonaws/services/cloudwatchevidently/model/MetricDefinition.java