Is there any way to set limit on Autodesk Forge Credit consumption? - autodesk-forge

I want to make sure that my app do not accidentally consume more credits than I can afford. How can I set such limits of weekly or monthly consumption?

Unfortunately billing cap is not yet possible so you will need to calculate your own spending per the pricing info here in combination with your own metering (see some open source projects here).
Will let Engineering know it is good to have the budgeting feature soon as possible and update this answer when it’s available.

Related

SKU Usage Per Session Or Per Object/Point On My Map?

I wish Google can break it down explaining this.
Says, if I was a manager with no developing code experience, there is no way that I could get the answer from Google support with the information provided for everyone.
I just don't understand how SKU usage work. Is it per point on a map that need SKU? Is it per whole set of points? If I have 30 points on my road destination, does that means that I used 30 SKU?
Can someone explain this?
If you are using Google Maps Platform APIs, please know that it uses a pay-as-you-go pricing model - meaning all APIs under Google Map Platform are billed by SKU. SKU is a combination of 'Product API' and 'Service or Function you used'. Each combination has a price and cost is calculated by SKU Usage x Price per each use.
So you will be billed depending on which services you are using. You can learn more about this on this link.
If you have more specific question with your project and to open a more personalized channel, I suggest that you create a support case to reach out with the support team.

Autodesk forge Usage Analytics won't show any data

I can't see Usage Analytics after using Derivative api.
I see only current credit balance on Autodesk account page, but I need informations about consumption of my apps separately.
Only for first Billing period it's shown detail data correctly (other two months are empty).
Unfortunately as of now our usage analytics still can’t break usage data down by apps yet - will let our Engineering know it’s good to have the breakdown available and update this answer when it’s there.

Is it possible to only avail Google's Geocoding Serve?

Ever since the new pricing took place, I've been confused with their documentation. I don't know where to see the details about this. (Or I'm not really looking properly, pardon me.)
So is it possible to only avail Google's Geocoding Service? Without the other services as a package.
Here is a link to the new billing documentation.
And here is the pricing page.
If I may try to simplify:
The Geocoding service you want to use now costs money to use.
The price is US $5 per 1,000 usage per month.
Google is freely giving every user 200$ worth of usage per month.
That means you can use the Geocoding approximately 40,000 times in a month and not have to pay anything.

New Google Maps Platform - How do I set my own usage limits?

In their notifications about the new billing system for the Google Maps APIs, Google very clearly state that you "can set usage limits to protect against unexpected increases". However, I haven't found any documentation regarding how to set these usage limits against an API key. Does anyone know how to do this?
To clarify, I would like to set my own daily usage limits against my API key to prevent it ever going over the free threshold for the static maps API.
I understand Google means that you can set your custom daily quota for each individual API in order to stay within free 200$, not a global per API key/project/Billing account daily quota. As far as I know there is no such thing as limit per daily usage in $ per Billing account yet.
There are alerts that you can establish in your Billing account and receive notifications if your usage is close to the defined budget. Have a look at the following document that explain how to set alerts:
https://cloud.google.com/billing/docs/how-to/budgets?hl=en
If your project uses only Static Maps API, it is easy to set daily quota to stay within 200$ per month. The price sheet says that you can have up to 100 000 free requests per month. That means 100 000 / 31 = 3225 free requests per day. You can go to Quota section of Static Maps API in your project
https://console.developers.google.com/google/maps-apis/apis/static-maps-backend.googleapis.com/quotas?project=YOUR_PROJECT_ID&duration=PT1H
and change your daily quota as shown in my screenshots
edit number requests per day
and you are set.
I hope this helps!
OK a bit late for reply, but maybe somebody else can use this.
You do get tons of free map hits etc.
If you don't link a pay account, then you are limited to 1 hit per day (that's google maps) which is useless. All other quotas like 10000 per 100 sec etc are secondary to the 1 hit per day.
Now once you have linked your pay account or a Credit Card etc, to google development console then you get full quota for free user, plus more if you go over your quota covered by your Credit Card.
However don't panic, for first year it's all free and you get $300 (at this moment) worth of free stuff.
Even if you go over this limit Google will first ask you if you wish to change to payment system or continue with free.
If you decide to pay then you will be charged per indicated on google dev site.
If you decide to go with free option then the service to your site will stop until next rotation, i.e. day or month etc depending on service.
see this table.
Unless you have millions of hit on your map page or app, then the free quota is more than enough for normal sites.
Here is a price calculator by google.
As you see you get a lot of unlimited stuff and some paid if you go over your recurring credit of $200 or $300
Google makes it so complicated because it involves people coming from old system and those registering between roll over etc.
perhaps this will help too.
You can also set budgets and alerts just in case you go over budget (via Billing section of dev site)
So in short :) you get tons of free and if you have a lot of visitors the surely you make some money to pay for the services.
Note that google charges for all their API services in 1 place so if you use say Geocoding and firebase and cloud dev etc then you will soon start paying.
Sorry for any typos, I did this fast.
Capping API Usage
Depending on the API, you can explicitly cap requests in a variety of ways, including: requests per day, requests per 100 seconds, and requests per 100 seconds per user.
You might want to limit the billable usage by setting caps. For example, to prevent getting billed for usage beyond the free courtesy usage limits, you can set requests per day caps.
For more info, check this doc: https://cloud.google.com/apis/docs/capping-api-usage

Can I stop google billing me if I reach my free api limit

Apparently google now require you to give them billing details for using there google maps on your web site. If I understand it correctly you get $200 free allowance and after that they start charging you.
Is there a way to say to google, don’t charge me after the free $200 and just stop displaying the map?
There is no way to do that.
The only 2 things available now is to:
Based on your monthly usage, calculate approximately your daily usage (per API) and set daily limits. You can do so by going to the API Console, select an API, navigate to the Quotas tab, and edit the daily or per-second quotas. You can use this Calculator.
Set billing budgets and alarms.
To control your spend, you can set billing budgets and alarms so that you are notified when your usage reaches a given budget. Here’s how.
Be noticed that these alarms are only "an alarm based on a budget", they won't stop the usage from your project.
I asked about this in the Cloud support, and they told me this:
You can use Programmatic Budget Notifications in order to perform
custom actions when reaching spend thresholds. For instance, you can
disable billing on your project when reaching the free tier limit.
https://cloud.google.com/billing/docs/how-to/notify
Note this will disable the billing completely and can even cause your Cloud projects to be deleted!
See the warning:
This example removes billing from your project, shutting down all resources. Resources might not shut down gracefully, and might be irretrievably deleted. There is no graceful recovery if you disable billing. You can re-enable billing, but there is no guarantee of service recovery and manual configuration is required.
Some things may be outside your control. Google support has confirmed to me that their own bot hits count towards billable maps API usage. So they decide the level of spidering, and then charge for it.
I believe this is called the "Fish in a Barrel" business model