mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Build rest endpoint to read service stats
- get stats by service id - returns a list of stats objects Not paginated - have 1 row per day.
This commit is contained in:
@@ -107,8 +107,8 @@ class ApiKey(db.Model):
|
||||
)
|
||||
|
||||
|
||||
class ServiceNotificationStats(db.Model):
|
||||
__tablename__ = 'service_notification_stats'
|
||||
class NotificationStatistics(db.Model):
|
||||
__tablename__ = 'notification_statistics'
|
||||
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
day = db.Column(db.String(255), nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user