Saltar al contenido principal
GET
CSharp (SDK)

Autorizaciones

Authorization
string
header
requerido

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.

Encabezados

X-On-Behalf-Of
string

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

Parámetros de consulta

start_time
integer
requerido

Inicio de la ventana, segundos desde la época (inclusivo)

Rango requerido: -9007199254740991 < x <= 9007199254740991
end_time
integer
requerido

Fin de la ventana, segundos de época (exclusivo)

Rango requerido: -9007199254740991 < x <= 9007199254740991
group_by
string
predeterminado:""

CSV de dimensiones de agrupación: servicio, tipo_de_tarea, modelo, api_key_id, team_id, user_id, external_user_id, org_id

org_id
string

Organización de destino (solo administradores del clúster; otros solo pueden nombrar su propia organización; omitir para la organización del llamante, o a nivel de clúster para administradores del clúster)

Minimum string length: 1

Respuesta

200 - application/json

Está bien

currency
string
requerido
start_time
number
requerido
end_time
number
requerido
group_by
string[]
requerido
data
object[]
requerido
total_cost
number
requerido
as_of
integer
requerido

When these figures were computed, epoch seconds

Rango requerido: -9007199254740991 <= x <= 9007199254740991
settlement_window_seconds
integer
requerido

Seconds after it occurs that usage becomes final

Rango requerido: -9007199254740991 <= x <= 9007199254740991
final_through
integer
requerido

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

Rango requerido: -9007199254740991 <= x <= 9007199254740991
final
boolean
requerido

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

unpriced_entries
integer
requerido

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

Rango requerido: -9007199254740991 <= x <= 9007199254740991
late_entries
integer
requerido

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

Rango requerido: -9007199254740991 <= x <= 9007199254740991
late_cost
number
requerido

Summed cost of late_entries, already included in total_cost