Struct k8s_openapi::api::autoscaling::v2::MetricIdentifier
source · pub struct MetricIdentifier {
pub name: String,
pub selector: Option<LabelSelector>,
}
Expand description
MetricIdentifier defines the name and optionally selector for a metric
Fields§
§name: String
name is the name of the given metric
selector: Option<LabelSelector>
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.
Trait Implementations§
source§impl Clone for MetricIdentifier
impl Clone for MetricIdentifier
source§fn clone(&self) -> MetricIdentifier
fn clone(&self) -> MetricIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetricIdentifier
impl Debug for MetricIdentifier
source§impl DeepMerge for MetricIdentifier
impl DeepMerge for MetricIdentifier
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for MetricIdentifier
impl Default for MetricIdentifier
source§fn default() -> MetricIdentifier
fn default() -> MetricIdentifier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MetricIdentifier
impl<'de> Deserialize<'de> for MetricIdentifier
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MetricIdentifier> for MetricIdentifier
impl PartialEq<MetricIdentifier> for MetricIdentifier
source§fn eq(&self, other: &MetricIdentifier) -> bool
fn eq(&self, other: &MetricIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.