Closed mohamed-abdelrhman closed 1 year ago
Currently each endpoint hit stored incrementally in the activity table in the counter field
store each hit timestamp
change the activity table to the following format
type Activity struct { ID string `gorm:"uniqueIndex"` EndpointId string timestamp int64 }
later we can aggregate the number of hits with the timestamp filed daily, weekly or monthly
Issue Description
Background
Currently each endpoint hit stored incrementally in the activity table in the counter field
Requirements
store each hit timestamp
Proposed Changes
change the activity table to the following format
later we can aggregate the number of hits with the timestamp filed daily, weekly or monthly