APISonar


scouter.lang.pack.PerfCounterPack.time

> scouter > lang > pack > PerfCounterPack > time
scouter APIs lang APIs pack APIs PerfCounterPack APIs time APIs

Example 1
private static PerfCounterPack extractPerfCounterPack(JSONArray perfJson, String objName) {
		PerfCounterPack perfPack = new PerfCounterPack();
		perfPack.time = System.currentTimeMillis();
		perfPack.timetype = TimeTypeEnum.REALTIME;
		perfPack.objName = objName;
		for (int i = 0; i < perfJson.size(); i++) {
			JSONObject perf = (JSONObject) perfJson.get(i);
			String name = (String) perf.get("name");
			Number value = (Number) perf.get("value");
			perfPack.data.put(name, new FloatValue(value.floatValue()));
		}
		return perfPack;
	}