Google Cloud Tasks V2 Client - Class StackdriverLoggingConfig (1.12.2)

Reference documentation and code samples for the Google Cloud Tasks V2 Client class StackdriverLoggingConfig.

Configuration options for writing logs to Stackdriver Logging.

Generated from protobuf message google.cloud.tasks.v2.StackdriverLoggingConfig

Namespace

Google \ Cloud \ Tasks \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ sampling_ratio float

Specifies the fraction of operations to write to Stackdriver Logging. This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.

getSamplingRatio

Specifies the fraction of operations to write to Stackdriver Logging.

This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.

Returns
TypeDescription
float

setSamplingRatio

Specifies the fraction of operations to write to Stackdriver Logging.

This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.

Parameter
NameDescription
var float
Returns
TypeDescription
$this