public String getInterval() {
        return this.interval;
    }
<p>
The time interval or time window to get search metrics data. The time interval uses the time zone of your index.
You can view data in the following time windows:
</p>
<ul>
<li>
<p>
<code>THIS_WEEK</code>: The current week, starting on the Sunday and ending on the day before the current date.
</p>
</li>
<li>
<p>
<code>ONE_WEEK_AGO</code>: The previous week, starting on the Sunday and ending on the following Saturday.
</p>
</li>
<li>
<p>
<code>TWO_WEEKS_AGO</code>: The week before the previous week, starting on the Sunday and ending on the following
Saturday.
</p>
</li>
<li>
<p>
<code>THIS_MONTH</code>: The current month, starting on the first day of the month and ending on the day before
the current date.
</p>
</li>
<li>
<p>
<code>ONE_MONTH_AGO</code>: The previous month, starting on the first day of the month and ending on the last day
of the month.
</p>
</li>
<li>
<p>
<code>TWO_MONTHS_AGO</code>: The month before the previous month, starting on the first day of the month and
ending on last day of the month.
</p>
</li>
</ul>

@return The time interval or time window to get search metrics data. The time interval uses the time zone of your
        index. You can view data in the following time windows:</p>
        <ul>
        <li>
        <p>
        <code>THIS_WEEK</code>: The current week, starting on the Sunday and ending on the day before the current
        date.
        </p>
        </li>
        <li>
        <p>
        <code>ONE_WEEK_AGO</code>: The previous week, starting on the Sunday and ending on the following
        Saturday.
        </p>
        </li>
        <li>
        <p>
        <code>TWO_WEEKS_AGO</code>: The week before the previous week, starting on the Sunday and ending on the
        following Saturday.
        </p>
        </li>
        <li>
        <p>
        <code>THIS_MONTH</code>: The current month, starting on the first day of the month and ending on the day
        before the current date.
        </p>
        </li>
        <li>
        <p>
        <code>ONE_MONTH_AGO</code>: The previous month, starting on the first day of the month and ending on the
        last day of the month.
        </p>
        </li>
        <li>
        <p>
        <code>TWO_MONTHS_AGO</code>: The month before the previous month, starting on the first day of the month
        and ending on last day of the month.
        </p>
        </li>
@see Interval
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/GetSnapshotsRequest.java