appd-process/src/main/java/com/signalfx/appd/process/info/MetricInfo.java
public MetricTimeSeries getMetricTimeSeries(String actualMetricPath) {
        Map<String, String> actualDimensions = new HashMap<>();

        actualDimensions.putAll(dimensions);

        String[] path = actualMetricPath.split("\\|");
        for (int i = 0; i < dimensionsPath.length; i++) {
            if ("-".equals(dimensionsPath[i])) {
                continue;
            }
            actualDimensions.put(dimensionsPath[i], path[i]);
        }
        return new MetricTimeSeries(path[path.length - 1], actualDimensions);
    }
public MetricTimeSeries getMetricTimeSeries(String actualMetricPath) {
        Map<String, String> actualDimensions = new HashMap<>();

        actualDimensions.putAll(dimensions);

        String[] path = actualMetricPath.split("\\|");
        for (int i = 0; i < dimensionsPath.length; i++) {
            if ("-".equals(dimensionsPath[i])) {
                continue;
            }
            actualDimensions.put(dimensionsPath[i], path[i]);
        }
        return new MetricTimeSeries(path[path.length - 1], actualDimensions);
    }
public MetricTimeSeries getMetricTimeSeries ( String actualMetricPath ) { Map < String , String > actualDimensions = new HashMap <> ( ) ; actualDimensions . putAll ( dimensions ) ; String [ ] path = actualMetricPath . split ( "\\|" ) ; for ( int i = 0 ; i < dimensionsPath . length ; i ++ ) { if ( "-" . equals ( dimensionsPath [ i ] ) ) { continue ; } actualDimensions . put ( dimensionsPath [ i ] , path [ i ] ) ; } return new MetricTimeSeries ( path [ path . length - 1 ] , actualDimensions ) ; }
Create a {@link MetricTimeSeries} for a given metric path. It will use the given metric path
as dimensions mapping and add extra dimensions as specified in the MetricInfo.

@param actualMetricPath
metric path used to mapped to dimensions in metric time series.
@return {@link MetricTimeSeries}
Create a { @link MetricTimeSeries } for a given metric path . It will use the given metric path as dimensions mapping and add extra dimensions as specified in the MetricInfo .