Metrics

Refresh Metrics

Manually trigger recalculation of system metrics from raw data. This operation analyzes system activity logs and regenerates aggregated metrics. Useful for ensuring metrics are up-to-date or after system maintenance.

post/metrics/refresh

Request

Query parameters

db_idstring nullable

Database ID to use for metrics calculation

tablestring nullable

Table to use for metrics calculation

Response

Metrics refreshed successfully

idstring required

Unique identifier for the metrics record

agent_runs_countinteger required

Total number of agent runs

agent_sessions_countinteger required

Total number of agent sessions

team_runs_countinteger required

Total number of team runs

team_sessions_countinteger required

Total number of team sessions

workflow_runs_countinteger required

Total number of workflow runs

workflow_sessions_countinteger required

Total number of workflow sessions

users_countinteger required

Total number of unique users

token_metricsobject required

Token usage metrics (input, output, cached, etc.)

model_metricsobject[] required

Metrics grouped by model (model_id, provider, count)

datestring date-time required

Date for which these metrics are aggregated

created_atstring date-time required

Timestamp when metrics were created

updated_atstring date-time required

Timestamp when metrics were last updated

Changes

No recorded changes to this operation across all 1 revision of this API.