Class: Google::Apis::CloudtasksV2::StackdriverLoggingConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudtasks_v2/classes.rb,
lib/google/apis/cloudtasks_v2/representations.rb,
lib/google/apis/cloudtasks_v2/representations.rb
more...

Overview

Configuration options for writing logs to Stackdriver Logging.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StackdriverLoggingConfig

Returns a new instance of StackdriverLoggingConfig.

[View source]

1197
1198
1199
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 1197

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#sampling_ratioFloat

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. Corresponds to the JSON property samplingRatio

Returns:

  • (Float)

1195
1196
1197
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 1195

def sampling_ratio
  @sampling_ratio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1202
1203
1204
# File 'lib/google/apis/cloudtasks_v2/classes.rb', line 1202

def update!(**args)
  @sampling_ratio = args[:sampling_ratio] if args.key?(:sampling_ratio)
end