Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added Storage Object Request template

Rodrigo Mansueli Nunescd3491510dff
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
index 1ad8909622c..a3672b85662 100644
--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts
+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
@@ -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 } = {