Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::QueryUsageHistoriesRequest.
The QueryUsageHistories
request.
Next : 16
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_resource_type
def cloud_resource_type() -> ::String
-
(::String) — The resource for the
UsageHistory
values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results matching all resources.
#cloud_resource_type=
def cloud_resource_type=(value) -> ::String
-
value (::String) — The resource for the
UsageHistory
values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results matching all resources.
-
(::String) — The resource for the
UsageHistory
values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type will return results matching all resources.
#confidential_mode
def confidential_mode() -> ::Boolean
- (::Boolean) — Optional. Whether the persistent disk is in confidential mode.
#confidential_mode=
def confidential_mode=(value) -> ::Boolean
- value (::Boolean) — Optional. Whether the persistent disk is in confidential mode.
- (::Boolean) — Optional. Whether the persistent disk is in confidential mode.
#disk_type
def disk_type() -> ::String
-
(::String) — Optional. The disk_type for the
UsageHistory
values to return request with persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.
#disk_type=
def disk_type=(value) -> ::String
-
value (::String) — Optional. The disk_type for the
UsageHistory
values to return request with persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.
-
(::String) — Optional. The disk_type for the
UsageHistory
values to return request with persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.
#end_date
def end_date() -> ::Google::Type::Date
- (::Google::Type::Date) — Optional. The end date of reservations usage.
#end_date=
def end_date=(value) -> ::Google::Type::Date
- value (::Google::Type::Date) — Optional. The end date of reservations usage.
- (::Google::Type::Date) — Optional. The end date of reservations usage.
#gpu_type
def gpu_type() -> ::String
-
(::String) — Optional. The GPU type for the
UsageHistory
values to return. Sample values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type will return results matching all GPUs.
#gpu_type=
def gpu_type=(value) -> ::String
-
value (::String) — Optional. The GPU type for the
UsageHistory
values to return. Sample values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type will return results matching all GPUs.
-
(::String) — Optional. The GPU type for the
UsageHistory
values to return. Sample values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type will return results matching all GPUs.
#is_spot
def is_spot() -> ::Boolean
- (::Boolean) — Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
#is_spot=
def is_spot=(value) -> ::Boolean
- value (::Boolean) — Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
- (::Boolean) — Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
#location_level
def location_level() -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType
- (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
#location_level=
def location_level=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType
- value (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
- (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
#machine_family
def machine_family() -> ::String
-
(::String) — The machine family for the
UsageHistory
values to return. Possible values include "n1", and "n2d". See https://cloud.google.com/compute/docs/machine-types for more examples. Empty machine_family will return results matching all machine families.
#machine_family=
def machine_family=(value) -> ::String
-
value (::String) — The machine family for the
UsageHistory
values to return. Possible values include "n1", and "n2d". See https://cloud.google.com/compute/docs/machine-types for more examples. Empty machine_family will return results matching all machine families.
-
(::String) — The machine family for the
UsageHistory
values to return. Possible values include "n1", and "n2d". See https://cloud.google.com/compute/docs/machine-types for more examples. Empty machine_family will return results matching all machine families.
#machine_shape
def machine_shape() -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
-
(::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the
UsageHistory
values to return.
#machine_shape=
def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
-
value (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the
UsageHistory
values to return.
-
(::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the
UsageHistory
values to return.
#parent
def parent() -> ::String
-
(::String) —
Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
#parent=
def parent=(value) -> ::String
-
value (::String) —
Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
-
(::String) —
Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
#start_date
def start_date() -> ::Google::Type::Date
- (::Google::Type::Date) — Optional. The start date of reservations usage.
#start_date=
def start_date=(value) -> ::Google::Type::Date
- value (::Google::Type::Date) — Optional. The start date of reservations usage.
- (::Google::Type::Date) — Optional. The start date of reservations usage.
#tpu_type
def tpu_type() -> ::String
-
(::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
#tpu_type=
def tpu_type=(value) -> ::String
-
value (::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
-
(::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
#usage_aggregation_method
def usage_aggregation_method() -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
#usage_aggregation_method=
def usage_aggregation_method=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
- value (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.