@Override
public void action() {
boolean withAlertsOnlyValue = getWithAlertsOnlyValue();
RuleCheckEvent.Status statusValue = getStatusValue(withAlertsOnlyValue);
TimeInterval currentTimeIntervalValue = getCurrentTimeIntervalValue();
int limitValue = getLimitValue();
Long siteIdValue = getSiteIdValue();
long intervalEnd = System.currentTimeMillis();
long intervalBegin = intervalEnd - currentTimeIntervalValue.getValueMillis();
List<RuleCheckEvent> eventsForPeriod =
getEventsForPeriod(siteIdValue, statusValue, intervalEnd, intervalBegin);
List<EventDto> events = new ArrayList<>(limitValue);