获取工作区用量

返回按产品类型和时间细分的积分使用情况。响应采用表格结构,包含 columns、column_types、column_units 和 rows。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
start_timeinteger必需>=1577836800000

时间范围起点,以毫秒 Unix 时间戳表示。不得早于 2020-01-01。

end_timeinteger必需>=1577836800000

时间范围结束时间,以毫秒级 Unix 时间戳表示。不得早于 2020-01-01。

interval_secondsinteger可选>=1默认为 60

Bucket size in seconds. Each row in the response covers this many seconds of the selected time range. For example, pass 3600 for hourly buckets, 86400 for daily buckets, or 604800 for weekly buckets. Whether time_zone shifts bucket boundaries depends on this value: week multiples (e.g. 604800) are calendar weeks that start Monday at local midnight; whole-day multiples that are not whole weeks (e.g. 86400) align to local midnight; whole-hour multiples up to 24 hours (e.g. 3600, 14400) align to local hour boundaries from midnight; sub-hour values and other sizes remain UTC-anchored regardless of time_zone.

group_bylist of enums or null可选
filterslist of objects or null可选
time_zonestring可选默认为 UTC

用于对齐符合条件的 interval_seconds 值分桶边界的 IANA 时区标识符(例如 ‘America/New_York’、‘Europe/London’、‘UTC’)。周的倍数(例如 604800)为从当地时间周一午夜开始的自然周。非整周的整天倍数从当地时间午夜开始;不超过 24 小时的整小时倍数与从午夜起算的本地整点边界对齐。无论此设置为何,小时以下的间隔和其他分桶大小仍以 UTC 为基准。默认为 UTC。

响应

成功响应

columnslist of strings
column_typeslist of enums
rowslist of lists of nullable strings or integers or doubles or booleans
column_unitslist of nullable enums

错误

422
Unprocessable Entity Error