Interface ThresholdRuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ThresholdRule
,ThresholdRule.Builder
public interface ThresholdRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThresholdRule.Basis
getSpendBasis()
Optional.int
getSpendBasisValue()
Optional.double
getThresholdPercent()
Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getThresholdPercent
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:
- The thresholdPercent.
-
getSpendBasisValue
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:
- The enum numeric value on the wire for spendBasis.
-
getSpendBasis
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:
- The spendBasis.
-
-