File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
backend/pkg/api/data_access Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func (d *DataAccessService) GetHealthz(ctx context.Context, showAll bool) types.
5050 emitter ASC,
5151 run_id ASC,
5252 insert_id DESC
53- ), latest_report_per_run as (
53+ ), latest_report_per_emitter as (
5454 SELECT
5555 event_id,
5656 emitter,
@@ -64,20 +64,8 @@ func (d *DataAccessService) GetHealthz(ctx context.Context, showAll bool) types.
6464 active_reports
6565 GROUP BY
6666 event_id,
67- emitter,
68- run_id
67+ emitter
6968 order by insert_id desc
70- ), latest_report_per_status as (
71- select
72- event_id,
73- emitter,
74- status,
75- any(inserted_at) as inserted_at,
76- any(expires_at) as expires_at,
77- any(timeouts_at) as timeouts_at,
78- any(metadata) AS metadata
79- from latest_report_per_run
80- group by event_id, emitter, status
8169 )
8270 SELECT
8371 event_id,
@@ -97,7 +85,7 @@ func (d *DataAccessService) GetHealthz(ctx context.Context, showAll bool) types.
9785 )
9886 ) as result
9987 FROM
100- latest_report_per_status
88+ latest_report_per_emitter
10189 GROUP BY
10290 event_id,
10391 status
You can’t perform that action at this time.
0 commit comments