Total stored calculation

Archived from the Transloadit support forum. Originally posted on January 28, 2014; details may be outdated, see our docs for current behavior. Original thread

Is there a way we can calculate how much an assembly results in storing in our bucket?

I’ve dug around in the docs but I can’t seem to work out how bytes_usage is calculated. Perhaps we can use this to work it out?

Hey Rue,

bytes_usage is the total cost of the assembly, according to our pricing scheme. You can find example calculations in the “Amazing Discounts” section on the pricing page: https://transloadit.com/pricing

Is there a way we can calculate how much an assembly results in storing in our bucket?

I am not sure I understand exactly. Would you like to figure out how many bytes are stored on S3 through Transloadit? As in how much Transloadit drives up your S3 bill?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Thanks Tim,

It’s more about bytes pushed to the bucket rather than costs. We trust you :slight_smile:

We charge our users on how much we store for them so it would be handy to know how much was added to their bucket at that point.

The link you suggested does explain how it’s calculated so thanks for that. Unfortunately, I don’t think that we can back-calculate the number from that as the robots are using output from each other as their input.

I think we can mark this as closed and we’ll have to look into another way of doing this. Unless you have any smart ideas?

Thanks

Hm I see. We’ll it’s pretty hard. However, we want to support being even more transparent about what each step in the assembly costs. I think this is what you need. It will just be a little difficult, because store steps are not advertised as their own steps. They will just alter the URLs of the results of the steps that were piped into them.

We’ll keep your use case in mind when we design this new system. I am sorry for the inconvenience that we cannot make this a lot easier for you right.

What you could do however is, cycle through the assembly result JSON and check if a step url’s contains “amazonaws.com”. If it does, it got stored. Then examine the file size (the “size” property, it’s in bytes). That should give you all the information you need right? Or do you also need how much we charged you for it?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos