mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
added Storage Object Request template
This commit is contained in:
1 parent
403727488e
commit
cd3491510d
1 file changed
+22
@@ -200,6 +200,28 @@ limit 100
|
||||
`,
|
||||
for: ['database'],
|
||||
},
|
||||
{
|
||||
label: 'Storage Object Requests',
|
||||
description: 'Number of requests done on Storage Objects',
|
||||
mode: 'custom',
|
||||
searchString: `select
|
||||
r.method as http_verb,
|
||||
r.path as filepath,
|
||||
count(*) as num_requests
|
||||
from edge_logs
|
||||
cross join unnest(metadata) as m
|
||||
cross join unnest(m.request) AS r
|
||||
cross join unnest(r.headers) AS h
|
||||
where
|
||||
path like '%rest/v1/object%'
|
||||
group by
|
||||
r.path, r.method
|
||||
order by
|
||||
timestamp desc
|
||||
limit 100
|
||||
`,
|
||||
for: ['api'],
|
||||
},
|
||||
]
|
||||
|
||||
export const LOG_TYPE_LABEL_MAPPING: { [k: string]: string } = {
|
||||
|
||||
Reference in new issue
Block a user