Interface ThresholdRuleOrBuilder (2.21.0)

public interface ThresholdRuleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSpendBasis()

public abstract ThresholdRule.Basis getSpendBasis()

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

.google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ThresholdRule.Basis

The spendBasis.

getSpendBasisValue()

public abstract int getSpendBasisValue()

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

.google.cloud.billing.budgets.v1.ThresholdRule.Basis spend_basis = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for spendBasis.

getThresholdPercent()

public abstract double getThresholdPercent()

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

double threshold_percent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
double

The thresholdPercent.