update.go 383 B

1234567891011121314151617181920
  1. package metric
  2. import (
  3. "time"
  4. )
  5. type UpdateSet struct {
  6. Updates []Update `json:"updates"`
  7. }
  8. type Update struct {
  9. Name string `json:"name"`
  10. Labels map[string]string `json:"labels"`
  11. Value float64 `json:"value"`
  12. AdditionalInfo map[string]string `json:"additionalInfo"`
  13. }
  14. type Updater interface {
  15. Update([]Update, time.Time)
  16. }