This commit is contained in:
crusader 2018-05-11 14:13:16 +09:00
parent 57f8435190
commit faa819e538

View File

@ -11,6 +11,16 @@ public class Metric {
private Map<String, String> data;
private Date collectDate;
public Metric(String sensorConfigID, Map<String, String> data) {
this(sensorConfigID, data, new Date());
}
public Metric(String sensorConfigID, Map<String, String> data, Date collectDate) {
this.sensorConfigID = sensorConfigID;
this.data = data;
this.collectDate = collectDate;
}
/**
* @return the sensorConfigID
*/