Class: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig

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

Overview

Configuration options for writing logs to Stackdriver Logging.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StackdriverLoggingConfig

Returns a new instance of StackdriverLoggingConfig



1379
1380
1381
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 1379

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)


1377
1378
1379
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 1377

def sampling_ratio
  @sampling_ratio
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1384
1385
1386
# File 'generated/google/apis/cloudtasks_v2beta3/classes.rb', line 1384

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