Map<String, Object> jsonMap() {
Map<String, Object> map = new HashMap<String, Object>();
map.put(eventTag, eventName);
if (!AVUtils.isBlankString(labelName)) {
map.put(labelTag, labelName);
} else {
map.put(labelTag, eventName);
}
if (!AVUtils.isBlankString(primaryKey)) {
map.put(primaryKeyTag, primaryKey);
}
if (accumulation > 1) {
map.put(accTag, accumulation);
}
if (attributes.size() > 0) {
try {
map.put(attributesTag, attributes);
} catch (Exception exception) {
exception.printStackTrace();
}
}
map.put("du", myDuration());
map.put("ts", duration.getCreateTimeStamp());
return map;
}