탐색으로 건너뛰기

워크스페이스 비용 사용량 가져오기

비용 기준으로 청구되는 워크스페이스의 시간별 사용 비용을 반환합니다. 사용량은 UTC 일 단위로 집계됩니다. 응답은 columns, column_types, column_units, rows로 구성된 표 형식이며, 각 그룹과 버킷마다 하나의 행이 포함됩니다. total_cost는 워크스페이스 통화 기준 비용이고, total_charge_count는 청구된 수량입니다. 사용량은 user_id, hashed_xi_api_key, region, reporting_workspace_id, billing_group_id, product_type, surface, actor 중 최대 2개를 기준으로 그룹화하거나 필터링할 수 있으며, 2개를 기준으로 그룹화하려면 그중 하나에 eq 또는 in 필터를 적용해야 합니다. model, request_source, fiat_charge_type, fiat_currency는 언제든 추가할 수 있습니다. 일부 id 열에는 기존 열 뒤에 user_label과 같은 표시 이름 열도 추가됩니다. 크레딧 기준으로 청구되는 워크스페이스는 /v1/workspace/analytics/query/usage-by-product-over-time를 사용해야 합니다.

헤더

xi-api-keystring선택 사항

요청

This endpoint expects an object.
start_timeinteger필수>=1577836800000

시간 범위의 시작점으로, 밀리초 단위 Unix 타임스탬프입니다. 2020-01-01 이상이어야 합니다.

end_timeinteger필수>=1577836800000

시간 범위의 종료 시점으로, 밀리초 단위 Unix 타임스탬프입니다. 2020-01-01 이후여야 합니다.

interval_secondsinteger필수>=86400
Bucket size in seconds, in whole UTC days. Pass 86400 for daily buckets or 604800 for weekly buckets, which start on Monday.
group_bylist of enums or null선택 사항
filterslist of objects or null선택 사항

응답

성공 응답

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