List<Period> periodList = periods(component.projectUuid(), session);
Integer periodIndex = request.paramAsInt(PARAM_PERIOD);
Date periodDate = periodDate(periodIndex, periodList);
RulesAggregation rulesAggregation = issueService.findRulesByComponent(component.key(), periodDate, session);
Multiset<String> severitiesAggregation = issueService.findSeveritiesByComponent(component.key(), periodDate, session);
Map<String, MeasureDto> measuresByMetricKey = measuresByMetricKey(component, session);
appendComponent(json, component, userSession, session);
appendPermissions(json, component, userSession);