FruxonDocs
Agent NetworkTriggers

What happened to the automation's items, bucketed over time.

Per bucket: items admitted, and transitions to DONE (`finished`), IGNORED (`setAside`) and DEAD (`dead`). These are events, not item states: an item re-driven after it finished and finished again counts in both buckets, and an item an operator set aside by hand counts as set aside. Admitted is not part of the other three, because an item usually finishes in a later bucket than it arrived in. Counted from the transition log, which is never purged, so the whole window is counted unless it is longer than 400 days; then only its last 400 days are, and `countedFromMs` says where counting began. Buckets with nothing in them are omitted.

GET
/v1/tenants/{tenant}/triggers/{trigger}/ledger/itemTimeseries
AuthorizationBearer <token>

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

In: header

Path Parameters

trigger*string

The trigger identifier.

Formatuuid
tenant*string

The tenant identifier

Query Parameters

interval?string

Bucket width: HOUR, DAY (default) or WEEK.

Default"DAY"
Value in"UNSPECIFIED" | "HOUR" | "DAY" | "WEEK"
from?integer

Window start as Unix milliseconds (inclusive). Defaults to 30 days before to.

Formatint64
to?integer

Window end as Unix milliseconds (exclusive). Defaults to now.

Formatint64

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger/itemTimeseries"
{
  "triggerId": "00000000-0000-0000-0000-000000000000",
  "interval": "HOUR",
  "window": {
    "fromMs": 0,
    "toMs": 0
  },
  "countedFromMs": 0,
  "points": [
    {
      "bucketStartMs": 0,
      "admitted": 0,
      "finished": 0,
      "setAside": 0,
      "dead": 0
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}