Reference documentation and code samples for the App Optimize V1BETA API class Google::Cloud::Appoptimize::V1beta::Report.
A configuration that defines the parameters for the data represented by a report.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#dimensions
def dimensions() -> ::Array<::String>-
(::Array<::String>) — Required. A list of dimensions to include in the report. Supported values:
projectapplicationservice_or_workloadresourceresource_typelocationproduct_display_nameskumonthdayhour
To aggregate results by time, specify at least one time dimension (
month,day, orhour). 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-10through2026-01-12and themonthdimension is selected, the effective time range expands to include all of January (2026-01-01to2026-02-01).
#dimensions=
def dimensions=(value) -> ::Array<::String>-
value (::Array<::String>) — Required. A list of dimensions to include in the report. Supported values:
projectapplicationservice_or_workloadresourceresource_typelocationproduct_display_nameskumonthdayhour
To aggregate results by time, specify at least one time dimension (
month,day, orhour). 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-10through2026-01-12and themonthdimension is selected, the effective time range expands to include all of January (2026-01-01to2026-02-01).
-
(::Array<::String>) — Required. A list of dimensions to include in the report. Supported values:
projectapplicationservice_or_workloadresourceresource_typelocationproduct_display_nameskumonthdayhour
To aggregate results by time, specify at least one time dimension (
month,day, orhour). 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-10through2026-01-12and themonthdimension is selected, the effective time range expands to include all of January (2026-01-01to2026-02-01).
#expire_time
def expire_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::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.
#filter
def filter() -> ::String-
(::String) — Optional. 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:
Filter by a specific resource type:
"resource_type == 'compute.googleapis.com/Instance'"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')"Filter data points that fall within the past 72 hours:
"hour >= now - duration('72h')"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 is2025-12-29T00:00:00to2026-01-05T00:00:00Pacific time.
#filter=
def filter=(value) -> ::String-
value (::String) — Optional. 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:
Filter by a specific resource type:
"resource_type == 'compute.googleapis.com/Instance'"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')"Filter data points that fall within the past 72 hours:
"hour >= now - duration('72h')"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 is2025-12-29T00:00:00to2026-01-05T00:00:00Pacific time.
-
(::String) — Optional. 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:
Filter by a specific resource type:
"resource_type == 'compute.googleapis.com/Instance'"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')"Filter data points that fall within the past 72 hours:
"hour >= now - duration('72h')"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 is2025-12-29T00:00:00to2026-01-05T00:00:00Pacific time.
#metrics
def metrics() -> ::Array<::String>-
(::Array<::String>) —
Required. A list of metrics to include in the report. Supported values:
costcpu_mean_utilizationcpu_usage_core_secondscpu_allocation_core_secondscpu_p95_utilizationmemory_mean_utilizationmemory_usage_byte_secondsmemory_allocation_byte_secondsmemory_p95_utilization
#metrics=
def metrics=(value) -> ::Array<::String>-
value (::Array<::String>) —
Required. A list of metrics to include in the report. Supported values:
costcpu_mean_utilizationcpu_usage_core_secondscpu_allocation_core_secondscpu_p95_utilizationmemory_mean_utilizationmemory_usage_byte_secondsmemory_allocation_byte_secondsmemory_p95_utilization
-
(::Array<::String>) —
Required. A list of metrics to include in the report. Supported values:
costcpu_mean_utilizationcpu_usage_core_secondscpu_allocation_core_secondscpu_p95_utilizationmemory_mean_utilizationmemory_usage_byte_secondsmemory_allocation_byte_secondsmemory_p95_utilization
#name
def name() -> ::String- (::String) — Identifier. The name of this report.
#name=
def name=(value) -> ::String- value (::String) — Identifier. The name of this report.
- (::String) — Identifier. The name of this report.
#scopes
def scopes() -> ::Array<::Google::Cloud::Appoptimize::V1beta::Scope>- (::Array<::Google::Cloud::Appoptimize::V1beta::Scope>) — Optional. The resource containers for which to fetch data. Default is the project specified in the report's parent.
#scopes=
def scopes=(value) -> ::Array<::Google::Cloud::Appoptimize::V1beta::Scope>- value (::Array<::Google::Cloud::Appoptimize::V1beta::Scope>) — Optional. The resource containers for which to fetch data. Default is the project specified in the report's parent.
- (::Array<::Google::Cloud::Appoptimize::V1beta::Scope>) — Optional. The resource containers for which to fetch data. Default is the project specified in the report's parent.