metrics.go 504 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "time"
  4. )
  5. type Metrics struct {
  6. ID string `json:"id"`
  7. // TODO: Add Metrics fields
  8. CreatedAt time.Time `json:"created_at"`
  9. UpdatedAt time.Time `json:"updated_at"`
  10. }
  11. type MetricSample struct {
  12. ID string `json:"id"`
  13. MetricID string `json:"metric_id"`
  14. MetricName string `json:"metric_name"`
  15. Value float64 `json:"value"`
  16. Timestamp time.Time `json:"timestamp"`
  17. CreatedAt time.Time `json:"created_at"`
  18. UpdatedAt time.Time `json:"updated_at"`
  19. }