[][src]Struct gcp_client::google::cloud::billing::budgets::v1beta1::ThresholdRule

pub struct ThresholdRule {
    pub threshold_percent: f64,
    pub spend_basis: i32,
}

ThresholdRule contains a definition of a threshold which triggers an alert (a notification of a threshold being crossed) to be sent when spend goes above the specified amount. Alerts are automatically e-mailed to users with the Billing Account Administrator role or the Billing Account User role. The thresholds here have no effect on notifications sent to anything configured under Budget.all_updates_rule.

Fields

threshold_percent: f64

Required. Send an alert when this threshold is exceeded. This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative number.

spend_basis: i32

Optional. The type of basis used to determine if spend has passed the threshold. Behavior defaults to CURRENT_SPEND if not set.

Implementations

impl ThresholdRule[src]

pub fn spend_basis(&self) -> Basis[src]

Returns the enum value of spend_basis, or the default if the field is set to an invalid enum value.

pub fn set_spend_basis(&mut self, value: Basis)[src]

Sets spend_basis to the provided enum value.

Trait Implementations

impl Clone for ThresholdRule[src]

impl Debug for ThresholdRule[src]

impl Default for ThresholdRule[src]

impl Message for ThresholdRule[src]

impl PartialEq<ThresholdRule> for ThresholdRule[src]

impl StructuralPartialEq for ThresholdRule[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]