com.alogic.metrics.impl.DefaultDimensions Maven / Gradle / Ivy
package com.alogic.metrics.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.lang3.StringUtils;
import com.alogic.metrics.Dimensions;
import com.anysoft.util.JsonTools;
/**
* 缺省的Dimensions实现
* @author duanyy
*
* @since 1.6.6.13
*
*/
public class DefaultDimensions implements Dimensions{
/**
* 维度列表
*/
protected Map dims = new HashMap(5);
@Override
public void toJson(Map json) {
if (json != null){
List