| title | CostAlert |
|---|---|
| description | CostAlert Schema Reference |
| Property | Type | Required | Description |
|---|---|---|---|
| id | string |
✅ | |
| timestamp | string |
✅ | ISO 8601 timestamp |
| type | Enum<'threshold_warning' | 'threshold_critical' | 'limit_exceeded' | 'anomaly_detected' | 'projection_exceeded'> |
✅ | |
| severity | Enum<'info' | 'warning' | 'critical'> |
✅ | |
| budgetId | string |
optional | |
| budgetType | Enum<'global' | 'user' | 'agent' | 'object' | 'project' | 'department'> |
optional | |
| scope | string |
optional | |
| message | string |
✅ | Alert message |
| currentCost | number |
✅ | |
| maxCost | number |
optional | |
| threshold | number |
optional | |
| currency | string |
optional | |
| recommendations | string[] |
optional | |
| acknowledged | boolean |
optional | |
| acknowledgedBy | string |
optional | |
| acknowledgedAt | string |
optional | |
| resolved | boolean |
optional | |
| metadata | Record<string, any> |
optional |