# Checks and statuses

> What a check is, the seven check types, every status a check can have, pausing and muting, test runs, and how uptime is counted.

A **check** says what to check and how: a target, a type, an interval, assertions and the nodes that run it. One execution of a check on one node is a **run**.

## Types

| Type        | Checks                                                                              | Reference                        |
| ----------- | ----------------------------------------------------------------------------------- | -------------------------------- |
| `http`      | An HTTP or HTTPS request and its response: status, time, body, headers, JSON values | [HTTP](https://docs.monitorly.cloud/checks/http.md)            |
| `tcp`       | That a TCP port accepts a connection                                                | [TCP](https://docs.monitorly.cloud/checks/tcp.md)              |
| `icmp`      | That a host answers ping                                                            | [ICMP](https://docs.monitorly.cloud/checks/icmp.md)            |
| `dns`       | A DNS record and the values it must contain                                         | [DNS](https://docs.monitorly.cloud/checks/dns.md)              |
| `ssl`       | That a TLS certificate is valid, and how long until it expires                      | [SSL certificate](https://docs.monitorly.cloud/checks/ssl.md)  |
| `domain`    | When a domain registration expires                                                  | [Domain expiry](https://docs.monitorly.cloud/checks/domain.md) |
| `heartbeat` | That a job (cron, timer, CI schedule) pings on time                                 | [Heartbeat](https://docs.monitorly.cloud/checks/heartbeat.md)  |

Every type is available on every plan.

## Statuses

| Status        | Meaning                                                                                       |
| ------------- | --------------------------------------------------------------------------------------------- |
| `PENDING`     | No decision yet: the check is new, or was just resumed                                        |
| `UP`          | A quorum of locations passes                                                                  |
| `DEGRADED`    | An HTTP check answers, but slower than its `degradedAfterMs` on a quorum                      |
| `DOWN`        | A quorum of locations failed in `downAfter` confirmation rounds in a row; an incident is open |
| `UNKNOWN`     | Too few healthy nodes to decide: neither UP nor DOWN                                          |
| `MAINTENANCE` | A maintenance window is active: alerts are held, runs go on                                   |
| `PAUSED`      | Paused by a person: no runs are counted                                                       |

How a status is decided: [How DOWN is decided](https://docs.monitorly.cloud/concepts/quorum.md).

## Pause and mute

- **Pause** stops counting the check: its status is `PAUSED` and it opens no incidents. Resuming returns it to `PENDING` until the first decision. Pausing starts a new configuration epoch.
- **Mute** turns off a check's alerts only. The check keeps running, deciding its status and opening incidents.

## Test runs

**Test now** in the editor runs the check as it is in the form, saved or not, once on each of its nodes, and shows each node's result: outcome, status code, timings, error and failed assertions. A test run saves nothing and does not change the status or uptime. A project runs at most 3 tests at a time.

## Uptime

Uptime is the share of time the check was UP or DEGRADED among the time a decision existed:

> uptime = (UP + DEGRADED) / (UP + DEGRADED + DOWN)

It is measured in time, not in number of runs. Maintenance, pause, UNKNOWN and "no data" are left out of the calculation, so a maintenance window never lowers uptime. Days in uptime bars and reports are days of the workspace's time zone.

"No data" is a gap a node could not report: when a node's on-disk queue of unsent results overflows (1 GiB or 7 days by default), it drops the oldest results and reports that interval as "no data".

## Response time history

The response time chart picks its resolution from the range: raw results up to 6 hours, 5-minute aggregates up to 7 days, hourly up to 90 days, daily beyond that, at most about 1000 points per location.

## Who can edit checks

Project editors and above create, edit, pause and delete checks; viewers only read them ([Roles](https://docs.monitorly.cloud/concepts/workspaces.md#roles)).
