Class: Google::Apis::ContainerV1beta1::MonitoringComponentConfig

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

Overview

MonitoringComponentConfig is cluster monitoring component configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MonitoringComponentConfig

Returns a new instance of MonitoringComponentConfig.



4276
4277
4278
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4276

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

Instance Attribute Details

#enable_componentsArray<String>

Select components to collect metrics. An empty set would disable all monitoring. Corresponds to the JSON property enableComponents

Returns:

  • (Array<String>)


4274
4275
4276
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4274

def enable_components
  @enable_components
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4281
4282
4283
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4281

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