Upgrade improvements
This commit is contained in:
parent
302f512be8
commit
e602c98bc1
@ -128,9 +128,9 @@ BEGIN
|
|||||||
tenant_id,
|
tenant_id,
|
||||||
ts,
|
ts,
|
||||||
entity_id,
|
entity_id,
|
||||||
body::json ->> 'server',
|
body ->> 'server',
|
||||||
(body::json ->> 'messagesProcessed')::bigint,
|
(body ->> 'messagesProcessed')::bigint,
|
||||||
(body::json ->> 'errorsOccurred')::bigint
|
(body ->> 'errorsOccurred')::bigint
|
||||||
FROM
|
FROM
|
||||||
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
||||||
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'STATS' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'STATS' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
||||||
@ -142,10 +142,10 @@ BEGIN
|
|||||||
tenant_id,
|
tenant_id,
|
||||||
ts,
|
ts,
|
||||||
entity_id,
|
entity_id,
|
||||||
body::json ->> 'server',
|
body ->> 'server',
|
||||||
body::json ->> 'event',
|
body ->> 'event',
|
||||||
(body::json ->> 'success')::boolean,
|
(body ->> 'success')::boolean,
|
||||||
body::json ->> 'error'
|
body ->> 'error'
|
||||||
FROM
|
FROM
|
||||||
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
||||||
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'LC_EVENT' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'LC_EVENT' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
||||||
@ -157,9 +157,9 @@ BEGIN
|
|||||||
tenant_id,
|
tenant_id,
|
||||||
ts,
|
ts,
|
||||||
entity_id,
|
entity_id,
|
||||||
body::json ->> 'server',
|
body ->> 'server',
|
||||||
body::json ->> 'method',
|
body ->> 'method',
|
||||||
body::json ->> 'error'
|
body ->> 'error'
|
||||||
FROM
|
FROM
|
||||||
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
(select id, tenant_id, ts, entity_id, to_safe_json(body) as body
|
||||||
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'ERROR' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
FROM event WHERE ts >= start_ts_in_ms and ts < end_ts_in_ms AND event_type = 'ERROR' AND to_safe_json(body) ->> 'server' IS NOT NULL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user