public void setDimensions(Map<String, String> dimensions) {
        this.dimensions = new HashMap<String, String>();
        this.dimensions.putAll(dimensions);
    }
set dimensions

@param dimensions the dimensions to set
inlong-common/src/main/java/org/apache/inlong/common/metric/MetricItem.java