Projects

Get Project Metrics

Gets specified metrics for a project

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

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

Changed in 3 of the 58 revisions of this API.67

    • added the new guardrail_name enum value to the request property breakdown/field

      request-property-enum-value-added

    • added the new in enum value to the request property span_filters/items/operator

      request-property-enum-value-added

    • added the new in enum value to the request property thread_filters/items/operator

      request-property-enum-value-added

    • added the new in enum value to the request property trace_filters/items/operator

      request-property-enum-value-added

    • added the new not_in enum value to the request property span_filters/items/operator

      request-property-enum-value-added

    • added the new not_in enum value to the request property thread_filters/items/operator

      request-property-enum-value-added

    • added the new not_in enum value to the request property trace_filters/items/operator

      request-property-enum-value-added

    • removed the enum value in of the request property span_filters/items/operator

      request-property-enum-value-removed

    • removed the enum value in of the request property thread_filters/items/operator

      request-property-enum-value-removed

    • removed the enum value in of the request property trace_filters/items/operator

      request-property-enum-value-removed

    • removed the enum value not_in of the request property span_filters/items/operator

      request-property-enum-value-removed

    • removed the enum value not_in of the request property thread_filters/items/operator

      request-property-enum-value-removed

    • removed the enum value not_in of the request property trace_filters/items/operator

      request-property-enum-value-removed

    This revision also has 40 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog