|
| 1 | +{ |
| 2 | + "alert": { |
| 3 | + "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", |
| 4 | + "lago_organization_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", |
| 5 | + "external_subscription_id": "subscription_id", |
| 6 | + "lago_wallet_id": null, |
| 7 | + "wallet_code": null, |
| 8 | + "alert_type": "billable_metric_current_usage_amount", |
| 9 | + "code": "storage_threshold_alert", |
| 10 | + "name": "Storage Usage Alert", |
| 11 | + "billable_metric": { |
| 12 | + "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90", |
| 13 | + "name": "Storage", |
| 14 | + "code": "storage", |
| 15 | + "description": "GB of storage used in my application", |
| 16 | + "recurring": false, |
| 17 | + "rounding_function": "round", |
| 18 | + "rounding_precision": 2, |
| 19 | + "created_at": "2022-09-14T16:35:31Z", |
| 20 | + "expression": "round((ended_at - started_at) * units)", |
| 21 | + "field_name": "gb", |
| 22 | + "aggregation_type": "sum_agg", |
| 23 | + "weighted_interval": "seconds", |
| 24 | + "filters": [ |
| 25 | + { |
| 26 | + "key": "region", |
| 27 | + "values": [ |
| 28 | + "us-east-1" |
| 29 | + ] |
| 30 | + } |
| 31 | + ] |
| 32 | + }, |
| 33 | + "previous_value": 1000, |
| 34 | + "direction": "increasing", |
| 35 | + "thresholds": [ |
| 36 | + { |
| 37 | + "code": "warn", |
| 38 | + "recurring": false, |
| 39 | + "value": "99.0" |
| 40 | + } |
| 41 | + ], |
| 42 | + "created_at": "2025-03-20T10:00:00Z", |
| 43 | + "last_processed_at": "2025-05-19T10:04:21Z" |
| 44 | + } |
| 45 | +} |
0 commit comments