OpenAPI 3.1.0raw.githubusercontent.com2026-08-14485121706.3 KB

d52fab9681ed

Get Cost Alerts

Return active budget alerts and 30d/90d cost trends.

Reads the live cost data for the most recent run, checks whether spend has reached the 80% or 95% alert threshold, and returns trend data computed from .sdd/metrics/cost_history.jsonl.

Both halves of this response are scoped to tenant_id: alerts is computed from the caller's tenant's spend against the caller's tenant's cap, and trend / history_days are narrowed to snapshots recorded for that same tenant. A history snapshot written before per-tenant attribution existed carries no tenant and is excluded from every scoped trend, so a fresh deployment's 30/90-day averages start empty and fill in as new, attributed snapshots accumulate.

get/api/v1/costs/alerts

Response

Successful Response

{"stackTrail":"paths:/api/v1/costs/alerts:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}