Service Client: Google::Cloud::Appoptimize::V1beta::AppOptimize::AppOptimizeClient
Client stub representing the remote AppOptimize gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to appoptimize.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Appoptimize::V1beta::AppOptimize - Compiled Protocol Buffers messages for google/cloud/appoptimize/v1beta/app_optimize.proto
SYNOPSIS
use Google::Cloud::Appoptimize::V1beta::AppOptimize;
my $msg = Google::Cloud::Appoptimize::V1beta::AppOptimize::CreateReportRequest->new({
parent => $parent,
report_id => $report_id,
report => $report,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Appoptimize::V1beta::AppOptimize::CreateReportRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/appoptimize/v1beta/app_optimize.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Appoptimize::V1beta::AppOptimize::CreateReportRequest
Request message for the `CreateReport` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent Google Cloud project that will own the report.
This value does not define the scope of the report data. See `Report.scope` for setting the data scope.
Format: `projects/{project}/locations/{location}`.
$msg->report_id()/$msg->report_id($value)Type:
StringRequired. The ID to use for this report. This ID must be unique within the parent project and should comply with RFC 1034 restrictions (letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum).
$msg->report()/$msg->report($value)Type:
Message(Google::Cloud::Appoptimize::V1beta::AppOptimize::Report)Required. The report resource to create.
Google::Cloud::Appoptimize::V1beta::AppOptimize::Report
A configuration that defines the parameters for the data represented by a report.
Inherits from Protobuf::Message.
Accessors
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp in UTC of when this report expires. Once the report expires, it will no longer be accessible and the report's underlying data will be deleted.
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of this report.
$msg->dimensions()/$msg->dimensions($value)Type:
StringRequired. A list of dimensions to include in the report. Supported values:
* `project` * `application` * `service_or_workload` * `resource` * `resource_type` * `location` * `product_display_name` * `sku` * `month` * `day` * `hour`To aggregate results by time, specify at least one time dimension (`month`, `day`, or `hour`). All time dimensions use Pacific Time, respect Daylight Saving Time (DST), and follow these ISO 8601 formats:
* `month`: `YYYY-MM` (e.g., `2024-01`) * `day`: `YYYY-MM-DD` (e.g., `2024-01-10`) * `hour`: `YYYY-MM-DDTHH` (e.g., `2024-01-10T00`)If the time range filter does not align with the selected time dimension, the range is expanded to encompass the full period of the finest-grained time dimension.
For example, if the filter is `2026-01-10` through `2026-01-12` and the `month` dimension is selected, the effective time range expands to include all of January (`2026-01-01` to `2026-02-01`).
$msg->metrics()/$msg->metrics($value)Type:
StringRequired. A list of metrics to include in the report. Supported values:
* `cost` * `cpu_mean_utilization` * `cpu_usage_core_seconds` * `cpu_allocation_core_seconds` * `cpu_p95_utilization` * `memory_mean_utilization` * `memory_usage_byte_seconds` * `memory_allocation_byte_seconds` * `memory_p95_utilization`$msg->scopes()/$msg->scopes($value)Type:
Message(Google::Cloud::Appoptimize::V1beta::AppOptimize::Scope)Optional. The resource containers for which to fetch data. Default is the project specified in the report's parent.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A Common Expression Language (CEL) expression used to filter the data for the report.
Predicates may refer to any dimension. Filtering must conform to these constraints:
* All string field predicates must use exact string matches. * Multiple predicates referring to the same string field must be joined using the logical OR operator ('||'). * All other predicates must be joined using the logical AND operator (`&&`). * A predicate on a time dimension (e.g., `day`) specifying the start time must use a greater-than-or-equal-to comparison (`>=`). * A predicate on a time dimension specifying the end time must use a less-than comparison (`<`).Examples:
1. Filter by a specific resource type: `"resource_type == 'compute.googleapis.com/Instance'"` 2. Filter data points that fall within a specific absolute time interval: `"hour >= timestamp('2024-01-01T00:00:00Z') && hour < timestamp('2024-02-01T00:00:00Z')"` 3. Filter data points that fall within the past 72 hours: `"hour >= now - duration('72h')"` 4. Combine string predicate with time interval predicate: `"(location == 'us-east1' || location == 'us-west1') && hour >= timestamp('2023-12-01T00:00:00Z') && hour < timestamp('2024-02-01T00:00:00Z')"`If the filter omits time dimensions (`month`, `day`, `hour`), the report defaults to a 7-day range ending at the previous Pacific Time midnight, with Daylight Saving Time (DST) applied.
For example, if the current Pacific Time is `2026-01-05T12:00:00`, the default range is `2025-12-29T00:00:00` to `2026-01-05T00:00:00` Pacific time.
Google::Cloud::Appoptimize::V1beta::AppOptimize::Scope
Specifies the report scope.
Inherits from Protobuf::Message.
Accessors
$msg->project()/$msg->project($value)Type:
StringRequired. A Google Cloud Platform project to fetch data from.
Format: `"projects/{project}"`.
$msg->application()/$msg->application($value)Type:
StringRequired. An App Hub Application to fetch data from.
Format: `"projects/{project}/locations/{location}/applications/{application}"`.
Google::Cloud::Appoptimize::V1beta::AppOptimize::GetReportRequest
Request message for the `GetReport` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the report to retrieve.
Format: `projects/{project}/locations/{location}/reports/{report_id}`.
Google::Cloud::Appoptimize::V1beta::AppOptimize::ListReportsRequest
Request message for the `ListReports` method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent project whose reports are to be listed.
Format: `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of reports to return. The service may return fewer than this value. If unspecified, the server will determine the number of results to return.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListReports` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListReports` must match the call that provided the page token.
Google::Cloud::Appoptimize::V1beta::AppOptimize::ListReportsResponse
Response message for the `ListReports` method.
Inherits from Protobuf::Message.
Accessors
$msg->reports()/$msg->reports($value)Type:
Message(Google::Cloud::Appoptimize::V1beta::AppOptimize::Report)The list of reports.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page. If this field is empty, there are no subsequent pages.
Google::Cloud::Appoptimize::V1beta::AppOptimize::DeleteReportRequest
Request message for the `DeleteReport` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the report to delete.
Format: `projects/{project}/locations/{location}/reports/{report_id}`.
$msg->allow_missing()/$msg->allow_missing($value)Type:
BoolOptional. If set to true, and the report is not found, the request will succeed but no action will be taken on the server.
Google::Cloud::Appoptimize::V1beta::AppOptimize::ReadReportRequest
Request message for the `ReadReport` method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the report to query.
Format: `projects/{project}/locations/{location}/reports/{report_id}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 10,000 rows will be returned per page. The maximum allowed value is 25,000; values above 25,000 are coerced to 25,000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ReadReport` call, to retrieve the subsequent page of results. When `page_token` is specified, `job_reference` must also be provided from the previous response, and the `statement` field must not be set.
Google::Cloud::Appoptimize::V1beta::AppOptimize::ReadReportResponse
Response message for the `ReadReport` method.
Inherits from Protobuf::Message.
Accessors
$msg->rows()/$msg->rows($value)Type:
Message(Google::Protobuf::Struct::ListValue)A list of rows, where each row represents a record from the report.
$msg->columns()/$msg->columns($value)Type:
Message(Google::Cloud::Appoptimize::V1beta::AppOptimize::Column)The columns describing the structure of the data in the `rows` field.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` in a subsequent `ReadReport` request to retrieve the next page of results. If this field is empty, there are no further pages.
Google::Cloud::Appoptimize::V1beta::AppOptimize::Column
Describes a single column within `Columns`.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the column.
This field:
* Contains only letters (a-z, A-Z), numbers (0-9), or underscores (_); * Start with a letter or underscore; and * Has a maximum length is 128 characters.$msg->type()/$msg->type($value)Type:
StringThe data type of the column.
Supported values include:
* `STRING` * `INT64` * `FLOAT64` * `BOOLEAN` * `TIMESTAMP` * `RECORD``RECORD` indicates that the field contains a nested schema, described in the `columns` property of this `Column`.
$msg->mode()/$msg->mode($value)Type:
StringThe mode of the column, indicating if it is nullable, required, or repeated.
Possible values:
* `NULLABLE`: The column allows NULL values. * `REQUIRED`: The column does not allow NULL values. * `REPEATED`: The column contains an array of values.$msg->columns()/$msg->columns($value)Type:
Message(Google::Cloud::Appoptimize::V1beta::AppOptimize::Column)If the `type` of this column is `RECORD`, this sub-field describes the nested structure.
Google::Cloud::Appoptimize::V1beta::AppOptimize::OperationMetadata
Represents metadata related to the creation of a Report. This value is embedded in the Operation object returned by `CreateReport`.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Appoptimize::V1beta::AppOptimize::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.