v1

latestOpenAPI 3.0.32026-07-223120123.1 KB
Monitoring

Get aggregated session data for an inference pipeline with pagination and metadata.

Returns a list of sessions for the inference pipeline, including activity statistics such as record counts, token usage, cost, latency, and the first and last records.

post/inference-pipelines/{inferencePipelineId}/sessions

Path parameters

inferencePipelineIdstring uuid required

The inference pipeline id (a UUID).

Query parameters

pageinteger

The page to return in a paginated query.

perPageinteger

Maximum number of items to return per page.

sortColumnstring

Name of the column to sort on

ascboolean

Whether or not to sort on the sortColumn in ascending order.

Request body

searchQueryOrstring[] nullable
searchQueryAndstring[] nullable
notSearchQueryOrstring[] nullable
notSearchQueryAndstring[] nullable
rowIdListinteger[] nullable
excludeRowIdListinteger[] nullable

Example request

{
  "columnFilters": [
    {
      "measurement": "openlayer_token_set",
      "operator": "contains_none",
      "value": [
        "cat"
      ]
    }
  ]
}

Response

Response OK.

Example response

{
  "items": [
    {
      "id": "session456",
      "dateCreated": "2022-01-02T08:00:00Z",
      "dateOfFirstRecord": "2022-01-02T07:58:20Z",
      "dateOfLastRecord": "2022-01-02T08:00:00Z",
      "duration": 100576.341,
      "records": 15,
      "userIds": [
        "user123",
        "user456"
      ],
      "tokens": 1250,
      "cost": 0.025,
      "latency": 1250.5
    }
  ]
}