Returns the recommendation for one product line (gcp_service) and region scope on the GCP
billing account, including analysis metrics and time-bucketed eligible spend. Use
granularity to choose the eligible-spend bucket size (defaults to day).
region: optional for compute, defaulting to global (its only scope). Required
for cloud_sql — omitting it returns 400 with code validation_failed, as does a
malformed region or one incompatible with gcp_service (cloud_sql never uses global).
A well-formed region the billing account has never had eligible spend in returns 404
with code not_found — the scope does not exist, same as an unknown billing account.
When the scope exists but no stored recommendation matches, the response is 200 with
recommendation omitted and estimatedEquivalentRecommendedCommitment of 0.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||