stackdriver: adds default value for alignment period
This commit is contained in:
1 parent
71b1f7f8fd
commit
109f00f584
1 file changed
+1
-1
@@ -158,7 +158,7 @@ func setAggParams(params *url.Values, query *tsdb.Query) {
|
||||
secondaryAggregation = "REDUCE_NONE"
|
||||
}
|
||||
|
||||
if alignmentPeriod == "auto" {
|
||||
if alignmentPeriod == "auto" || alignmentPeriod == "" {
|
||||
alignmentPeriodValue := int(math.Max(float64(query.IntervalMs), 60.0))
|
||||
alignmentPeriod = "+" + strconv.Itoa(alignmentPeriodValue) + "s"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user