Projects

Get Project Metrics

Changed on

Gets specified metrics for a project

post/v1/private/projects/{id}/metrics

Request

  • Base URL
    http://localhost:5173/api
  • URL
    http://localhost:5173/api/v1/private/projects/{id}/metrics
  • Auth
    none declared

Path parameters

idstring uuid required

Request body

metric_type'FEEDBACK_SCORES' | 'TRACE_COUNT' | 'TOKEN_USAGE' | 'DURATION' | 'COST' | 'GUARDRAILS_FAILED_COUNT' | 'THREAD_COUNT' | 'THREAD_DURATION' | 'THREAD_FEEDBACK_SCORES' | 'SPAN_FEEDBACK_SCORES' | 'SPAN_COUNT' | 'SPAN_DURATION' | 'SPAN_TOKEN_USAGE' | 'TRACE_AVERAGE_DURATION' | 'TRACE_ERROR_RATE' | 'SPAN_AVERAGE_DURATION' | 'SPAN_COST' | 'SPAN_ERROR_RATE' | 'THREAD_AVERAGE_DURATION' | 'THREAD_COST'
interval'HOURLY' | 'DAILY' | 'WEEKLY' | 'TOTAL'
interval_startstring date-time
interval_endstring date-time

Response

Project Metrics

project_idstring uuid
metric_type'FEEDBACK_SCORES' | 'TRACE_COUNT' | 'TOKEN_USAGE' | 'DURATION' | 'COST' | 'GUARDRAILS_FAILED_COUNT' | 'THREAD_COUNT' | 'THREAD_DURATION' | 'THREAD_FEEDBACK_SCORES' | 'SPAN_FEEDBACK_SCORES' | 'SPAN_COUNT' | 'SPAN_DURATION' | 'SPAN_TOKEN_USAGE' | 'TRACE_AVERAGE_DURATION' | 'TRACE_ERROR_RATE' | 'SPAN_AVERAGE_DURATION' | 'SPAN_COST' | 'SPAN_ERROR_RATE' | 'THREAD_AVERAGE_DURATION' | 'THREAD_COST'
interval'HOURLY' | 'DAILY' | 'WEEKLY' | 'TOTAL'

Changes

    • info

      added the new guardrail_name enum value to the request property /

    • info

      added the new in enum value to the request property //

    • info

      added the new in enum value to the request property //

    • info

      added the new in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //

    • info

      added the new not_in enum value to the request property //