Skip to main content

Query analytics, with optional grouping, windowing, filtering.

GET 

/observability/v1/analytics

Query analytics, with optional grouping, windowing, filtering.

Request

Query Parameters

    format Format

    Possible values: [legacy, agenta]

    Default value: agenta

    focus any
    oldest any
    newest any
    window any
    filtering any
    timeRange any
    app_id any
    environment any
    variant any

Responses

Successful Response
Schema
    anyOf
    total_count Total Count (integer)required
    failure_rate Failure Rate (number)required
    total_cost Total Cost (number)required
    avg_cost Avg Cost (number)required
    avg_latency Avg Latency (number)required
    total_tokens Total Tokens (integer)required
    avg_tokens Avg Tokens (number)required

    data

    object[]

    required

  • Array [

  • timestamp date-timerequired
    success_count Success Count (integer)required
    failure_count Failure Count (integer)required
    cost Cost (number)required
    latency Latency (number)required
    total_tokens Total Tokens (integer)required
  • ]

Loading...