#[non_exhaustive]pub struct GkeWorkload {
pub project_id: String,
pub location: String,
pub cluster_name: String,
pub namespace_name: String,
pub top_level_controller_type: String,
pub top_level_controller_name: String,
}Expand description
A GKE Workload (Deployment, StatefulSet, etc). The field names correspond
to the metadata labels on monitored resources that fall under a workload
(for example, k8s_container or k8s_pod).
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: StringOutput only. The project this resource lives in. For legacy services
migrated from the Custom type, this may be a distinct project from the
one parenting the service itself.
location: StringThe location of the parent cluster. This may be a zone or region.
cluster_name: StringThe name of the parent cluster.
namespace_name: StringThe name of the parent namespace.
top_level_controller_type: StringThe type of this workload (for example, “Deployment” or “DaemonSet”)
top_level_controller_name: StringThe name of this workload.
Implementations§
Source§impl GkeWorkload
impl GkeWorkload
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_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_name<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_name.
Sourcepub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
pub fn set_namespace_name<T: Into<String>>(self, v: T) -> Self
Sets the value of namespace_name.
Sourcepub fn set_top_level_controller_type<T: Into<String>>(self, v: T) -> Self
pub fn set_top_level_controller_type<T: Into<String>>(self, v: T) -> Self
Sets the value of top_level_controller_type.
Sourcepub fn set_top_level_controller_name<T: Into<String>>(self, v: T) -> Self
pub fn set_top_level_controller_name<T: Into<String>>(self, v: T) -> Self
Sets the value of top_level_controller_name.
Trait Implementations§
Source§impl Clone for GkeWorkload
impl Clone for GkeWorkload
Source§fn clone(&self) -> GkeWorkload
fn clone(&self) -> GkeWorkload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more