Computation hours
computation_hoursWhat a project's computations spent over a period — the machine-hours of its stats screen: CPU-hours measured and core-hours allocated in total, by machine, by week (weeks begin on Monday) and the issues that spent most, and how many jobs finished done, failed, cancelled or lost in it. Only the time inside the period counts: a job that ran across its edge is cut there in proportion, and a job still running counts up to now. All figures are seconds; 'machineSeconds' is measured CPU time where a runner sent one and cores × wall clock where it did not, and 'estimated' counts the jobs that were only estimated. 'cost' is the same in US dollars — in total and by basis (reported bill, Modal tariff, share of our machines by load), by machine, by week and the ten dearest issues, with the jobs that have no cost counted in 'uncosted' — and 'idle': for each machine priced by the month, what the part of its month in the period cost the computations, what this project's jobs took of it, what the company's other work took, and what nobody took (idle); 'fx' gives the exchange rates used. The period is the last 30 days unless 'from'/'to' (YYYY-MM-DD, UTC) or 'days' say otherwise.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectKey": "<projectKey>"
},
"name": "computation_hours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The last day, YYYY-MM-DD; today when left out. | |
| days | No | How many days back from 'to', when 'from' is not given (default 30, max 730). | |
| from | No | The first day, YYYY-MM-DD. | |
| projectKey | Yes | The project, e.g. 'MATH'. |