# Mean time to recovery

## Summary

Mean time to recovery (MTTR) is one of the DORA metrics, key to understanding your deployment health. This specific metric helps teams understand how quickly they're able to resolve issues.

In Swarmia, a fixing deployment is a deployment that has `fixesVersion` attribute specified.

## Example

If a deployment failed at 12pm on a Tuesday, and then a fix was deployed at 5pm that same day, the **time to recover** would be 5 hours.

**Mean time to recovery** looks at all the detected TTRs in a give time frame and calculates the average.

## Why it matters

Low MTTR is key for an excellent customer experience, because it indicates minimal downtime or other critical issues in the product.

## Benchmarks

* **Great:** < 60 minutes
* **Good:** < 3 hours
* **Needs attention:** ≥ 3 hours

## How to use it

Time to recovery (TTR) can be determined for each failure as the time between the original deploy and the fix for the problem. TTR can be used to understand the impact of each change failure (how long did the problem last, and what was its impact to the customer).

## Where to find it

You can find mean time to recovery (as well as the other DORA metrics) under Metrics → DORA.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.swarmia.com/definitions/dora-metrics/mean-time-to-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
