uoa-monitor-service/src/main/java/eu/dnetlib/uoamonitorservice/entities/IndicatorPath.java

77 lines
1.8 KiB
Java

package eu.dnetlib.uoamonitorservice.entities;
import java.util.List;
import java.util.Map;
enum IndicatorPathType {
// Do not rename or remove existring values. This may cause problems with already stored values in DB
table, bar, column, pie, line, other;
}
public class IndicatorPath {
private IndicatorPathType type; // for charts is type of chart {table, bar, column, etc}
private String source; // for numbers is the service {statistics, search, metrics} for charts is the tool {stats-tool,old,metrics, fake}
private String url;
private List<String> jsonPath;
private String chartObject;
private Map<String, String> parameters;
private Map<String, String> filters;
//private Map<String, Map<String, String>> filters;
public IndicatorPathType getType() {
return type;
}
public void setType(IndicatorPathType type) {
this.type = type;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public List<String> getJsonPath() {
return jsonPath;
}
public void setJsonPath(List<String> jsonPath) {
this.jsonPath = jsonPath;
}
public String getChartObject() {
return chartObject;
}
public void setChartObject(String chartObject) {
this.chartObject = chartObject;
}
public Map<String, String> getParameters() {
return parameters;
}
public void setParameters(Map<String, String> parameters) {
this.parameters = parameters;
}
public Map<String, String> getFilters() {
return filters;
}
public void setFilters(Map<String, String> filters) {
this.filters = filters;
}
}