#[repr(i32)]pub enum Component {
Show 15 variants
Unspecified = 0,
SystemComponents = 1,
Workloads = 2,
Apiserver = 3,
Scheduler = 4,
ControllerManager = 5,
Storage = 7,
Hpa = 8,
Pod = 9,
Daemonset = 10,
Deployment = 11,
Statefulset = 12,
Cadvisor = 13,
Kubelet = 14,
Dcgm = 15,
}
Expand description
GKE components exposing metrics
Variants§
Unspecified = 0
Default value. This shouldn’t be used.
SystemComponents = 1
system components
Workloads = 2
Deprecated: Use Google Cloud Managed Service for Prometheus.
Apiserver = 3
kube-apiserver
Scheduler = 4
kube-scheduler
ControllerManager = 5
kube-controller-manager
Storage = 7
Storage
Hpa = 8
Horizontal Pod Autoscaling
Pod = 9
Pod
Daemonset = 10
DaemonSet
Deployment = 11
Deployment
Statefulset = 12
Statefulset
Cadvisor = 13
CADVISOR
Kubelet = 14
KUBELET
Dcgm = 15
NVIDIA Data Center GPU Manager (DCGM)
Implementations§
source§impl Component
impl Component
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Component
impl Ord for Component
source§impl PartialEq for Component
impl PartialEq for Component
source§impl PartialOrd for Component
impl PartialOrd for Component
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Component
impl TryFrom<i32> for Component
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
impl Copy for Component
impl Eq for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request