# Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::UsageHistory (v0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::UsageHistory.

A collection of data points that describes the historical time-varying values
of a resource.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aggregation_method

    def aggregation_method() -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-UsageHistory-AggregationMethod)) --- Method used to convert sampled usage data to time series values.

### #aggregation_method=

    def aggregation_method=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-UsageHistory-AggregationMethod)) --- Method used to convert sampled usage data to time series values.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-UsageHistory-AggregationMethod)) --- Method used to convert sampled usage data to time series values.

### #time_series

    def time_series() -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries

**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries)) --- The collection of data points that represent the historical values.

### #time_series=

    def time_series=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries

**Parameter**

- **value** ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries)) --- The collection of data points that represent the historical values.
**Returns**

- ([::Google::Cloud::CapacityPlanner::V1beta::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-capacity_planner-v1beta/latest/Google-Cloud-CapacityPlanner-V1beta-TimeSeries)) --- The collection of data points that represent the historical values.