Cloud Bigtable V2 Client - Class DirectAccessWithFallback (2.24.0)

Reference documentation and code samples for the Cloud Bigtable V2 Client class DirectAccessWithFallback.

A channel mode which allows DirectAccess with a fallback to CloudPath if DirectAccess is unavailable.

Generated from protobuf message google.bigtable.v2.SessionClientConfiguration.ChannelPoolConfiguration.DirectAccessWithFallback

Namespace

Google \ Cloud \ Bigtable \ V2 \ SessionClientConfiguration \ ChannelPoolConfiguration

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ error_rate_threshold float

The threshold for errors on DirectAccess to trigger CloudPath fallback. The error rate is calculated based on a count of vRPCs with errors divided by a total count of vRPCs, over a rolling window of the past check_interval. If this ratio exceeds this threshold, the fallback to CloudPath is triggered. [0, 1].

↳ check_interval Google\Protobuf\Duration

The interval to check the error rate over.

getErrorRateThreshold

The threshold for errors on DirectAccess to trigger CloudPath fallback.

The error rate is calculated based on a count of vRPCs with errors divided by a total count of vRPCs, over a rolling window of the past check_interval. If this ratio exceeds this threshold, the fallback to CloudPath is triggered. [0, 1].

Returns
Type Description
float

setErrorRateThreshold

The threshold for errors on DirectAccess to trigger CloudPath fallback.

The error rate is calculated based on a count of vRPCs with errors divided by a total count of vRPCs, over a rolling window of the past check_interval. If this ratio exceeds this threshold, the fallback to CloudPath is triggered. [0, 1].

Parameter
Name Description
var float
Returns
Type Description
$this

getCheckInterval

The interval to check the error rate over.

Returns
Type Description
Google\Protobuf\Duration|null

hasCheckInterval

clearCheckInterval

setCheckInterval

The interval to check the error rate over.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this