Closed chinghongfang closed 1 year ago
實做一個新的統計量 Sum ,用來計算數字的加總,並提供有時間區間加總的算法。
Sum
因為 "取最近時間區間 (time window) 的值" 這個用法和 Avg.byTime() 相似,所以將共通的部份取出來另外完成了 WindowedValue 。
Avg.byTime()
WindowedValue
這個功能看起來不錯,不過請問一下用途是什麼?是哪個實驗或cost會用到嗎
不過請問一下用途是什麼?是哪個實驗或cost會用到嗎
這個統計量想用在 MetricStore, MetricFetcher 中。
MetricStore
MetricFetcher
預計要新增以下指標,方便觀察 metric 收集的效率:
實做一個新的統計量
Sum
,用來計算數字的加總,並提供有時間區間加總的算法。因為 "取最近時間區間 (time window) 的值" 這個用法和
Avg.byTime()
相似,所以將共通的部份取出來另外完成了WindowedValue
。