Class: Google::Apis::ContainerV1::SetMonitoringServiceRequest

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

Overview

SetMonitoringServiceRequest sets the monitoring service of a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetMonitoringServiceRequest

Returns a new instance of SetMonitoringServiceRequest



1620
1621
1622
# File 'generated/google/apis/container_v1/classes.rb', line 1620

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

Instance Attribute Details

#monitoring_serviceString

The monitoring service the cluster should use to write metrics. Currently available options:

  • "monitoring.googleapis.com" - the Google Cloud Monitoring service
  • "none" - no metrics will be exported from the cluster Corresponds to the JSON property monitoringService

Returns:

  • (String)


1618
1619
1620
# File 'generated/google/apis/container_v1/classes.rb', line 1618

def monitoring_service
  @monitoring_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1625
1626
1627
# File 'generated/google/apis/container_v1/classes.rb', line 1625

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