Interface ThresholdRuleOrBuilder (2.47.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
Type Description
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
Type Description
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
Type Description
double

The thresholdPercent.