Google Cloud Migration Center V1 Client - Class Histogram (0.4.5)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class Histogram.

The result of a bucketed histogram aggregation.

Generated from protobuf message google.cloud.migrationcenter.v1.AggregationResult.Histogram

Namespace

Google \ Cloud \ MigrationCenter \ V1 \ AggregationResult

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ buckets array<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.

getBuckets

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
Type Description
Google\Protobuf\Internal\RepeatedField

setBuckets

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.

Parameter
Name Description
var array<Google\Cloud\MigrationCenter\V1\AggregationResult\Histogram\Bucket>
Returns
Type Description
$this