1
|
package eu.dnetlib.uoamonitorservice.entities;
|
2
|
|
3
|
import java.util.List;
|
4
|
import java.util.Map;
|
5
|
|
6
|
enum IndicatorPathType {
|
7
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
8
|
table, bar, column, pie, line, other;
|
9
|
}
|
10
|
|
11
|
public class IndicatorPath {
|
12
|
private IndicatorPathType type; // for charts is type of chart {table, bar, column, etc}
|
13
|
private String source; // for numbers is the service {statistics, search, metrics} for charts is the tool {stats-tool,old,metrics, fake}
|
14
|
private String url;
|
15
|
private List<String> jsonPath;
|
16
|
private String chartObject;
|
17
|
private Map<String, String> parameters;
|
18
|
private Map<String, Map<String, String>> filters;
|
19
|
|
20
|
public IndicatorPathType getType() {
|
21
|
return type;
|
22
|
}
|
23
|
|
24
|
public void setType(IndicatorPathType type) {
|
25
|
this.type = type;
|
26
|
}
|
27
|
|
28
|
public String getSource() {
|
29
|
return source;
|
30
|
}
|
31
|
|
32
|
public void setSource(String source) {
|
33
|
this.source = source;
|
34
|
}
|
35
|
|
36
|
public String getUrl() {
|
37
|
return url;
|
38
|
}
|
39
|
|
40
|
public void setUrl(String url) {
|
41
|
this.url = url;
|
42
|
}
|
43
|
|
44
|
public List<String> getJsonPath() {
|
45
|
return jsonPath;
|
46
|
}
|
47
|
|
48
|
public void setJsonPath(List<String> jsonPath) {
|
49
|
this.jsonPath = jsonPath;
|
50
|
}
|
51
|
|
52
|
public String getChartObject() {
|
53
|
return chartObject;
|
54
|
}
|
55
|
|
56
|
public void setChartObject(String chartObject) {
|
57
|
this.chartObject = chartObject;
|
58
|
}
|
59
|
|
60
|
public Map<String, String> getParameters() {
|
61
|
return parameters;
|
62
|
}
|
63
|
|
64
|
public void setParameters(Map<String, String> parameters) {
|
65
|
this.parameters = parameters;
|
66
|
}
|
67
|
|
68
|
public Map<String, Map<String, String>> getFilters() {
|
69
|
return filters;
|
70
|
}
|
71
|
|
72
|
public void setFilters(Map<String, Map<String, String>> filters) {
|
73
|
this.filters = filters;
|
74
|
}
|
75
|
}
|