Skip to main content
POST
Query Custom 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.

metric_details
MetricAggregationDetail · object[]
required

List of metrics to aggregate with their widget IDs and aggregation types (max 100)

Maximum array length: 100
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.

filter_tree
FilterLeaf[Annotated[Union[LogRecordsIDFilter, LogRecordsDateFilter, LogRecordsNumberFilter, LogRecordsBooleanFilter, LogRecordsCollectionFilter, LogRecordsTextFilter, LogRecordsFullyAnnotatedFilter], FieldInfo(annotation=NoneType, required=True, discriminator='type')]] · object

Filter expression tree for complex filtering

interval_minutes
integer
default:5

Time interval in minutes for bucketing

group_by
string | null

Column to group by

Response

Successful Response

group_by_columns
string[]
required
aggregate_metrics
Aggregate Metrics · object
required
bucketed_metrics
Bucketed Metrics · object
required
ems_captured_error
boolean
default:false

Whether any EMS error codes were encountered in the queried metrics

standard_errors
Standard Errors · object | null

Structured EMS errors for each error code encountered, keyed by code