Complete the code to set a budget amount in Firebase Billing.
const budgetAmount = [1]; // amount in USD
The budget amount should be a positive number. 500 is a valid budget amount.
Complete the code to create a budget filter for a specific project ID.
const budgetFilter = { projectId: '[1]' };The project ID must match the Firebase project identifier format. 'my-project-123' is a valid example.
Fix the error in the budget alert threshold percentage.
const alertThreshold = [1]; // percentage valueThe alert threshold should be a percentage between 0 and 100. 50 is valid.
Fill both blanks to create a budget alert condition for when cost exceeds a threshold.
const alertCondition = { costAmount: [1], comparison: '[2]' };The alert triggers when costAmount is greater than the threshold. 200 and 'GREATER_THAN' are correct.
Fill all three blanks to define a budget with a name, amount, and alert threshold.
const budget = { name: '[1]', amount: [2], alertThreshold: [3] };The budget is named 'MonthlyBudget' with amount 300 and alert threshold 75%.