public sealed class ThresholdRule : IMessage<ThresholdRule>, IEquatable<ThresholdRule>, IDeepCloneable<ThresholdRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Billing Budget v1 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\u003eThis document provides reference information for the \u003ccode\u003eThresholdRule\u003c/code\u003e class within the Google Cloud Billing Budget v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eThresholdRule\u003c/code\u003e defines the criteria for triggering budget notification emails based on spending thresholds, which is essential for email notifications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eThresholdRule\u003c/code\u003e class is a part of the \u003ccode\u003eGoogle.Cloud.Billing.Budgets.V1\u003c/code\u003e namespace and is found within the \u003ccode\u003eGoogle.Cloud.Billing.Budgets.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eThresholdRule\u003c/code\u003e objects can be created with a constructor which allows optional parameters to set custom threshold rules.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two main properties: \u003ccode\u003eSpendBasis\u003c/code\u003e, which determines how spend is measured, and \u003ccode\u003eThresholdPercent\u003c/code\u003e, which specifies the percentage of the budget that triggers an alert.\u003c/p\u003e\n"]]],[],null,[]]