Skip to content
Snippets Groups Projects
Commit d447fac0 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Provide similar graphs in all document types.

Fixes #27981.
parent 87abfdd1
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@
- Include graph history objects even if the time period they cover
are already contained in other graph history objects with shorter
time periods and higher data resolutions.
- Remove "3 days" and "1 week" bandwidth graphs, change "1 month"
bandwidth graph to a data resolution of 24 hours, add back "1
month" clients graph, and remove "1 week" uptime and weights
graphs.
# Changes in version 7.0-1.2?.? - 20??-??-??
......
......@@ -64,25 +64,19 @@ public class BandwidthDocumentWriter implements DocumentWriter {
}
private String[] graphNames = new String[] {
"3_days",
"1_week",
"1_month",
"6_months",
"1_year",
"5_years" };
private Period[] graphIntervals = new Period[] {
Period.ofDays(3),
Period.ofWeeks(1),
Period.ofMonths(1),
Period.ofMonths(6),
Period.ofYears(1),
Period.ofYears(5) };
private long[] dataPointIntervals = new long[] {
DateTimeHelper.FIFTEEN_MINUTES,
DateTimeHelper.ONE_HOUR,
DateTimeHelper.FOUR_HOURS,
DateTimeHelper.ONE_DAY,
DateTimeHelper.ONE_DAY,
DateTimeHelper.TWO_DAYS,
DateTimeHelper.TEN_DAYS };
......
......@@ -78,16 +78,19 @@ public class ClientsDocumentWriter implements DocumentWriter {
}
private String[] graphNames = new String[] {
"1_month",
"6_months",
"1_year",
"5_years" };
private Period[] graphIntervals = new Period[] {
Period.ofMonths(1),
Period.ofMonths(6),
Period.ofYears(1),
Period.ofYears(5) };
private long[] dataPointIntervals = new long[] {
DateTimeHelper.ONE_DAY,
DateTimeHelper.ONE_DAY,
DateTimeHelper.TWO_DAYS,
DateTimeHelper.TEN_DAYS };
......
......@@ -77,21 +77,18 @@ public class UptimeDocumentWriter implements DocumentWriter {
}
private String[] graphNames = new String[] {
"1_week",
"1_month",
"6_months",
"1_year",
"5_years" };
private Period[] graphIntervals = new Period[] {
Period.ofWeeks(1),
Period.ofMonths(1),
Period.ofMonths(6),
Period.ofYears(1),
Period.ofYears(5) };
private long[] dataPointIntervals = new long[] {
DateTimeHelper.ONE_HOUR,
DateTimeHelper.FOUR_HOURS,
DateTimeHelper.TWELVE_HOURS,
DateTimeHelper.TWO_DAYS,
......
......@@ -53,21 +53,18 @@ public class WeightsDocumentWriter implements DocumentWriter {
}
private String[] graphNames = new String[] {
"1_week",
"1_month",
"6_months",
"1_year",
"5_years" };
private Period[] graphIntervals = new Period[] {
Period.ofWeeks(1),
Period.ofMonths(1),
Period.ofMonths(6),
Period.ofYears(1),
Period.ofYears(5) };
private long[] dataPointIntervals = new long[] {
DateTimeHelper.ONE_HOUR,
DateTimeHelper.FOUR_HOURS,
DateTimeHelper.ONE_DAY,
DateTimeHelper.TWO_DAYS,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment