Facet counts and masthead metrics
const url = 'https://app.everruns.com/api/v1/sessions/facets?agent_id=agent_01933b5a00007000800000000000001';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.everruns.com/api/v1/sessions/facets?agent_id=agent_01933b5a00007000800000000000001'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
agent_01933b5a00007000800000000000001Responses
Section titled “Responses”Facet counts over the applied filters
Facet-rail counts and masthead metrics for the sessions surface (EVE-852).
Every count is aggregated server-side over the same filter predicate as
GET /v1/sessions, so a client never derives them by paging the list. Each
facet dimension is counted with the other filters applied but its own
selection excluded, which is what lets the rail offer multi-select.
object
Sessions executing a turn or awaiting client tool results right now.
Counts per derived activity (running, paused, failed,
completed, idle).
One bucket of a sessions facet dimension.
object
The dimension value: an activity, a source, or an agent’s public id.
Counts per agent, keyed by the agent’s public id. Sessions with no agent are omitted.
One bucket of a sessions facet dimension.
object
The dimension value: an activity, a source, or an agent’s public id.
Counts per session source.
One bucket of a sessions facet dimension.
object
The dimension value: an activity, a source, or an agent’s public id.
Sessions whose most recent turn failed or was cancelled today (UTC).
95th percentile session duration over the filtered set, milliseconds.
Tokens consumed by sessions created today (UTC).
Sessions matching every applied filter.
Example
{ "by_activity": [ { "value": "running" } ], "by_agent": [ { "value": "running" } ], "by_source": [ { "value": "running" } ]}Unknown filter value
Internal server error