Class: Google::Apis::ContainerV1::AdvancedDatapathObservabilityConfig

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

Overview

AdvancedDatapathObservabilityConfig specifies configuration of observability features of advanced datapath.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdvancedDatapathObservabilityConfig

Returns a new instance of AdvancedDatapathObservabilityConfig.



331
332
333
# File 'lib/google/apis/container_v1/classes.rb', line 331

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

Instance Attribute Details

#enable_metricsBoolean Also known as: enable_metrics?

Expose flow metrics on nodes Corresponds to the JSON property enableMetrics

Returns:

  • (Boolean)


317
318
319
# File 'lib/google/apis/container_v1/classes.rb', line 317

def enable_metrics
  @enable_metrics
end

#enable_relayBoolean Also known as: enable_relay?

Enable Relay component Corresponds to the JSON property enableRelay

Returns:

  • (Boolean)


323
324
325
# File 'lib/google/apis/container_v1/classes.rb', line 323

def enable_relay
  @enable_relay
end

#relay_modeString

Method used to make Relay available Corresponds to the JSON property relayMode

Returns:

  • (String)


329
330
331
# File 'lib/google/apis/container_v1/classes.rb', line 329

def relay_mode
  @relay_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



336
337
338
339
340
# File 'lib/google/apis/container_v1/classes.rb', line 336

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