Class: Google::Apis::GkehubV1beta::ConfigManagementPolicyControllerMonitoring

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

Overview

PolicyControllerMonitoring 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) ⇒ ConfigManagementPolicyControllerMonitoring

Returns a new instance of ConfigManagementPolicyControllerMonitoring.



1204
1205
1206
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1204

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>)


1202
1203
1204
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1202

def backends
  @backends
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1209
1210
1211
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1209

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