// endpointString = createMediationKeyString(ENDPOINT, direction, FAULT_COUNT, endpoint);
// ints = client.getMediationStatHourlySummaryInt(serverId, endpointString, startTime, endTime);
// intVal = BAMMath.max(ints) - BAMMath.min(ints);
// statistic.setFaultCount(intVal);
BAMCalendar prevStartTime = BAMCalendar.getInstance(startTime);
prevStartTime.add(BAMCalendar.HOUR, -24);
BAMCalendar prevEndTime = BAMCalendar.getInstance(endTime);
prevEndTime.add(BAMCalendar.HOUR, -1);
endpointString = createMediationKeyString(ENDPOINT, direction, CUMULATIVE_COUNT, endpoint);
intsThisHour = client.getDataForMediationMaxCount(serverId, endpointString, startTime, endTime);
intsPrevHour = client.getDataForMediationMaxCount(serverId, endpointString, prevStartTime, prevEndTime);