feat(tsdb): increase 1d downsample resolution from 5min to 30s

This commit is contained in:
naiba
2026-02-16 02:18:57 +08:00
parent e61772e858
commit 4c1584dd5c
+2 -2
View File
@@ -48,7 +48,7 @@ func (p QueryPeriod) Duration() time.Duration {
}
// DownsampleInterval 返回降采样间隔
// 1d: 5分钟一个点 (288个点)
// 1d: 30秒一个点 (2880个点)
// 7d: 30分钟一个点 (336个点)
// 30d: 2小时一个点 (360个点)
func (p QueryPeriod) DownsampleInterval() time.Duration {
@@ -58,7 +58,7 @@ func (p QueryPeriod) DownsampleInterval() time.Duration {
case Period30Days:
return 2 * time.Hour
default:
return 5 * time.Minute
return 30 * time.Second
}
}