status.go 446 B

1234567891011121314
  1. package pricingmodel
  2. import "time"
  3. // Status holds the diagnostic state of a runner and is suitable for HTTP serialization.
  4. type Status struct {
  5. SourceKey string `json:"sourceKey"`
  6. CreatedAt time.Time `json:"createdAt"`
  7. LastRun time.Time `json:"lastRun"`
  8. NextRun time.Time `json:"nextRun"`
  9. RefreshRate string `json:"refreshRate"`
  10. Runs int `json:"runs"`
  11. LastError string `json:"lastError,omitempty"`
  12. }