trace
Query Custom Metrics
post/projects/{project_id}/metrics/custom_search
Path parameters
project_idstring uuid4 required
Request body
Example request
{
"end_time": "2024-01-07T23:59:59Z",
"filter_tree": {
"and_": [
{
"filter": {
"case_sensitive": true,
"name": "input",
"operator": "contains",
"type": "text",
"value": "customer"
}
}
]
},
"group_by": "model",
"interval_minutes": 1440,
"log_stream_id": "c5fef527-51f6-49d0-800a-1859b678a098",
"metric_details": [
{
"aggregation": "Sum",
"id": "w1",
"metric_name": "num_total_tokens"
},
{
"aggregation": "Average",
"id": "w2",
"metric_name": "toxicity"
}
],
"start_time": "2024-01-01T00:00:00Z"
}Response
Successful Response
Changes
Changed in 1 of the 15 revisions of this API.1
- ○
the endpoint scheme security
ClassicAPIKeyHeaderwas added to the APIapi-security-added
This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○