Reference documentation and code samples for the Google Cloud Tasks V2beta3 Client class StackdriverLoggingConfig.
Configuration options for writing logs to Stackdriver Logging.
Generated from protobuf message google.cloud.tasks.v2beta3.StackdriverLoggingConfig
Namespace
Google \ Cloud \ Tasks \ V2beta3Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |