report.go 809 B

123456789101112131415161718192021222324252627
  1. package archive
  2. import (
  3. "encoding/json"
  4. "time"
  5. )
  6. // 1 耗时 2 耗时(30分钟) 3 视频进审/过审分布
  7. var (
  8. ReportArchiveRound = map[int8]string{30: "30", 40: "40", 90: "90"}
  9. ReportTypeTookMinute = int8(1)
  10. ReportTypeTookHalfHour = int8(2)
  11. ReportTypeVideoAudit = int8(3)
  12. ReportTypeArcMoveType = int8(4)
  13. ReportTypeArcRoundFlow = int8(5)
  14. ReportTypeXcode = int8(6) //video sd_finish,hd_finish,dispatch take time
  15. ReportTypeTraffic = int8(7) //视频审核耗时统计。10分钟聚合的一转、一审、二转、分发耗时结果
  16. )
  17. // Report struct
  18. type Report struct {
  19. ID int64 `json:"-"`
  20. TypeID int8 `json:"type"`
  21. Content json.RawMessage `json:"content"`
  22. CTime time.Time `json:"ctime"`
  23. MTime time.Time `json:"mtime"`
  24. }