GoogleCloudBillingBudgetsV1ThresholdRule class Null safety

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](#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](#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.

Constructors

GoogleCloudBillingBudgetsV1ThresholdRule({String? spendBasis, double? thresholdPercent})
GoogleCloudBillingBudgetsV1ThresholdRule.fromJson(Map _json)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
spendBasis String?
The type of basis used to determine if spend has passed the threshold. [...]
read / write
thresholdPercent double?
Send an alert when this threshold is exceeded. [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited