added Storage Object Request template

This commit is contained in:
Rodrigo Mansueli Nunes committed 2023-02-24 10:58:27 -03:00
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 } = {