NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle+0 views

What metric is used to measure service availability?

Practice

AI answer

Availability is usually measured as the proportion of time that a service meets the agreed health criteria:

Availability = successful requests / all valid requests × 100%

For a user-facing API, success is often defined as the proportion of responses that have no server errors and meet the acceptable latency threshold. Another option is the proportion of time the service is healthy. The metric should be tied to SLI and SLO targets—for example, 99.9% of successful requests over a month. Define in advance which requests are included in the calculation, how planned maintenance is handled, and which status codes count as errors.