Module config set override is not working (#3283)
* set Override is not working. * Submodule update * Add header.
This commit is contained in:
parent
db9759fcc2
commit
8888029e9a
|
|
@ -47,11 +47,24 @@ public class StorageModuleElasticsearchConfig extends ModuleConfig {
|
|||
private int otherMetricsDataTTL = 0;
|
||||
@Setter private int monthMetricsDataTTL = 18;
|
||||
|
||||
public void setOtherMetricsDataTTL(int otherMetricsDataTTL) {
|
||||
public int getMinuteMetricsDataTTL() {
|
||||
if (otherMetricsDataTTL > 0) {
|
||||
minuteMetricsDataTTL = otherMetricsDataTTL;
|
||||
hourMetricsDataTTL = otherMetricsDataTTL;
|
||||
dayMetricsDataTTL = otherMetricsDataTTL;
|
||||
return otherMetricsDataTTL;
|
||||
}
|
||||
return minuteMetricsDataTTL;
|
||||
}
|
||||
|
||||
public int getHourMetricsDataTTL() {
|
||||
if (otherMetricsDataTTL > 0) {
|
||||
return otherMetricsDataTTL;
|
||||
}
|
||||
return hourMetricsDataTTL;
|
||||
}
|
||||
|
||||
public int getDayMetricsDataTTL() {
|
||||
if (otherMetricsDataTTL > 0) {
|
||||
return otherMetricsDataTTL;
|
||||
}
|
||||
return dayMetricsDataTTL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 3e78e9cc16f1749ef3a4deb9598394357d8b161d
|
||||
Subproject commit 17040efd79a973b6a3c84a70b1a401cd92ff9ba4
|
||||
Loading…
Reference in New Issue