Cost Analysis
APIs related to Cost Analysis.
📄️ List defined cost-analysis KPIs
Returns a paginated list of KPIs from the cost-management KPI details table (KPIId, Name, Description, Config, and optionally LastModifiedTime / TimePeriod). Caller must pass a valid role_id.
📄️ Get cost metrics for a KPI
Returns time-series cost metrics for a single KPI (kpiid 1–5). Dates are YYYY-MM-DD. For kpiid=1, startdate/enddate are ignored and the window is the last 30 days ending yesterday. For other KPIs, omitted dates default from KPI_DAYS_MAP (2:180, 3:14, 4:180, 5:7) with lookback caps from KPI_MAX_DAYS (2:365, 3:30, 4:365, 5:30). ServiceName appears only for kpiid=4; ResourceId only for kpiid=5. Optional Accept-Encoding: gzip compresses the response body. No pagination.