mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-02 20:16:36 +08:00
可以自行设定指标数据保留时间
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
package models
|
||||
package models_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/db/models"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
_ "github.com/iwind/TeaGo/bootstrap"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMetricStatDAO_Clean(t *testing.T) {
|
||||
var dao = models.NewMetricStatDAO()
|
||||
t.Log(dao.Clean(nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user