Business events as Events

This commit is contained in:
Jan Kvetina 2021-12-26 13:35:14 +01:00
parent fbde665afe
commit 4903aef586

View File

@ -28,7 +28,7 @@ l AS (
b AS ( b AS (
SELECT SELECT
l.session_id, l.session_id,
COUNT(*) AS count_business COUNT(*) AS count_events
FROM logs_events l FROM logs_events l
JOIN s JOIN s
ON l.created_at >= s.today ON l.created_at >= s.today
@ -45,7 +45,7 @@ SELECT
l.count_requests, l.count_requests,
l.count_logs, l.count_logs,
l.count_errors, l.count_errors,
b.count_business, b.count_events,
-- --
s.created_at, s.created_at,
s.updated_at, s.updated_at,