Class: Google::Apis::GkehubV1beta::MonitoringConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::MonitoringConfig
- 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
MonitoringConfig informs Fleet-based applications/services/UIs how the metrics for the underlying cluster is reported to cloud monitoring services. It can be set from empty to non-empty, but can't be mutated directly to prevent accidentally breaking the constinousty of metrics.
Instance Attribute Summary collapse
-
#cluster ⇒ String
Optional.
-
#cluster_hash ⇒ String
Optional.
-
#kubernetes_metrics_prefix ⇒ String
Optional.
-
#location ⇒ String
Optional.
-
#project_id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MonitoringConfig
constructor
A new instance of MonitoringConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MonitoringConfig
Returns a new instance of MonitoringConfig.
4481 4482 4483 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ String
Optional. Cluster name used to report metrics. For Anthos on VMWare/Baremetal/
MultiCloud clusters, it would be in format cluster_type/cluster_name, e.g.,
"awsClusters/cluster_1".
Corresponds to the JSON property cluster
4455 4456 4457 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4455 def cluster @cluster end |
#cluster_hash ⇒ String
Optional. For GKE and Multicloud clusters, this is the UUID of the cluster
resource. For VMWare and Baremetal clusters, this is the kube-system UID.
Corresponds to the JSON property clusterHash
4461 4462 4463 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4461 def cluster_hash @cluster_hash end |
#kubernetes_metrics_prefix ⇒ String
Optional. Kubernetes system metrics, if available, are written to this prefix.
This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today but
will migration to be under kubernetes.io/anthos.
Corresponds to the JSON property kubernetesMetricsPrefix
4469 4470 4471 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4469 def kubernetes_metrics_prefix @kubernetes_metrics_prefix end |
#location ⇒ String
Optional. Location used to report Metrics
Corresponds to the JSON property location
4474 4475 4476 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4474 def location @location end |
#project_id ⇒ String
Optional. Project used to report Metrics
Corresponds to the JSON property projectId
4479 4480 4481 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4479 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4486 4487 4488 4489 4490 4491 4492 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4486 def update!(**args) @cluster = args[:cluster] if args.key?(:cluster) @cluster_hash = args[:cluster_hash] if args.key?(:cluster_hash) @kubernetes_metrics_prefix = args[:kubernetes_metrics_prefix] if args.key?(:kubernetes_metrics_prefix) @location = args[:location] if args.key?(:location) @project_id = args[:project_id] if args.key?(:project_id) end |