FruxonDocs
AgentsExecution Records

Gets per-environment execution summaries for an agent.

Returns aggregated execution count, total cost, and last activity time for each environment that has execution records for this agent. Pass `?include=trends` to also populate week-over-week deltas (current 7-day window vs. prior 7-day window).

GET
/v1/tenants/{tenant}/agents/{agent}/environmentsSummary
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

Query Parameters

include?string

Comma-separated list of expansion options. Currently recognized: trends. Unknown values are ignored.

from?integer

Optional window start as Unix milliseconds (inclusive). Defaults to 30 days before to (or now). Mirrors the environmentCostTimeseries windowing convention.

Formatint64
to?integer

Optional window end as Unix milliseconds (exclusive). Defaults to now.

Formatint64

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/environmentsSummary"
[
  {
    "environmentSlug": "string",
    "name": "string",
    "executionCount": 0,
    "totalCost": 0,
    "relevanceCheckCount": 0,
    "lastActiveAt": 0,
    "errorCount": 0,
    "avgDurationMs": 0,
    "p95DurationMs": 0,
    "trends": {
      "costWowDelta": 0,
      "executionsWowDelta": 0,
      "errorRateWowDeltaPp": 0
    }
  }
]
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}