Hi, is there a quick way of seeing the total numbe...
# support
f
Hi, is there a quick way of seeing the total number of events I have used in the last few month? On the billing part of the settings can only see current cycle?
s
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
Hi @future-honey-48082 You can only see current cycle volume or last 30 days from a specific source/destination.
f
Thank you for this. In the account setting page there is a current billing period with the total number of events is there any way to get last cycles values?
q
Let me see if I can find that
f
Thank you
r
Hi Sam, I don't believe you can change the billing cycle directly through the UI but you could potentially try and get the information that you're looking for through the API. When you open the billing page you'll notice an API call which calls out to eventUsageStats(https://api.rudderstack.com/workspaces/{WorkSpaceId}/eventUsageStats). If you replace the slug(WorkSpaceId) with your actual workspace ID and a valid access token it will give you the same information that you see on the UI. The question is, are there any parameters that you can pass into that API call to give you information based on a specific timeframe? Perhaps that's something you can check on your side @quiet-wolf-72320
If it's not possible to get that information through the API either then I would assume that your next best bet is likely a warehouse destination(if you happen to have one attached to your source within RudderStack) where you can easily filter the count based on any of the timestamp properties that the events have on them
f
@red-engineer-90710 Thank you very much that helped. The eventUsageStats endpoint wasn’t able to have parameters but the totalEvents (https://api.rudderstack.com/workspaces/{WorkSpaceID}/totalEvents?endDate=2022-12-01T09:00:00Z&startDate=2022-11-29T09:00:00Z was able to have the parameters.
👍 1
q
Thank you @red-engineer-90710
👍 1
Just for the info, startDate - endDate parameter is allowed only for max 60 days