
com.centurylink.mdw.model.report.Insight Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdw-common Show documentation
Show all versions of mdw-common Show documentation
MDW is a microservices based workflow framework
package com.centurylink.mdw.model.report;
import com.centurylink.mdw.model.Jsonable;
import org.json.JSONObject;
import java.time.Instant;
import java.util.LinkedHashMap;
public class Insight implements Jsonable {
public Insight(Instant time, LinkedHashMap elements) {
this.time = time;
this.elements = elements;
}
@SuppressWarnings("unused")
public Insight(JSONObject json) {
bind(json);
}
/**
* Temporal unit for the collected data (Day, Week, Month).
*/
private Instant time;
public Instant getTime() { return time; }
public void setTime(Instant time) { this.time = time; }
/**
* Ordered map of data elements (eg: Status to Count).
*/
private LinkedHashMap elements;
public LinkedHashMap getElements() { return elements; }
public void setElements(LinkedHashMap elements) { this.elements = elements; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy