{"openapi":"3.1.0","info":{"title":"Reliability Engineering API","version":"1.0.0","description":"Reliability-engineering maths as an API, computed locally and deterministically — the availability, MTBF and failure maths behind SLAs and dependable systems. The availability endpoint converts between MTBF and MTTR, a target availability and the SLA \"nines\": give it a mean time between failures and a mean time to repair and it returns the availability A = MTBF/(MTBF+MTTR) and the downtime per year, month, week and day; give it a number of nines and it returns the budget — three nines (99.9 %) is 8.76 hours of downtime a year, five nines (99.999 %) just 5.26 minutes. The reliability endpoint computes the probability a unit survives a mission time under the exponential model R(t) = e^(−λt) with its constant hazard λ = 1/MTBF, or the Weibull model R(t) = e^(−(t/η)^β) — β below one for infant mortality, one for random failures, above one for wear-out — returning the reliability, failure probability, hazard rate and the mean life η·Γ(1+1/β). The system endpoint combines component reliabilities into a system: series (the weakest link, ΠRᵢ), parallel redundancy (1−Π(1−Rᵢ)) or k-of-n voting. Everything is computed locally and deterministically, so it is instant and private. Ideal for SRE, DevOps, hardware-reliability, safety-engineering and SLA-planning app developers, uptime-budget and redundancy-design tools, and engineering education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 compute endpoints. This is reliability and availability maths; for queue wait-times use a queueing API and for live uptime checks use a monitoring service.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/reliability-api","description":"oanor gateway"}],"tags":[{"name":"Reliability"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/availability":{"get":{"operationId":"get_v1_availability","tags":["Reliability"],"summary":"Availability & downtime","description":"","parameters":[{"name":"mtbf","in":"query","required":false,"description":"Mean time between failures (h)","schema":{"type":"string"},"example":"1000"},{"name":"mttr","in":"query","required":false,"description":"Mean time to repair (h)","schema":{"type":"string"},"example":"10"},{"name":"availability","in":"query","required":false,"description":"Target availability (% or 0–1)","schema":{"type":"string"}},{"name":"nines","in":"query","required":false,"description":"Number of nines (e.g. 5)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"mtbf":1000,"mttr":10,"note":"Availability A = MTBF/(MTBF+MTTR). Three nines (99.9%) is 8.76 h/year of downtime; five nines (99.999%) is about 5.26 min/year.","inputs":{"mtbf":1000,"mttr":10},"downtime":{"per_year_hours":86.7327,"per_day_seconds":855.4455,"per_week_minutes":99.802,"per_month_minutes":433.6634},"availability":0.99009901,"nines_equivalent":2.0043,"availability_percent":99.009901},"meta":{"timestamp":"2026-06-05T21:48:49.267Z","request_id":"4a14f2c3-ff8c-405c-99cf-79153bd81b1b"},"status":"ok","message":"Availability","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/reliability":{"get":{"operationId":"get_v1_reliability","tags":["Reliability"],"summary":"Reliability at mission time","description":"","parameters":[{"name":"time","in":"query","required":true,"description":"Mission time","schema":{"type":"string"},"example":"100"},{"name":"mtbf","in":"query","required":false,"description":"MTBF (exponential or Weibull scale)","schema":{"type":"string"},"example":"1000"},{"name":"failure_rate","in":"query","required":false,"description":"Constant failure rate λ","schema":{"type":"string"}},{"name":"beta","in":"query","required":false,"description":"Weibull shape β","schema":{"type":"string"}},{"name":"eta","in":"query","required":false,"description":"Weibull scale η","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"mtbf":1000,"note":"Exponential R(t) = exp(−λt) with constant hazard λ = 1/MTBF — the memoryless 'useful life' part of the bathtub curve.","model":"exponential","inputs":{"mtbf":1000,"time":100,"failure_rate":0.001},"hazard_rate":0.001,"reliability":0.904837418,"failure_probability":0.095162582},"meta":{"timestamp":"2026-06-05T21:48:49.358Z","request_id":"e77de998-2db3-42be-bb05-028412a81d79"},"status":"ok","message":"Reliability","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/system":{"get":{"operationId":"get_v1_system","tags":["Reliability"],"summary":"System reliability","description":"","parameters":[{"name":"config","in":"query","required":false,"description":"series, parallel or kofn","schema":{"type":"string"},"example":"parallel"},{"name":"reliabilities","in":"query","required":true,"description":"Comma-separated 0–1 list","schema":{"type":"string"},"example":"0.9,0.8,0.95"},{"name":"k","in":"query","required":false,"description":"k for k-of-n","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Series = ΠRᵢ (weakest-link); parallel = 1−Π(1−Rᵢ) (redundancy); k-of-n uses identical components R and the binomial of i≥k working.","inputs":{"config":"parallel","reliabilities":[0.9,0.8,0.95]},"components":3,"system_reliability":0.999,"system_failure_probability":0.001},"meta":{"timestamp":"2026-06-05T21:48:49.456Z","request_id":"d742da98-7197-4a24-88c0-f65c6b7e1682"},"status":"ok","message":"System reliability","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"notes":"Use consistent time units (hours by default for MTBF/MTTR). Availability assumes a year of 8760 h. For queueing/wait times use a queue API.","service":"reliability-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/system":"System reliability from component reliabilities (series, parallel, k-of-n).","GET /v1/reliability":"Reliability, failure probability and hazard rate at a mission time (exponential or Weibull).","GET /v1/availability":"Availability and downtime from MTBF/MTTR, a target availability, or nines."},"description":"Reliability engineering: availability & SLA nines, exponential/Weibull reliability, and series/parallel/k-of-n system reliability."},"meta":{"timestamp":"2026-06-05T21:48:49.522Z","request_id":"08db6d22-4440-43ff-bbe6-3ff5ae4a8346"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":4150,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":640,"monthly_call_quota":43000,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1690,"monthly_call_quota":198000,"rps_limit":15,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":5100,"monthly_call_quota":1140000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/reliability-api"}