Complete the code to specify the budget amount in the configuration.
{
"budget": {
"amount": [1]
}
}The budget amount should be a number without quotes to represent the value correctly.
Complete the code to set the threshold rule percentage for budget alerts.
{
"thresholdRules": [
{
"thresholdPercent": [1]
}
]
}The thresholdPercent should be a decimal number representing the fraction of the budget (e.g., 0.5 for 50%).
Fix the error in the alert rule operator to correctly trigger when the budget is exceeded.
{
"alertRule": {
"operator": "[1]"
}
}The operator should be GREATER_THAN to trigger alerts when spending exceeds the budget.
Fill both blanks to define the budget filter for projects and services.
{
"budgetFilter": {
"projects": ["[1]"],
"services": ["[2]"]
}
}The projects field requires the project ID in the format 'projects/ID'. The services field requires the service name like 'services/compute.googleapis.com'.
Fill all three blanks to configure notifications with a Pub/Sub topic and email recipients.
{
"notificationsRule": {
"pubsubTopic": "[1]",
"schemaVersion": "[2]",
"monitoringNotificationChannels": ["[3]"]
}
}The pubsubTopic must be the full topic name. The schemaVersion is usually '1.0'. The monitoringNotificationChannels is the full notification channel resource name.