Class: Google::Apis::GkehubV2::PolicyControllerMonitoringConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::PolicyControllerMonitoringConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/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
-
#backends ⇒ Array<String>
Specifies the list of backends Policy Controller will export to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyControllerMonitoringConfig
constructor
A new instance of PolicyControllerMonitoringConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerMonitoringConfig
Returns a new instance of PolicyControllerMonitoringConfig.
2725 2726 2727 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backends ⇒ Array<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
2723 2724 2725 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2723 def backends @backends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2730 2731 2732 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2730 def update!(**args) @backends = args[:backends] if args.key?(:backends) end |