API

GithubRunnerHistory

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/github_runner_history load Organization runner history

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

github_runner_history, err := client.GithubRunnerHistory(nil).Load(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(github_runner_history)

Lua

Construct client as shown in the Lua setup, then call the operations:

local github_runner_history, err = client:GithubRunnerHistory():load({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$github_runner_history = $client->GithubRunnerHistory()->load(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

github_runner_history = client.GithubRunnerHistory().load({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

github_runner_history = client.GithubRunnerHistory.load({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const github_runner_history = await client.GithubRunnerHistory().load({ organization_id: "example" })

Fields

Field Type Required Description
activity array Yes Activity
counts object Yes Counts
observed_at string Yes Observed At
pagination object Yes Pagination
repositories array Yes Repositories
runs array Yes Runs
setup any No CI onboarding.
success_rate one,integer,null Yes Success Rate
usage object No Usage

load

GET /api/v1/organizations/{org_slug}/github_runner_history

Operation ID: get_api_v1_organizations_org_slug_github_runner_history.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
days query enum: 7, 14, 30 No
repository query string No
status query enum: success, failed, active, cancelled No
q query string No
page query integer No

Responses

200: Organization runner history

application/json

Property Type Required Description
activity array of object and object Yes
counts object Yes
counts.active integer Yes
counts.cancelled integer Yes
counts.failed integer Yes
counts.success integer Yes
observed_at string Yes
pagination object Yes
pagination.count integer Yes
pagination.last integer Yes
pagination.next integer No
pagination.page integer Yes
pagination.previous integer No
repositories array of string Yes
runs array of object Yes
runs[].attempts integer Yes
runs[].cleaned_up_at string Yes
runs[].completed_at string Yes
runs[].conclusion string Yes
runs[].cpu_millicores integer Yes
runs[].created_at string Yes
runs[].execution_job_id integer Yes
runs[].execution_run_id integer Yes
runs[].finished_at string Yes
runs[].github_run_attempt integer Yes
runs[].github_runner_id integer Yes
runs[].history_job_url string Yes
runs[].id string Yes
runs[].image_version string Yes
runs[].job_name string Yes
runs[].label string Yes
runs[].last_error string Yes
runs[].launched_at string Yes
runs[].memory_mb integer Yes
runs[].outcome enum: success, failed, active, cancelled Yes
runs[].repository_full_name string Yes
runs[].started_at string Yes
runs[].status string Yes
setup object No CI onboarding. Older Rails replicas omit this additive field during deployment.
success_rate integer Yes
usage object No
usage.minutes object Yes Daily stacked usage. Minutes follow the history filters; spend is the organization CI ledger at its package rates, before included credit.
usage.minutes.days array of object Yes
usage.minutes.days[].date string Yes
usage.minutes.days[].total integer Yes
usage.minutes.days[].values array of integer Yes One value per series, in series order
usage.minutes.series array of object Yes Largest first, at most five, then "Other" for the rest
usage.minutes.series[].key string Yes
usage.minutes.series[].label string Yes
usage.minutes.series[].members array of object Yes The series folded into "Other"; empty for any other series
usage.minutes.series[].members[].label string Yes
usage.minutes.series[].members[].total integer Yes
usage.minutes.series[].total integer Yes
usage.minutes.total integer Yes
usage.minutes.unit enum: minutes, cents Yes
usage.spend object Yes Daily stacked usage. Minutes follow the history filters; spend is the organization CI ledger at its package rates, before included credit.
usage.spend.days array of object Yes
usage.spend.days[].date string Yes
usage.spend.days[].total integer Yes
usage.spend.days[].values array of integer Yes One value per series, in series order
usage.spend.series array of object Yes Largest first, at most five, then "Other" for the rest
usage.spend.series[].key string Yes
usage.spend.series[].label string Yes
usage.spend.series[].members array of object Yes The series folded into "Other"; empty for any other series
usage.spend.series[].members[].label string Yes
usage.spend.series[].members[].total integer Yes
usage.spend.series[].total integer Yes
usage.spend.total integer Yes
usage.spend.unit enum: minutes, cents Yes
401: Unauthorized
403: Forbidden
404: Organization unavailable
422: Unprocessable entity
502: Bad gateway