Class: Google::Apis::ContainerV1::AdvancedDatapathObservabilityConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AdvancedDatapathObservabilityConfig
- 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
-
#enable_metrics ⇒ Boolean
(also: #enable_metrics?)
Expose flow metrics on nodes Corresponds to the JSON property
enableMetrics
. -
#enable_relay ⇒ Boolean
(also: #enable_relay?)
Enable Relay component Corresponds to the JSON property
enableRelay
. -
#relay_mode ⇒ String
Method used to make Relay available Corresponds to the JSON property
relayMode
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdvancedDatapathObservabilityConfig
constructor
A new instance of AdvancedDatapathObservabilityConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdvancedDatapathObservabilityConfig
Returns a new instance of AdvancedDatapathObservabilityConfig.
290 291 292 |
# File 'lib/google/apis/container_v1/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_metrics ⇒ Boolean Also known as: enable_metrics?
Expose flow metrics on nodes
Corresponds to the JSON property enableMetrics
276 277 278 |
# File 'lib/google/apis/container_v1/classes.rb', line 276 def enable_metrics @enable_metrics end |
#enable_relay ⇒ Boolean Also known as: enable_relay?
Enable Relay component
Corresponds to the JSON property enableRelay
282 283 284 |
# File 'lib/google/apis/container_v1/classes.rb', line 282 def enable_relay @enable_relay end |
#relay_mode ⇒ String
Method used to make Relay available
Corresponds to the JSON property relayMode
288 289 290 |
# File 'lib/google/apis/container_v1/classes.rb', line 288 def relay_mode @relay_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 298 299 |
# File 'lib/google/apis/container_v1/classes.rb', line 295 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 |