> [!WARNING]
>
> **Preview**
>
>
> This product is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA products are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

App Optimize API lets you [create reports](https://docs.cloud.google.com/app-optimize/create-report) for analyzing
cloud spending and resource usage. To help you to interpret report data more
effectively, review information in this document about the source,
categorization, and limitations of the data.

## Cost data

- **Source:** Cost data is based on the same information that powers your Cloud Billing reports and exports.
- **Latency:** Google Cloud products report usage and cost data to Cloud Billing processes at varying intervals. You might see a delay between your use of Google Cloud services and when the usage and costs are available to App Optimize API. Typically, costs are available within a day, but this can sometimes take more than 24 hours.
- **Gross costs:** The costs shown are generally *gross costs* , reflecting usage at your contract prices *before* any credits, such as Committed Use Discounts, sustained use discounts, or promotional credits, are applied.
- **Currency:** When scoping by an App Hub application, all underlying resources within that application must use the same currency for costs to be aggregated. If resources are linked to billing accounts with different currencies, cost data for that application might be incomplete.
- **Time range:** The maximum [time range](https://docs.cloud.google.com/app-optimize/about-reports#time-range) for a report filter is 90 days before the current date. The start time must be within the 90-day time window.

## Utilization data

- **Source:** Utilization metrics are sourced from Cloud Monitoring.
- **Time range:** The maximum [time range](https://docs.cloud.google.com/app-optimize/about-reports#time-range) for a report filter is 90 days before the current date. The start time must be within the 90-day time window. Cloud Run metrics are only available for six weeks before the current date.
- **Availability:** Availability depends on the resource type and whether the appropriate agents (like the Ops Agent) are configured to collect detailed metrics.

## Product categories

The product names used in App Optimize API are designed to be logical and
user-friendly. These might group costs differently than the service categories
used within Cloud Billing reports. For example, costs that
App Optimize API attributes to "Compute Engine" might encompass multiple
underlying services from a Cloud Billing perspective.
If costs are associated with a product that App Optimize API doesn't support, the `product_display_name` dimension is blank.

### Resource-level costs

This section lists supported products with resource-level cost data.

App Hub doesn't support all resources that App Optimize API supports,
and there are some limitations for reported costs. For details, see
[Application costs](https://docs.cloud.google.com/app-optimize/optimization-data#application-costs).
[(Preview)](https://cloud.google.com/products#product-launch-stages) Data transfer costs are reported separately as networking costs.

| Product name | Supported resources | Additional information |
|---|---|---|
| AlloyDB for PostgreSQL | Backup Cluster Instance |   |
| App Engine | Service | Data transfer costs are reported separately as networking costs. |
| BigQuery | Job Dataset | **For jobs** : Resource-level costs are only supported for jobs that use on-demand pricing. [BigQuery editions pricing](https://docs.cloud.google.com/bigquery/docs/editions-intro) is not supported. Cost attribution for a job isn't supported if the administration project uses a different billing account than the project where you run the query. **For Datasets**: Data transfer costs are reported separately as networking costs. |
| Bigtable | App Profile Instance | **For instances**: Data transfer costs are reported separately as networking costs. |
| Cloud Deploy | Delivery pipeline |   |
| Cloud Run | Job Service | - Utilization data for Cloud Run is available for the 6-week period before the current date. - Data transfer costs are reported separately as networking costs. |
| Cloud Run functions | Function | Data transfer costs are reported separately as networking costs. |
| Compute Engine | Allocation Address Disk Forwarding rule Global address Image Instance Instant snapshot Machine image Managed instance group (MIG) Network attachment Reservation Snapshot Storage pool Target VPN gateway VPN gateway VPN tunnel | - Local storage costs are reported under the product Persistent Disk. - **For instances and MIGs**: Data transfer costs are reported separately as networking costs. |
| Google Kubernetes Engine | Cluster | - Resource cost includes Compute Engine VMs (vCPU, RAM, GPU) and the GKE [cluster management fee](https://cloud.google.com/kubernetes-engine/pricing#cluster-management-fee). - Data transfer costs are reported separately as networking costs. - Local storage costs are reported under the product Persistent Disk. |
| Dataflow | Job Snapshot |   |
| Cloud Data Fusion | Instance |   |
| Managed Service for Apache Spark | Batch Cluster Session | **For clusters**: - The resource cost includes the cost of the Compute Engine VMs (vCPU, RAM, GPU) and Managed Service for Apache Spark licensing fee. - Local storage costs are reported under the product Persistent Disk. - The following Managed Service for Apache Spark clusters don't support resource level costs: - Clusters that use GKE as compute. - Clusters that use [unsupported image versions](https://docs.cloud.google.com/managed-spark/docs/concepts/versioning/image-version-lists#unsupported-image-versions) |
| Dataproc Metastore | Service |   |
| Firestore | Database | Data transfer costs are reported separately as networking costs. |
| Cloud Interconnect ([Preview](https://cloud.google.com/products/#product-launch-stages)) | VLAN attachment | The resource cost includes the hourly cost of the VLAN attachment. Data transfer costs for the VLAN attachment are reported separately as networking costs. Data transfer costs are not attributed to the resources that use the VLAN attachment. |
| Backup for GKE | Backup plan |   |
| Cloud Load Balancing ([Preview](https://cloud.google.com/products/#product-launch-stages)) | Forwarding rule URL map | Data transfer and processing costs are not attributed to the resources that use the forwarding rule or URL map. - For forwarding rules, the cost includes the hourly cost of the forwarding rule plus any hourly charges for proxy instances. - For URL maps, the cost includes the hourly cost of all forwarding rules grouped under the URL map. Data transfer and data processing costs for a forwarding rule or URL map are reported separately as networking costs. |
| Cloud Logging | Log bucket |   |
| Managed Service for Microsoft Active Directory | Domain |   |
| Memorystore for Redis | Instance |   |
| Secret Manager | Secret |   |
| Spanner | Instance Database |   |
| Cloud SQL Admin API | Instance |   |
| Cloud Storage | Bucket | Data transfer costs are reported separately as networking costs. |

## Application costs

For an App Hub application, the total cost includes all resources
that are fully used by the application.

The following limitations apply to application costs:

- This total application cost doesn't include costs for the following:
  - Resources that are shared across applications such as VLAN attachments.
  - Short-lived resources such as BigQuery jobs and Managed Service for Apache Spark sessions and batches.
- Application cost only includes costs for resources that are [supported by App Hub](https://docs.cloud.google.com/app-hub/docs/supported-resources) and [supported by App Optimize API](https://docs.cloud.google.com/app-optimize/optimization-data#resource-costs).
- When scoping by an App Hub application, all underlying application resources must use the same currency. If application resources are linked to billing accounts with different currencies, cost data for the application might be incomplete or not return.
- You can't filter resources by location.

## What's next

- Learn more [about reports](https://docs.cloud.google.com/app-optimize/about-reports).