# Migration Center V1 API - Class Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram (v2.5.0)

2.5.0 (latest) 2.4.0 2.3.1 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Migration Center V1 API class Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram.

The result of a bucketed histogram aggregation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #buckets

    def buckets() -> ::Array<::Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram::Bucket>

**Returns**

- (::Array\<[::Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram::Bucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-AggregationResult-Histogram-Bucket)\>) --- Buckets in the histogram. There will be `n+1` buckets matching `n` lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.

### #buckets=

    def buckets=(value) -> ::Array<::Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram::Bucket>

**Parameter**

- **value** (::Array\<[::Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram::Bucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-AggregationResult-Histogram-Bucket)\>) --- Buckets in the histogram. There will be `n+1` buckets matching `n` lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.
**Returns**

- (::Array\<[::Google::Cloud::MigrationCenter::V1::AggregationResult::Histogram::Bucket](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-migration_center-v1/latest/Google-Cloud-MigrationCenter-V1-AggregationResult-Histogram-Bucket)\>) --- Buckets in the histogram. There will be `n+1` buckets matching `n` lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.