post https://api.umbrellacost.io/api/v2/cost-alerts/rule
Create a static cost threshold alert.
Examples on the right
- Detailed - Create a new cost alert rule with filters and thresholds.
- Account Level- This example shows a 'static' alertType with 'total' alertLevel for organization-wide cost monitoring.
Enum Field Descriptions
- alertLevel: Alert scope level
- service: Alert at service level
- total: Alert for total costs
- linked_account: Alert at linked account level
- alertType: Type of cost alert (required)
- changeCostService: Change-based cost service alert
- static: Static threshold alert
- changeType: How cost changes are detected
- change: Any change detection
- increase: Only cost increases
- decrease: Only cost decreases
- granularity: Time period for analysis (numeric values)
- 0: Daily analysis
- 1: Weekly analysis
- 2: Monthly analysis
- 3: Specific day in week
- dayInWeek: Day of week (when granularity=3)
- 0: Monday, 1: Tuesday, 2: Wednesday, 3: Thursday, 4: Friday, 5: Saturday, 6: Sunday
- costType: Cost calculation method
- unblended: Unblended costs
- net_unblended: Net unblended costs
- amortized: Amortized costs
- net_amortized: Net amortized costs
- static: Static cost threshold
- operatorType: Filter combination logic
- and: All filters must match
- or: Any filter can match
- operator (in filters): Comparison operator
- IS: Exact match
- IS_NOT: Does not match