Metrics
System-wide metrics and health data
Get Metrics Endpoint
Query Parameters
workflow_id?|
Filter by workflow ID
Response Body
application/json
application/json
curl -X GET "https://loading/metrics"{
"total_workflows": 0,
"completed_workflows": 0,
"failed_workflows": 0,
"execution_status_counts": {
"not_started": 0,
"running": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"interrupted": 0
},
"total_sessions": 0,
"total_input_tokens": 0,
"total_output_tokens": 0,
"total_cache_creation_tokens": 0,
"total_cache_read_tokens": 0,
"total_tokens": 0,
"total_cost_usd": "0",
"total_cost_display": "$0.00",
"unpriced_observation_count": 0,
"total_artifacts": 0,
"total_artifact_bytes": 0,
"phases": [
{
"phase_id": "string",
"phase_name": "string",
"status": "string",
"input_tokens": 0,
"output_tokens": 0,
"total_tokens": 0,
"cost_usd": "0",
"unpriced_observation_count": 0,
"cost_in_progress": false,
"duration_seconds": 0,
"artifact_count": 0
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Phase Profiles Endpoint
Query Parameters
workflow_id*string
Workflow whose phases to profile
window_days?integer
Look-back window in days
Default
7Range
1 <= value <= 90Response Body
application/json
application/json
curl -X GET "https://loading/metrics/phase-profiles?workflow_id=string"{
"workflow_id": "string",
"since": "2019-08-24T14:15:22Z",
"until": "2019-08-24T14:15:22Z",
"window_days": 0,
"executions": 0,
"tokens": [
{
"phase_id": "string",
"model": "string",
"input_tokens": {
"n": 0,
"p50": 0,
"p90": 0,
"p50_display": "string",
"p90_display": "string"
},
"output_tokens": {
"n": 0,
"p50": 0,
"p90": 0,
"p50_display": "string",
"p90_display": "string"
},
"cache_creation_tokens": {
"n": 0,
"p50": 0,
"p90": 0,
"p50_display": "string",
"p90_display": "string"
},
"cache_read_tokens": {
"n": 0,
"p50": 0,
"p90": 0,
"p50_display": "string",
"p90_display": "string"
},
"cost_usd": {
"n": 0,
"p50": 0,
"p90": 0,
"p50_display": "string",
"p90_display": "string"
},
"unpriced_phases": 0
}
],
"resources": [
{
"phase_id": "string",
"cpu_usage_seconds": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"wall_seconds": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"cpu_seconds_per_wall_second": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"cpu_throttled_seconds": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"memory_peak_bytes": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"disk_bytes_at_teardown": {
"n": 0,
"p50": 0,
"p90": 0,
"p95": 0,
"p50_display": "string",
"p90_display": "string",
"p95_display": "string"
},
"oom": {
"killed": 0,
"not_killed": 0,
"unknown": 0
},
"oom_killed_phases": [
{
"execution_id": "string",
"oom_killed": true,
"memory_peak_bytes": 0,
"oom_kills": 0
}
],
"coverage": {
"phases": 0,
"phases_without_usage_row": 0,
"cpu_usage_seconds_missing": 0,
"cpu_throttled_seconds_missing": 0,
"memory_peak_bytes_missing": 0,
"disk_bytes_at_teardown_missing": 0,
"wall_seconds_missing": 0,
"coverage_display": "string"
}
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Shipped Metrics Endpoint
Query Parameters
days?integer
Window length in UTC days: 7, 14 or 30
Default
14Value in
7 | 14 | 30workflow_id?|
Only commits of this workflow's executions
Response Body
application/json
application/json
curl -X GET "https://loading/metrics/shipped"{
"window": {
"days": 0,
"from": "2019-08-24",
"to": "2019-08-24"
},
"previous": {
"from": "2019-08-24",
"to": "2019-08-24"
},
"workflow_id": "string",
"commits": {
"total": 0,
"previous_total": 0,
"delta": 0,
"delta_percent": 0,
"delta_display": "string",
"delta_unit": "percent",
"total_display": "string",
"series": [
{
"date": "2019-08-24",
"value": 0
}
],
"source": "string",
"reason": "string"
},
"prs_opened": {
"total": 0,
"previous_total": 0,
"delta": 0,
"delta_percent": 0,
"delta_display": "string",
"delta_unit": "percent",
"total_display": "string",
"series": [
{
"date": "2019-08-24",
"value": 0
}
],
"source": "string",
"reason": "string"
},
"prs_merged": {
"total": 0,
"previous_total": 0,
"delta": 0,
"delta_percent": 0,
"delta_display": "string",
"delta_unit": "percent",
"total_display": "string",
"series": [
{
"date": "2019-08-24",
"value": 0
}
],
"source": "string",
"reason": "string"
},
"merge_rate": {
"total": 0,
"previous_total": 0,
"delta": 0,
"delta_display": "string",
"delta_unit": "percent",
"total_display": "string",
"series": [
{
"date": "2019-08-24",
"value": 0
}
],
"source": "string",
"reason": "string"
},
"repos_touched": {
"total": 0,
"previous_total": 0,
"delta": 0,
"delta_percent": 0,
"delta_display": "string",
"delta_unit": "percent",
"total_display": "string",
"series": [
{
"date": "2019-08-24",
"value": 0
}
],
"source": "string",
"reason": "string"
},
"repos": [
"string"
],
"by_workflow": [
{
"workflow_id": "string",
"name": "string",
"commits": 0,
"prs_opened": 0,
"prs_merged": 0,
"repos_touched": 0
}
],
"unavailable": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}