use of org.apache.servicecomb.metrics.core.publish.model.invocation.OperationPerf in project incubator-servicecomb-java-chassis by apache.
the class PublishUtils method addOperationPerfGroups.
public static void addOperationPerfGroups(OperationPerfGroups operationPerfGroups, String transport, String operation, MeasurementNode statusNode) {
Map<String, OperationPerfGroup> statusMap = operationPerfGroups.getGroups().computeIfAbsent(transport, tn -> {
return new HashMap<>();
});
OperationPerfGroup group = statusMap.computeIfAbsent(statusNode.getName(), status -> {
return new OperationPerfGroup(transport, status);
});
OperationPerf operationPerf = createOperationPerf(operation, statusNode);
group.addOperationPerf(operationPerf);
}
Aggregations