Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
The logging configurations for services supporting log generation.
Instance Attribute Summary collapse
-
#info_log_sample_rate ⇒ Float
The log sample rate for INFO level log entries.
-
#logging_level ⇒ String
The logging level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
constructor
A new instance of GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
Returns a new instance of GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule.
3915 3916 3917 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3915 def initialize(**args) update!(**args) end |
Instance Attribute Details
#info_log_sample_rate ⇒ Float
The log sample rate for INFO level log entries. You can use this to reduce the
number of entries generated for INFO level logs. DO NOT set this field if the
logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT
error is returned. Sample rate for INFO logs defaults to 1 when unset (
generate and send all INFO logs to Cloud Logging). Its value must be greater
than 0 and less than or equal to 1.
Corresponds to the JSON property infoLogSampleRate
3908 3909 3910 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3908 def info_log_sample_rate @info_log_sample_rate end |
#logging_level ⇒ String
The logging level. By default it is set to LOG_WARNINGS_AND_ABOVE
.
Corresponds to the JSON property loggingLevel
3913 3914 3915 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3913 def logging_level @logging_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3920 3921 3922 3923 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3920 def update!(**args) @info_log_sample_rate = args[:info_log_sample_rate] if args.key?(:info_log_sample_rate) @logging_level = args[:logging_level] if args.key?(:logging_level) end |