Pular para o conteúdo principal
GET
Python (SDK)

Autorizações

Authorization
string
header
obrigatório

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Parâmetros de consulta

start_time
integer
obrigatório

Início da janela, segundos desde a época (inclusivo)

Intervalo obrigatório: -9007199254740991 < x <= 9007199254740991
end_time
integer
obrigatório

Fim da janela, segundos da época (exclusivo)

Intervalo obrigatório: -9007199254740991 < x <= 9007199254740991
group_by
string
padrão:""

CSV de dimensões de agrupamento: serviço, tipo_de_tarefa, modelo, api_key_id, team_id, user_id, external_user_id, org_id

org_id
string

Org destino (apenas administradores do cluster; os demais só podem informar o nome da própria org; omita para a org do chamador, ou para todo o cluster para administradores do cluster)

Minimum string length: 1

Resposta

200 - application/json

OK

currency
string
obrigatório
start_time
number
obrigatório
end_time
number
obrigatório
group_by
string[]
obrigatório
data
object[]
obrigatório
total_cost
number
obrigatório
as_of
integer
obrigatório

When these figures were computed, epoch seconds

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
settlement_window_seconds
integer
obrigatório

Seconds after it occurs that usage becomes final

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
final_through
integer
obrigatório

Usage before this instant (epoch seconds, as_of minus the settlement window) is final; usage at or after it is provisional

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
final
boolean
obrigatório

True when the window ends at or before final_through, so every figure in this response is final

unpriced_entries
integer
obrigatório

Entries in the window with no cost; they add 0 to total_cost

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
late_entries
integer
obrigatório

Entries in the window that arrived more than the settlement window after they occurred, after their figure was already final

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
late_cost
number
obrigatório

Summed cost of late_entries, already included in total_cost