You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

metrics.go 386 B

1234567891011121314
  1. package cron
  2. import (
  3. "github.com/rs/zerolog/log"
  4. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
  5. "gitlink.org.cn/jcce-pcm/pcm-coordinator/pkg/models"
  6. )
  7. func ClearMetricsData(svc *svc.ServiceContext) {
  8. tx := svc.DbEngin.Where("DATE(created_time) <= DATE(DATE_SUB(NOW(),INTERVAL 3 DAY))").Delete(&models.ScNodeAvailInfo{})
  9. if tx.Error != nil {
  10. log.Err(tx.Error)
  11. }
  12. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.