if(aggrRule==null){
aggrRule=VarUtils.AGGREGATION_DEFAULT_METRIC;
}
patternStr = rulesMap.get( (aggrRule==null || aggrRule.length()==0 ) ?VarUtils.AGGREGATION_DEFAULT_METRIC:aggrRule);
AggregateData aggregateData = ada.aggregateMetricsWithGroupingNew(
nodeGroupType, agentCommandType, timeStamp, rawDataSourceType, patternStr);
String pieDataStr = null;
boolean humanReadFriendly = false;
List<AggregationValueMetadata> avmList = aggregateData
.getResponseToMetadataList();
if(!textOnly){
pieDataStr = aggregateData.getValueCountJSNumber2D(humanReadFriendly);
render(page, topnav, pieDataStr, avmList, agentCommandType,
nodeGroupType, lastRefreshed, patternStr, timeStamp, rawDataSourceType, rulesMap, aggrRule);
}else{
String avmListString = AgentUtils.renderJson(avmList);
humanReadFriendly = true;
pieDataStr = aggregateData.getValueCountJSNumber2D(humanReadFriendly);
StringBuilder finalResponse = new StringBuilder( "//SUPERMAN*****OVERVIEW -- AGGREGATION SUMMARY - START *************\n\n");
finalResponse.append(pieDataStr);
finalResponse.append( "\n\n//SUPERMAN*****OVERVIEW -- AGGREGATION SUMMARY - END *************\n\n");