Analytics

Fetch analytics data

post/analytics

Request

Headers

X-Project-Idstring required

LangDB project ID

Request body

start_time_usinteger

Start time in microseconds.

end_time_usinteger

End time in microseconds.

Example request

{
  "start_time_us": 1693062345678,
  "end_time_us": 1693082345678
}

Response

Successful response

start_time_usinteger required

Start time in microseconds since epoch.

end_time_usinteger required

End time in microseconds since epoch.

Example response

{
  "timeseries": [
    {
      "hour": "2025-02-20 18:00:00",
      "total_cost": 12.34,
      "total_requests": 1000,
      "avg_duration": 250.5,
      "duration": 245.7,
      "duration_p99": 750.2,
      "duration_p95": 500.1,
      "duration_p90": 400.8,
      "duration_p50": 200.3,
      "tpot": 0.85,
      "tpot_p99": 1.5,
      "tpot_p95": 1.2,
      "tpot_p90": 1,
      "tpot_p50": 0.75
    }
  ]
}

Changes

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