mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-05-06 13:48:52 +00:00
feat(tsdb): increase 1d downsample resolution from 5min to 30s
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user