Skip to main content
POST
/
v2
/
projects
/
{project_id}
/
metrics
/
search
Query Metrics
curl --request POST \
  --url https://api.galileo.ai/v2/projects/{project_id}/metrics/search \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '
{
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z",
  "log_stream_id": "<string>",
  "experiment_id": "<string>",
  "metrics_testing_id": "<string>",
  "filters": [
    {
      "column_id": "<string>",
      "value": "<string>",
      "operator": "eq",
      "type": "id"
    }
  ],
  "interval": 5,
  "group_by": "<string>"
}
'
{
  "group_by_columns": [
    "<string>"
  ],
  "aggregate_metrics": {},
  "bucketed_metrics": {}
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

project_id
string<uuid4>
required

Body

application/json
start_time
string<date-time>
required

Include traces from this time onward.

end_time
string<date-time>
required

Include traces up to this time.

log_stream_id
string<uuid4> | null

Log stream id associated with the traces.

experiment_id
string<uuid4> | null

Experiment id associated with the traces.

metrics_testing_id
string<uuid4> | null

Metrics testing id associated with the traces.

filters
(LogRecordsIDFilter · object | LogRecordsDateFilter · object | LogRecordsNumberFilter · object | LogRecordsBooleanFilter · object | LogRecordsCollectionFilter · object | LogRecordsTextFilter · object)[]
interval
integer
default:5
group_by
string | null

Response

Successful Response

group_by_columns
string[]
required
aggregate_metrics
Aggregate Metrics · object
required
bucketed_metrics
Bucketed Metrics · object
required