feat(stats_usage): add stats about alerts

This commit is contained in:
bergquist
2016-11-11 13:57:11 +01:00
parent 08429d9a08
commit ad97db937c
3 changed files with 7 additions and 1 deletions

View File

@@ -39,7 +39,11 @@ func GetSystemStats(query *m.GetSystemStatsQuery) error {
(
SELECT COUNT(*)
FROM ` + dialect.Quote("playlist") + `
) AS playlist_count
) AS playlist_count,
(
SELECT COUNT(*)
FROM ` + dialect.Quote("alert") + `
) AS alert_count
`
var stats m.SystemStats