ing
This commit is contained in:
parent
57f8435190
commit
faa819e538
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user