gateway.openapi_Gateway

Get Trail Metrics (trace counts, token usage from tracing service)

get/v1/accounts/{account_id}/trails/{trail_id}:getMetrics

Request

  • Base URL: https://api.fireworks.ai
  • URL: https://api.fireworks.ai/v1/accounts/{account_id}/trails/{trail_id}:getMetrics
  • Auth: HTTP bearer

Path parameters

account_idstring required

The Account Id

trail_idstring required

The Trail Id

Response

A successful response.

totalTraceCountstring int64

Total number of traces collected for this trail.

firstTraceTimestring date-time

Timestamp of the first trace in this trail.

lastTraceTimestring date-time

Timestamp of the most recent trace in this trail.

promptTokenCountstring int64

Number of prompt tokens across all traces in this trail.

completionTokenCountstring int64

Number of completion tokens across all traces in this trail.

totalTokenCountstring int64

Number of total tokens across all traces in this trail.

Changes

No recorded changes to this operation across all 1 revision of this API.