public sealed class ThresholdRule : IMessage<ThresholdRule>, IEquatable<ThresholdRule>, IDeepCloneable<ThresholdRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Billing Budget v1beta1 API class ThresholdRule.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThresholdRule is a class in the Cloud Billing Budget v1beta1 API used to define the conditions that trigger budget notification emails.\u003c/p\u003e\n"],["\u003cp\u003eThreshold rules specify the percentage of the budget that, when exceeded, results in an alert email being sent to specified recipients.\u003c/p\u003e\n"],["\u003cp\u003eThese rules are mandatory for email notifications but are optional when only a \u003ccode\u003epubsubTopic\u003c/code\u003e is set unless the JSON data needs threshold information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpendBasis\u003c/code\u003e property determines if spend is based on \u003ccode\u003eCURRENT_SPEND\u003c/code\u003e or other type, while \u003ccode\u003eThresholdPercent\u003c/code\u003e is a required property to set the percentage that triggers the alert.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eThresholdRule\u003c/code\u003e is \u003ccode\u003e2.0.0-beta06\u003c/code\u003e within the Google Cloud Billing Budgets V1Beta1 API namespace.\u003c/p\u003e\n"]]],[],null,[]]