[][src]Struct k8s_openapi::api::autoscaling::v2beta2::MetricTarget

pub struct MetricTarget {
    pub average_utilization: Option<i32>,
    pub average_value: Option<Quantity>,
    pub type_: String,
    pub value: Option<Quantity>,
}

MetricTarget defines the target value, average value, or average utilization of a specific metric

Fields

average_utilization: Option<i32>

averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type

average_value: Option<Quantity>

averageValue is the target value of the average of the metric across all relevant pods (as a quantity)

type_: String

type represents whether the metric type is Utilization, Value, or AverageValue

value: Option<Quantity>

value is the target value of the metric (as a quantity).

Trait Implementations

impl Clone for MetricTarget[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<MetricTarget> for MetricTarget[src]

impl Default for MetricTarget[src]

impl Debug for MetricTarget[src]

impl Serialize for MetricTarget[src]

impl<'de> Deserialize<'de> for MetricTarget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]