Class: Google::Apis::GkehubV1::PolicyControllerMonitoringConfig

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

Overview

MonitoringConfig specifies the backends Policy Controller should export metrics to. For example, to specify metrics should be exported to Cloud Monitoring and Prometheus, specify backends: ["cloudmonitoring", "prometheus"]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerMonitoringConfig

Returns a new instance of PolicyControllerMonitoringConfig.



4384
4385
4386
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4384

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

Instance Attribute Details

#backendsArray<String>

Specifies the list of backends Policy Controller will export to. An empty list would effectively disable metrics export. Corresponds to the JSON property backends

Returns:

  • (Array<String>)


4382
4383
4384
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4382

def backends
  @backends
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4389
4390
4391
# File 'lib/google/apis/gkehub_v1/classes.rb', line 4389

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