{"openapi":"3.1.0","info":{"title":"GreenDIGIT Carbon-Aware Broker API","description":"Places interactive VMs across federated OpenStack research clouds — cesnet (CZ), hunren (HU), ifca (ES), ires (FR) — at the site with the lowest forecast grid carbon intensity that has room, and explains the choice. Part of the GreenDIGIT project.\n\n[Public page](/) · [Console](/console)\n\n## What this instance does\nEvery request is answered with the placement the broker would make now; **nothing is reserved, stored or created**. `POST /v1/jobs` is always a dry run, and `dry_run=false` is refused with 403.\n\n## Access\n- **No token:** the `public` routes and `/healthz`. Public decisions use the stored hourly forecast and assume every site has free capacity.\n- **Member token:** decisions and previews on the live forecast and current capacity, and the sites' free capacity. Send `Authorization: Bearer <token>`, or use **Authorize** below.\n\nTokens are personal and issued by the operators, who take requests from the public page. If you are signed in to the console in this browser, that session is used here whenever no token is entered under Authorize.\n\n## Limits\n- Sizes `small` (2 vCPU), `medium` (4 vCPU); durations 10, 30, 60 minutes. Anything else is refused with 422.\n- 10 public decisions and 60 public reads a minute per address; 60 requests a minute per member token. Over a limit: 429 with `Retry-After`.\n\n## Errors\nErrors carry a JSON `detail`. **401** no or invalid token · **403** not allowed for this role or service · **409** no feasible site (the decision, with each site's reason, is still returned) · **422** invalid request, or not offered · **429** rate limit reached.","version":"0.4.0"},"paths":{"/healthz":{"get":{"tags":["service"],"summary":"Liveness and mode","description":"Liveness and mode; public, so a proxy or container can probe it.","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"The database is unreachable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/jobs":{"post":{"tags":["decisions"],"summary":"Decide where a job goes","description":"The placement the broker would make now for this request, on the live forecast and current capacity: the chosen site, the allocated flavor, every site's rank or reason, and the saving against a carbon-blind choice. Always a dry run on this service; nothing is held or stored.","operationId":"submit_job_v1_jobs_post","security":[{"BearerToken":[]}],"parameters":[{"name":"dry_run","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Decide without holding anything. Forced on a dry-run-only service.","title":"Dry Run"},"description":"Decide without holding anything. Forced on a dry-run-only service."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionResponse"}}}},"201":{"description":"Placed and held.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionResponse"}}}},"409":{"description":"No feasible site; each site's reason is listed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionResponse"}}}},"401":{"description":"No token, an unknown or revoked token, or an ended console session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"403":{"description":"Not allowed: a console session's request from another site, or a role or service that does not permit it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"422":{"description":"The request is malformed (`detail` is a list of field errors), or asks for a size or duration this service does not offer (`detail` is a message)."}}}},"/v1/preview":{"post":{"tags":["decisions"],"summary":"Compare the four policies","description":"The decision each policy would make now for this request, side by side, on the live forecast and current capacity. Nothing is held.","operationId":"preview_v1_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"401":{"description":"No token, an unknown or revoked token, or an ended console session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"403":{"description":"Not allowed: a console session's request from another site, or a role or service that does not permit it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"422":{"description":"The request is malformed (`detail` is a list of field errors), or asks for a size or duration this service does not offer (`detail` is a message)."}},"security":[{"BearerToken":[]}]}},"/v1/sites":{"get":{"tags":["sites"],"summary":"Sites, their health and free capacity","description":"Each site's zone, health, the project's quota there and what is free of it, and the forecast carbon intensity over the next hour.","operationId":"sites_v1_sites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitesResponse"}}}},"401":{"description":"No token, an unknown or revoked token, or an ended console session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}}},"security":[{"BearerToken":[]}]}},"/v1/public/overview":{"get":{"tags":["public"],"summary":"Sites, what is offered, and the stored forecast","description":"Sites, sizes, policies and the stored carbon-intensity timeline.","operationId":"public_overview_v1_public_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicOverview"}}}},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}}}}},"/v1/public/contact":{"get":{"tags":["public"],"summary":"Where to request a token","description":"Where to ask for a personal token; fetched only when a visitor asks.","operationId":"public_contact_v1_public_contact_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicContact"}}}},"404":{"description":"No contact configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}}}}},"/v1/public/decisions":{"post":{"tags":["public"],"summary":"Where each policy would place a request","description":"The decision under every policy, on the stored hourly forecast and as if\nevery site had free capacity. Nothing is held or stored. Round robin is\nshown at a random position in its rotation, since nothing here advances\nit; compare against the mean over the feasible sites instead.","operationId":"public_decision_v1_public_decisions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlacementRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPreviewResponse"}}}},"422":{"description":"The request is malformed (`detail` is a list of field errors), or asks for a size or duration this service does not offer (`detail` is a message)."},"429":{"description":"Rate limit reached. `Retry-After` says when to try again.","headers":{"Retry-After":{"description":"Seconds","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDetail"}}}}}}}},"components":{"schemas":{"Allocation":{"properties":{"flavor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flavor Id"},"flavor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flavor","description":"Flavor name at the site."},"vcpus":{"type":"integer","title":"Vcpus"},"ram_mb":{"type":"integer","title":"Ram Mb"},"disk_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Gb","description":"Root disk."},"volume_backed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Volume Backed","description":"Whether the root disk is a block-storage volume."}},"additionalProperties":true,"type":"object","required":["vcpus","ram_mb"],"title":"Allocation","description":"The flavor the chosen site would run: real values, not the nominal size."},"Amounts":{"properties":{"vcpus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Vcpus"},"ram_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ram Mb"},"disk_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Disk Gb"},"instances":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Instances","description":"Null: no limit."}},"additionalProperties":true,"type":"object","title":"Amounts"},"Baseline":{"properties":{"ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ci","description":"The baseline's mean carbon intensity, gCO₂eq/kWh."},"saved":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Saved","description":"Estimated reduction: baseline minus chosen intensity, gCO₂eq/kWh."},"saved_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Saved Pct","description":"The reduction as a percentage of the baseline."}},"additionalProperties":true,"type":"object","title":"Baseline"},"Baselines":{"properties":{"random":{"anyOf":[{"$ref":"#/components/schemas/Baseline"},{"type":"null"}],"description":"The mean over the feasible sites: what a carbon-blind choice gives on average."},"round_robin":{"anyOf":[{"$ref":"#/components/schemas/SiteBaseline"},{"type":"null"}]},"best":{"anyOf":[{"$ref":"#/components/schemas/SiteBaseline"},{"type":"null"}],"description":"The lowest-intensity feasible site."}},"additionalProperties":true,"type":"object","title":"Baselines"},"Candidate":{"properties":{"site":{"type":"string","title":"Site"},"feasible":{"type":"boolean","title":"Feasible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why the site cannot take the request, when it is not feasible: `insufficient_vcpus`, `insufficient_ram_mb`, `insufficient_disk_gb`, `insufficient_instances`, `size_unavailable`, `site_disabled`, `site_degraded` or `constraint_excluded`."},"mean_ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Ci","description":"Mean forecast carbon intensity over the window, gCO₂eq/kWh."},"free_vcpus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Vcpus"},"free_ram_mb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Ram Mb"},"free_disk_gb":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Disk Gb"},"free_instances":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Free Instances","description":"Null where the site sets no instance limit."},"utilization":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Utilization","description":"Share of the site's quota in use, 0 to 1."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"The policy's score; lower ranks first."},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank","description":"1 is the chosen site."}},"additionalProperties":true,"type":"object","required":["site","feasible"],"title":"Candidate"},"Constraints":{"properties":{"excluded_sites":{"items":{"type":"string","maxLength":64},"type":"array","maxItems":32,"title":"Excluded Sites","description":"Sites the request must not be placed at, by id (e.g. `cesnet`)."}},"type":"object","title":"Constraints"},"DecisionDetail":{"properties":{"policy":{"type":"string","title":"Policy","description":"The policy applied. It differs from the requested one only when no forecast was available and the broker fell back to `round_robin`."},"requested_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Policy"},"forecast_source":{"type":"string","title":"Forecast Source","description":"Where the carbon values came from: `rest` (the live forecast), `rest:stored` (the stored hourly forecast), a `:last_known_good` suffix (an earlier copy), or `uniform` (one value for every site). `none` for round robin, which reads no forecast; its candidates' `mean_ci` is still filled in for comparison."},"degraded":{"type":"boolean","title":"Degraded","description":"True when a fallback replaced the forecast."},"degradation_rung":{"type":"string","title":"Degradation Rung","description":"`primary`, `last_known_good`, `uniform` or `round_robin`."},"counterfactual_round_robin_site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterfactual Round Robin Site","description":"The site round robin would have chosen, used as a baseline."},"candidates":{"items":{"$ref":"#/components/schemas/Candidate"},"type":"array","title":"Candidates","description":"Every site, feasible ones first in rank order."}},"additionalProperties":true,"type":"object","required":["policy","forecast_source","degraded","degradation_rung","candidates"],"title":"DecisionDetail"},"DecisionResponse":{"properties":{"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"status":{"type":"string","title":"Status","description":"`DRY_RUN`: what the broker would do now; nothing is held. `REJECTED`: no feasible site. For stored jobs: `RESERVED`, `PROVISIONING`, `RUNNING`, `COMPLETED`, `CANCELLED`, or `DECIDED` (decided without provisioning, window ended)."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site","description":"The chosen site; null when rejected."},"allocated":{"anyOf":[{"$ref":"#/components/schemas/Allocation"},{"type":"null"}]},"window":{"$ref":"#/components/schemas/Window"},"decision":{"$ref":"#/components/schemas/DecisionDetail"},"attempts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Attempts","description":"Stored jobs: one entry per placement attempt."},"deployment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Deployment","description":"Stored jobs: the VM's status and fixed IP address."},"waiting_reason":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Waiting Reason"},"savings":{"anyOf":[{"$ref":"#/components/schemas/Savings"},{"type":"null"}]}},"type":"object","required":["job_id","status","site","allocated","window","decision"],"title":"DecisionResponse"},"ErrorDetail":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorDetail"},"Health":{"properties":{"status":{"type":"string","title":"Status","description":"`ok`, or `degraded` when the database is unreachable."},"database":{"type":"string","title":"Database"},"mode":{"type":"string","title":"Mode","description":"`provision`, or `decide_only` (decisions without provisioning)."},"dry_run_only":{"type":"boolean","title":"Dry Run Only"},"version":{"type":"string","title":"Version"}},"type":"object","required":["status","database","mode","dry_run_only","version"],"title":"Health"},"JobRequest":{"properties":{"size":{"type":"string","title":"Size","description":"VM size. A size fixes the number of vCPUs; RAM and disk follow the flavor at each site. Only the sizes this service offers are accepted.","examples":["small"],"enum":["small","medium"]},"duration_minutes":{"type":"integer","exclusiveMinimum":0.0,"title":"Duration Minutes","description":"How long the VM would run, starting now. Only the durations this service offers are accepted.","examples":[30],"enum":[10,30,60]},"policy":{"anyOf":[{"type":"string","enum":["round_robin","min_carbon","green_tie_breaker","weighted"]},{"type":"null"}],"title":"Policy","description":"Placement policy; the service default when omitted. `min_carbon`: the lowest forecast carbon intensity. `green_tie_breaker`: among the sites within a tolerance band of the lowest, the least utilised. `weighted`: a weighted combination of carbon intensity and utilisation. `round_robin`: rotates through the sites without regard to carbon intensity; the baseline for comparison."},"constraints":{"$ref":"#/components/schemas/Constraints"},"job_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Job Id","description":"Your identifier for the job, generated when omitted. Submitting the same identifier again returns the original decision. A dry run stores nothing, so here it only labels the decision in the log.","examples":["probe-1"]}},"type":"object","required":["size","duration_minutes"],"title":"JobRequest"},"PlacementRequest":{"properties":{"size":{"type":"string","title":"Size","description":"VM size. A size fixes the number of vCPUs; RAM and disk follow the flavor at each site. Only the sizes this service offers are accepted.","examples":["small"],"enum":["small","medium"]},"duration_minutes":{"type":"integer","exclusiveMinimum":0.0,"title":"Duration Minutes","description":"How long the VM would run, starting now. Only the durations this service offers are accepted.","examples":[30],"enum":[10,30,60]},"policy":{"anyOf":[{"type":"string","enum":["round_robin","min_carbon","green_tie_breaker","weighted"]},{"type":"null"}],"title":"Policy","description":"Placement policy; the service default when omitted. `min_carbon`: the lowest forecast carbon intensity. `green_tie_breaker`: among the sites within a tolerance band of the lowest, the least utilised. `weighted`: a weighted combination of carbon intensity and utilisation. `round_robin`: rotates through the sites without regard to carbon intensity; the baseline for comparison."},"constraints":{"$ref":"#/components/schemas/Constraints"}},"type":"object","required":["size","duration_minutes"],"title":"PlacementRequest"},"PreviewRequest":{"properties":{"size":{"type":"string","title":"Size","description":"VM size. A size fixes the number of vCPUs; RAM and disk follow the flavor at each site. Only the sizes this service offers are accepted.","examples":["small"],"enum":["small","medium"]},"duration_minutes":{"type":"integer","exclusiveMinimum":0.0,"title":"Duration Minutes","description":"How long the VM would run, starting now. Only the durations this service offers are accepted.","examples":[30],"enum":[10,30,60]},"constraints":{"$ref":"#/components/schemas/Constraints"},"round_robin_cursor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Round Robin Cursor","description":"Evaluate round robin at this position in its rotation instead of the current one. The rotation does not advance either way."}},"type":"object","required":["size","duration_minutes"],"title":"PreviewRequest"},"PreviewResponse":{"properties":{"policies":{"additionalProperties":{"$ref":"#/components/schemas/DecisionResponse"},"type":"object","title":"Policies","description":"The decision under each policy, keyed by policy name."}},"type":"object","required":["policies"],"title":"PreviewResponse"},"PublicAllocation":{"properties":{"vcpus":{"type":"integer","title":"Vcpus"},"ram_mb":{"type":"integer","title":"Ram Mb"},"disk_gb":{"type":"integer","title":"Disk Gb"}},"type":"object","required":["vcpus","ram_mb","disk_gb"],"title":"PublicAllocation"},"PublicCandidate":{"properties":{"site":{"type":"string","title":"Site"},"feasible":{"type":"boolean","title":"Feasible"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"mean_ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Ci","description":"Mean forecast carbon intensity over the window, gCO₂eq/kWh."},"rank":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rank"}},"type":"object","required":["site","feasible"],"title":"PublicCandidate"},"PublicContact":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"PublicContact"},"PublicDecision":{"properties":{"policy":{"type":"string","title":"Policy"},"requested_policy":{"type":"string","title":"Requested Policy"},"forecast_source":{"type":"string","title":"Forecast Source"},"degraded":{"type":"boolean","title":"Degraded"},"degradation_rung":{"type":"string","title":"Degradation Rung"},"candidates":{"items":{"$ref":"#/components/schemas/PublicCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["policy","requested_policy","forecast_source","degraded","degradation_rung","candidates"],"title":"PublicDecision"},"PublicDecisionResponse":{"properties":{"status":{"type":"string","title":"Status","description":"`DRY_RUN`, or `REJECTED` when no site fits."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"},"allocated":{"anyOf":[{"$ref":"#/components/schemas/PublicAllocation"},{"type":"null"}]},"window":{"$ref":"#/components/schemas/Window"},"decision":{"$ref":"#/components/schemas/PublicDecision"}},"type":"object","required":["status","site","allocated","window","decision"],"title":"PublicDecisionResponse","description":"A dry-run decision without the partner sites' quota or flavor IDs."},"PublicOverview":{"properties":{"sizes":{"additionalProperties":{"$ref":"#/components/schemas/SizeInfo"},"type":"object","title":"Sizes","description":"Sizes this service accepts."},"durations_minutes":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Durations Minutes","description":"Durations this service accepts; null: any."},"max_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Duration Minutes","description":"Longest duration, when any duration is accepted."},"policies":{"items":{"type":"string"},"type":"array","title":"Policies"},"default_policy":{"type":"string","title":"Default Policy"},"sites":{"items":{"$ref":"#/components/schemas/PublicSite"},"type":"array","title":"Sites"},"access_requests":{"type":"boolean","title":"Access Requests","description":"Whether the operators accept access requests."},"carbon":{"additionalProperties":true,"type":"object","title":"Carbon","description":"The stored hourly timeline per zone: the past 24 hours (forecast values issued for them) and the next 48, with each point's fetch time."}},"type":"object","required":["sizes","policies","default_policy","sites","access_requests","carbon"],"title":"PublicOverview"},"PublicPreviewResponse":{"properties":{"policies":{"additionalProperties":{"$ref":"#/components/schemas/PublicDecisionResponse"},"type":"object","title":"Policies"}},"type":"object","required":["policies"],"title":"PublicPreviewResponse"},"PublicSite":{"properties":{"id":{"type":"string","title":"Id"},"zone":{"type":"string","title":"Zone"},"enabled":{"type":"boolean","title":"Enabled"},"sizes":{"items":{"type":"string"},"type":"array","title":"Sizes"}},"type":"object","required":["id","zone","enabled","sizes"],"title":"PublicSite"},"Savings":{"properties":{"vcpu_hours":{"type":"number","title":"Vcpu Hours"},"forecast":{"anyOf":[{"$ref":"#/components/schemas/SavingsBasis"},{"type":"null"}],"description":"On the forecast the broker used; absent when a fallback was used."},"actual":{"anyOf":[{"$ref":"#/components/schemas/SavingsBasis"},{"type":"null"}],"description":"On the values reported after the window; added later."}},"additionalProperties":true,"type":"object","required":["vcpu_hours"],"title":"Savings","description":"Estimated reductions for this decision alone, with the load held fixed."},"SavingsBasis":{"properties":{"source":{"type":"string","title":"Source"},"chosen_ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Chosen Ci","description":"Chosen site, gCO₂eq/kWh."},"baselines":{"$ref":"#/components/schemas/Baselines"}},"additionalProperties":true,"type":"object","required":["source","baselines"],"title":"SavingsBasis"},"SiteBaseline":{"properties":{"ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ci","description":"The baseline's mean carbon intensity, gCO₂eq/kWh."},"saved":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Saved","description":"Estimated reduction: baseline minus chosen intensity, gCO₂eq/kWh."},"saved_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Saved Pct","description":"The reduction as a percentage of the baseline."},"site":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site"}},"additionalProperties":true,"type":"object","title":"SiteBaseline"},"SiteInfo":{"properties":{"id":{"type":"string","title":"Id"},"zone":{"type":"string","title":"Zone","description":"The electricity zone whose forecast applies to the site."},"enabled":{"type":"boolean","title":"Enabled"},"health":{"type":"string","title":"Health","description":"`ok`, `disabled`, `degraded`, `teardown_failed`, `drift` or `at_capacity`."},"quota":{"$ref":"#/components/schemas/Amounts","description":"The project's quota at the site."},"free":{"$ref":"#/components/schemas/Amounts","description":"The quota minus what the broker has reserved."},"sizes":{"items":{"type":"string"},"type":"array","title":"Sizes"},"mean_ci":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean Ci","description":"Forecast carbon intensity over the next hour, gCO₂eq/kWh."},"running_jobs":{"type":"integer","title":"Running Jobs","default":0}},"additionalProperties":true,"type":"object","required":["id","zone","enabled","health","quota","free","sizes"],"title":"SiteInfo"},"SitesResponse":{"properties":{"sites":{"items":{"$ref":"#/components/schemas/SiteInfo"},"type":"array","title":"Sites"}},"type":"object","required":["sites"],"title":"SitesResponse"},"SizeInfo":{"properties":{"vcpus":{"type":"integer","title":"Vcpus"}},"type":"object","required":["vcpus"],"title":"SizeInfo"},"Window":{"properties":{"start":{"type":"string","format":"date-time","title":"Start","description":"Start of the job's window, UTC."},"end":{"type":"string","format":"date-time","title":"End","description":"End of the job's window, UTC."}},"type":"object","required":["start","end"],"title":"Window"}},"securitySchemes":{"BearerToken":{"type":"http","description":"Your personal API token, sent as a bearer token.","scheme":"bearer"}}},"tags":[{"name":"public","description":"No token. What the public page uses: decisions on the stored hourly forecast, as if every site had free capacity."},{"name":"decisions","description":"Member token. Decisions on the live forecast and current capacity."},{"name":"sites","description":"Member token. Sites and their free capacity."},{"name":"service","description":"No token. Liveness and mode."}]}