UsageWorkflowDetail
One sheet's usage in the window, broken down by day, action, error, run, and member.
Properties
summaryobjectrequiredsheet_idstringrequirednamestringrequireddeletedbooleanrequiredtotal_runsintegerrequiredcredits_consumednumberrequiredsuccess_ratenumberrequiredPercentage, 0-100.
cache_hit_ratenumberrequiredPercentage, 0-100.
dailyarray ofrequiredtop_actionsarray ofrequiredtop_errorsarray ofrequiredThe most frequent errors in the window.
messagestringrequiredcountintegerrequiredlast_seenstringrequiredISO 8601.
recent_runsarray ofrequiredThe 20 most recent runs.
run_idstringrequiredOpaque identifier for the run. Use as a key only; the format is not part of the contract.
created_atstringrequiredISO 8601.
action_namenull | stringrequiredemailstringrequiredThe member who ran it.
creditsnumberrequiredstatusnull | stringrequiredfulfillment_sourcestringrequiredHow the run was answered: `api_call`, `cache_hit`, `user_api_key`, or `force_consumed`.
per_userarray ofrequiredEmpty for a key that only sees its own usage.
Example
UsageWorkflowDetail example
{
"summary": {
"sheet_id": "string",
"name": "string",
"deleted": false,
"total_runs": 0,
"credits_consumed": 0,
"success_rate": 0,
"cache_hit_rate": 0
},
"daily": [
{
"date": "string",
"runs": 0,
"credits": 0,
"cache_hits": 0
}
],
"top_actions": [
{
"action_name": "string",
"runs": 0,
"credits": 0,
"cache_hits": 0
}
],
"top_errors": [
{
"message": "string",
"count": 0,
"last_seen": "string"
}
],
"recent_runs": [
{
"run_id": "string",
"created_at": "string",
"action_name": null,
"email": "string",
"credits": 0,
"status": null,
"fulfillment_source": "string"
}
],
"per_user": [
{
"email": "string",
"runs": 0,
"credits": 0
}
]
}