#[non_exhaustive]pub struct SetMonitoringServiceRequest {
pub project_id: String,
pub zone: String,
pub cluster_id: String,
pub monitoring_service: String,
pub name: String,
}Expand description
SetMonitoringServiceRequest sets the monitoring service of a cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringDeprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
zone: StringDeprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
cluster_id: StringDeprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
monitoring_service: StringRequired. The monitoring service the cluster should use to write metrics. Currently available options:
- “monitoring.googleapis.com/kubernetes” - The Cloud Monitoring service with a Kubernetes-native resource model
monitoring.googleapis.com- The legacy Cloud Monitoring service (no longer available as of GKE 1.15).none- No metrics will be exported from the cluster.
If left as an empty string,monitoring.googleapis.com/kubernetes will be
used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.
name: StringThe name (project, location, cluster) of the cluster to set monitoring.
Specified in the format projects/*/locations/*/clusters/*.
Implementations§
Source§impl SetMonitoringServiceRequest
impl SetMonitoringServiceRequest
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_id.
Sourcepub fn set_monitoring_service<T: Into<String>>(self, v: T) -> Self
pub fn set_monitoring_service<T: Into<String>>(self, v: T) -> Self
Sets the value of monitoring_service.
Trait Implementations§
Source§impl Clone for SetMonitoringServiceRequest
impl Clone for SetMonitoringServiceRequest
Source§fn clone(&self) -> SetMonitoringServiceRequest
fn clone(&self) -> SetMonitoringServiceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more