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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var float
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var float
Returns
TypeDescription
$this