diff --git a/pkg/calls/stats.go b/pkg/calls/stats.go index 06d6d90..7190c5c 100644 --- a/pkg/calls/stats.go +++ b/pkg/calls/stats.go @@ -11,6 +11,11 @@ type Stats struct { Interval StatsInterval `json:"interval"` } +type Stat struct { + Count int64 `json:"count"` + Time jsontypes.Time `json:"time"` +} + var ( ErrInvalidInterval = errors.New("invalid interval") ) @@ -39,8 +44,3 @@ func (si StatsInterval) IsValid() bool { return false } - -type Stat struct { - Count int64 `json:"count"` - Time jsontypes.Time `json:"time"` -}