UsageSourceRow

Usage for one source instance.

Properties

source_instance_idstringrequired

The source INSTANCE id, as listed by `GET /api/v1/sources`. Not the source-type slug.

namestringrequired
deletedbooleanrequired

True when the source has since been deleted.

runsintegerrequired
creditsnumberrequired
success_countintegerrequired
cache_hitsintegerrequired
cache_hit_ratenumberrequired

Percentage of runs served from cache, 0-100.

top_actionsarray ofrequired

The three actions that spent the most credits on this source.

Example

UsageSourceRow example
{
  "source_instance_id": "string",
  "name": "string",
  "deleted": false,
  "runs": 0,
  "credits": 0,
  "success_count": 0,
  "cache_hits": 0,
  "cache_hit_rate": 0,
  "top_actions": [
    {
      "action_name": "string",
      "runs": 0,
      "credits": 0,
      "cache_hits": 0
    }
  ]
}