feat(chalice): changed custom_metrics
This commit is contained in:
parent
ad11ba4d06
commit
b60251a0cc
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ def get(metric_id, project_id, user_id, flatten=True):
|
||||||
with pg_client.PostgresClient() as cur:
|
with pg_client.PostgresClient() as cur:
|
||||||
cur.execute(
|
cur.execute(
|
||||||
cur.mogrify(
|
cur.mogrify(
|
||||||
"""SELECT *
|
"""SELECT *, default_config AS config
|
||||||
FROM metrics
|
FROM metrics
|
||||||
LEFT JOIN LATERAL (SELECT COALESCE(jsonb_agg(metric_series.* ORDER BY index),'[]'::jsonb) AS series
|
LEFT JOIN LATERAL (SELECT COALESCE(jsonb_agg(metric_series.* ORDER BY index),'[]'::jsonb) AS series
|
||||||
FROM metric_series
|
FROM metric_series
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue