pub struct GoogleCloudBillingBudgetsV1ThresholdRule {
pub spend_basis: Option<String>,
pub threshold_percent: Option<f64>,
}
Expand description
ThresholdRule contains the definition of a threshold. Threshold rules define the triggering events used to generate a budget notification email. When a threshold is crossed (spend exceeds the specified percentages of the budget), budget alert emails are sent to the email recipients you specify in the NotificationsRule. Threshold rules also affect the fields included in the JSON data object sent to a Pub/Sub topic. Threshold rules are required if using email notifications. Threshold rules are optional if only setting a pubsubTopic
NotificationsRule, unless you want your JSON data object to include data about the thresholds you set. For more information, see set budget threshold rules and actions.
This type is not used in any activity, and only used as part of another schema.
Fields
spend_basis: Option<String>
Optional. The type of basis used to determine if spend has passed the threshold. Behavior defaults to CURRENT_SPEND if not set.
threshold_percent: Option<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.
Trait Implementations
sourceimpl Clone for GoogleCloudBillingBudgetsV1ThresholdRule
impl Clone for GoogleCloudBillingBudgetsV1ThresholdRule
sourcefn clone(&self) -> GoogleCloudBillingBudgetsV1ThresholdRule
fn clone(&self) -> GoogleCloudBillingBudgetsV1ThresholdRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleCloudBillingBudgetsV1ThresholdRule
impl Default for GoogleCloudBillingBudgetsV1ThresholdRule
sourcefn default() -> GoogleCloudBillingBudgetsV1ThresholdRule
fn default() -> GoogleCloudBillingBudgetsV1ThresholdRule
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleCloudBillingBudgetsV1ThresholdRule
impl<'de> Deserialize<'de> for GoogleCloudBillingBudgetsV1ThresholdRule
sourcefn 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
impl Part for GoogleCloudBillingBudgetsV1ThresholdRule
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudBillingBudgetsV1ThresholdRule
impl Send for GoogleCloudBillingBudgetsV1ThresholdRule
impl Sync for GoogleCloudBillingBudgetsV1ThresholdRule
impl Unpin for GoogleCloudBillingBudgetsV1ThresholdRule
impl UnwindSafe for GoogleCloudBillingBudgetsV1ThresholdRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more