Skip to main content
GET
sla backtest

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

machine_id
integer
required

ID of your machine.

r
number<float>
required

Reliability level to simulate (greater than 0 and at most 0.9999). Used as both claim and client target in the simulation. Exactly 1.0 is rejected.

Required range: 0 < x <= 0.9999
p
number<float>
default:0.6667

Host confidence (greater than 0 and less than 1). Maps to sla_sigma_x when listing. Default 0.6667 (normal).

Required range: 0 < x < 1
start_date
integer

Range start as Unix epoch seconds. Default is 90 days before end_date.

end_date
integer

Range end as Unix epoch seconds. Default is now.

reliability
number<float>

Optional flat uptime override (greater than 0 and at most 1) for all replayed days. Exactly 0 is rejected.

Required range: 0 < x <= 1
beta
number<float>
default:0.5

Timescale mix used in settlement simulation. Not user-configurable for host API keys — the API derives weighting from r (recent vs longer-term uptime). Omit this parameter.

Response

Successful response

success
boolean
machine_id
integer
has_data
boolean

false when no days in the range had earnings to replay.

start_day
integer

UTC day index (days since 1970-01-01).

end_day
integer

UTC day index (days since 1970-01-01).

covered_days
integer
skipped_days
integer
reliability
number<float>
fleet_reliability
number<float>

Average reliability across your machines (including this one). Context only.

params
object
daily_results
object[]
summary
object