Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig
- 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
Project level logging config to control what level of log will be generated and written to Cloud Logging.
Instance Attribute Summary collapse
-
#default_log_generation_rule ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
The logging configurations for services supporting log generation.
-
#name ⇒ String
Required.
-
#service_log_generation_rules ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule>
Controls logging configurations more granularly for each supported service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfig
constructor
A new instance of GoogleCloudRetailV2alphaLoggingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfig
Returns a new instance of GoogleCloudRetailV2alphaLoggingConfig.
3884 3885 3886 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_log_generation_rule ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
The logging configurations for services supporting log generation.
Corresponds to the JSON property defaultLogGenerationRule
3869 3870 3871 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3869 def default_log_generation_rule @default_log_generation_rule end |
#name ⇒ String
Required. Immutable. The name of the LoggingConfig singleton resource. Format:
projects/*/loggingConfig
Corresponds to the JSON property name
3875 3876 3877 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3875 def name @name end |
#service_log_generation_rules ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule>
Controls logging configurations more granularly for each supported service.
This overrides the default_log_generation_rule for the services specified. For
those not mentioned, they will fallback to the default log generation rule.
Corresponds to the JSON property serviceLogGenerationRules
3882 3883 3884 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3882 def service_log_generation_rules @service_log_generation_rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3889 3890 3891 3892 3893 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3889 def update!(**args) @default_log_generation_rule = args[:default_log_generation_rule] if args.key?(:default_log_generation_rule) @name = args[:name] if args.key?(:name) @service_log_generation_rules = args[:service_log_generation_rules] if args.key?(:service_log_generation_rules) end |