feat(stats): add alerts to global admin stats

This commit is contained in:
bergquist
2016-11-11 14:04:38 +01:00
parent ad97db937c
commit a87fd11f26
3 changed files with 10 additions and 1 deletions

View File

@@ -89,7 +89,11 @@ func GetAdminStats(query *m.GetAdminStatsQuery) error {
(
SELECT COUNT(DISTINCT ` + dialect.Quote("dashboard_id") + ` )
FROM ` + dialect.Quote("star") + `
) AS starred_db_count
) AS starred_db_count,
(
SELECT COUNT(*)
FROM ` + dialect.Quote("alert") + `
) AS alert_count
`
var stats m.AdminStats