Welcome to Portkey Forum

Updated 5 days ago

report or summary of emails containing specific string and total cost

Can I get a report or summary of all the emails that contain a specific string and the total cost?
For instance
Get all requests containing STRING.com in the _user
Sum all the requests' costs
s
G
3 comments
hey @giblix, yes you can filter using metadata and export the logs using the analytics API (it's in BETA, you can ping @Vrushank | Portkey or @Manjot | Portkey for access), you'd have to sum up the costs yourself though I'm afraid. https://portkey.ai/docs/api-reference/admin-api/control-plane/analytics/groups-paginated-data/get-metadata-grouped-data

If you're on the enterprise version, there's also a prometheus dashboard exposed at metrics where you can execute your own queries on the analytics data
Is there a way to export more than what i see?
I see page 1 out of 20 and it lets me export only the page im looking at...
you have to use the API for it
Add a reply
Sign up and join the conversation on Discord