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
This field informs Fleet-based applications/services/UIs with the necessary information for where each underlying Cluster reports its metrics.
Instance Attribute Summary collapse
-
#cluster ⇒ String
Immutable.
-
#cluster_hash ⇒ String
Immutable.
-
#kubernetes_metrics_prefix ⇒ String
Kubernetes system metrics, if available, are written to this prefix.
-
#location ⇒ String
Immutable.
-
#project_id ⇒ String
Immutable.
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.
3461 3462 3463 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster ⇒ String
Immutable. Cluster name used to report metrics. For Anthos on VMWare/Baremetal,
it would be in format memberClusters/cluster_name; And for Anthos on
MultiCloud, it would be in format `azureClusters, awsClusters/cluster_name.
Corresponds to the JSON propertycluster`
3433 3434 3435 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3433 def cluster @cluster end |
#cluster_hash ⇒ String
Immutable. Cluster hash, this is a unique string generated by google code,
which does not contain any PII, which we can use to reference the cluster.
This is expected to be created by the monitoring stack and persisted into the
Cluster object as well as to GKE-Hub.
Corresponds to the JSON property clusterHash
3441 3442 3443 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3441 def cluster_hash @cluster_hash end |
#kubernetes_metrics_prefix ⇒ String
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
3449 3450 3451 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3449 def kubernetes_metrics_prefix @kubernetes_metrics_prefix end |
#location ⇒ String
Immutable. Location used to report Metrics
Corresponds to the JSON property location
3454 3455 3456 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3454 def location @location end |
#project_id ⇒ String
Immutable. Project used to report Metrics
Corresponds to the JSON property projectId
3459 3460 3461 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3459 def project_id @project_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3466 3467 3468 3469 3470 3471 3472 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 3466 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 |