Class: Google::Apis::GkehubV1::ConfigManagementPolicyControllerMonitoring
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::ConfigManagementPolicyControllerMonitoring
- 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
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
-
#backends ⇒ Array<String>
Specifies the list of backends Policy Controller will export to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigManagementPolicyControllerMonitoring
constructor
A new instance of ConfigManagementPolicyControllerMonitoring.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigManagementPolicyControllerMonitoring
Returns a new instance of ConfigManagementPolicyControllerMonitoring.
1686 1687 1688 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1686 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
1684 1685 1686 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1684 def backends @backends end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1691 1692 1693 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1691 def update!(**args) @backends = args[:backends] if args.key?(:backends) end |