Class: Google::Apis::GkehubV1beta::FleetObservabilityLoggingConfig

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

Overview

LoggingConfig defines the configuration for different types of logs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FleetObservabilityLoggingConfig

Returns a new instance of FleetObservabilityLoggingConfig.



2539
2540
2541
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2539

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

Instance Attribute Details

#default_configGoogle::Apis::GkehubV1beta::FleetObservabilityRoutingConfig

RoutingConfig configures the behaviour of fleet logging feature. Corresponds to the JSON property defaultConfig



2532
2533
2534
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2532

def default_config
  @default_config
end

#fleet_scope_logs_configGoogle::Apis::GkehubV1beta::FleetObservabilityRoutingConfig

RoutingConfig configures the behaviour of fleet logging feature. Corresponds to the JSON property fleetScopeLogsConfig



2537
2538
2539
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2537

def fleet_scope_logs_config
  @fleet_scope_logs_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2544
2545
2546
2547
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2544

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