Generated from protobuf messagegoogle.cloud.tasks.v2.StackdriverLoggingConfig
Namespace
Google \ Cloud \ Tasks \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ sampling_ratio
float
Specifies the fraction of operations to write toStackdriver 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Tasks V2 Client - Class StackdriverLoggingConfig (2.0.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.2 (latest)](/php/docs/reference/cloud-tasks/latest/V2.StackdriverLoggingConfig)\n- [2.0.1](/php/docs/reference/cloud-tasks/2.0.1/V2.StackdriverLoggingConfig)\n- [1.15.2](/php/docs/reference/cloud-tasks/1.15.2/V2.StackdriverLoggingConfig)\n- [1.14.6](/php/docs/reference/cloud-tasks/1.14.6/V2.StackdriverLoggingConfig)\n- [1.13.2](/php/docs/reference/cloud-tasks/1.13.2/V2.StackdriverLoggingConfig)\n- [1.12.2](/php/docs/reference/cloud-tasks/1.12.2/V2.StackdriverLoggingConfig)\n- [1.11.11](/php/docs/reference/cloud-tasks/1.11.11/V2.StackdriverLoggingConfig) \nReference documentation and code samples for the Google Cloud Tasks V2 Client class StackdriverLoggingConfig.\n\nConfiguration options for writing logs to\n[Stackdriver Logging](https://cloud.google.com/logging/docs/).\n\nGenerated from protobuf message `google.cloud.tasks.v2.StackdriverLoggingConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Tasks \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSamplingRatio\n\nSpecifies the fraction of operations to write to\n[Stackdriver Logging](https://cloud.google.com/logging/docs/).\n\nThis field may contain any value between 0.0 and 1.0, inclusive.\n0.0 is the default and means that no operations are logged.\n\n### setSamplingRatio\n\nSpecifies the fraction of operations to write to\n[Stackdriver Logging](https://cloud.google.com/logging/docs/).\n\nThis field may contain any value between 0.0 and 1.0, inclusive.\n0.0 is the default and means that no operations are logged."]]