Google Cloud Service Control V1 Client - Class ExponentialBuckets (1.4.4)

Reference documentation and code samples for the Google Cloud Service Control V1 Client class ExponentialBuckets.

Describing buckets with exponentially growing width.

Generated from protobuf message google.api.servicecontrol.v1.Distribution.ExponentialBuckets

Namespace

Google \ Cloud \ ServiceControl \ V1 \ Distribution

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ num_finite_buckets int

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.

↳ growth_factor float

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be larger than 1.0.

↳ scale float

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive. Must be > 0.

getNumFiniteBuckets

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2.

See comments on bucket_options for details.

Returns
Type Description
int

setNumFiniteBuckets

The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2.

See comments on bucket_options for details.

Parameter
Name Description
var int
Returns
Type Description
$this

getGrowthFactor

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.

Must be larger than 1.0.

Returns
Type Description
float

setGrowthFactor

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.

Must be larger than 1.0.

Parameter
Name Description
var float
Returns
Type Description
$this

getScale

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.

Must be > 0.

Returns
Type Description
float

setScale

The i'th exponential bucket covers the interval [scale * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to num_finite_buckets inclusive.

Must be > 0.

Parameter
Name Description
var float
Returns
Type Description
$this