# Source and freshness

> What documented, observed, planned and simulated mean in RackTrace, how old a source's data may be, and why unknown is not down.

URL: https://docs.racktrace.io/concepts/source-and-freshness

RackTrace keeps four kinds of knowledge apart, and every observation says where it comes from and how old it is. So you can always tell what someone entered, what a source saw, what is still to be built and what the simulation computed.

## The four states

| Label | What it means |
|---|---|
| **Documented** | Entered in RackTrace: by a person, an import, or a discovery sync you reviewed. This is the documentation. |
| **Observed** | Reported by a discovery source (UniFi, Meraki, FortiGate, the scanner, a JSON source, Auvik), with the source and the age of its last report: **Observed 12 min ago · UniFi**. |
| **Planned** | Intended, not built yet — a planned cable, for example. |
| **Simulated** | Computed by the [simulation](https://docs.racktrace.io/network/simulation) from the documentation and the sources: decision support, not a measurement. |

You find the labels at the top of a device page (**Documented** and one **Observed** label per discovery source of the device), next to a planned cable in its ports, in the sources strip on the **Discovery** page, in **All tenants** and above a simulation result. Hover over an **Observed** label to see the source, when the source observed it, when RackTrace received it and when it counts as old.

## Fresh, old and unknown

An observation is one of three:

- **Fresh** (green) — the source's last report is younger than the threshold of its kind.
- **Old** (amber, striped: **Observed 7 h ago — old**) — the report is older than the threshold. It says what was true then, not now: a port it reported down gets a dashed ring and counts as unknown, and the online or offline dot of the device turns grey. **All tenants** lists the source as a notice.
- **Unknown** (grey: **Not observed yet**) — the source never reported anything. That is not old (there is no data to be old) and not down or off.

> **Unknown is not down**
>
> A silent scanner, a source that never synced, a wrong configuration and a device that has failed stay different things. Only a fresh report that a link or device is down counts as down.

## Thresholds per kind of source

| Kind of source | Sources | Old after |
|---|---|---|
| Controller API | UniFi (Site Manager), Meraki (Dashboard API), FortiGate (REST API), NetBird | 6 hours |
| Scanner (SNMP) | The RackTrace agent | 6 hours |
| JSON push | A script or system that pushes the open JSON format | 6 hours |
| Import from another system | Auvik, JSON pull (URL) | 6 hours |
| Monitoring check | Every check | 3 of its intervals (each at least a minute): then the check is **unknown** |

The same threshold applies everywhere: on the device page, in the simulation and in **All tenants** one source is fresh or old in all three.

A source with a longer refresh interval (up to 1440 minutes) than its threshold, or one that is only read by hand (interval 0), shows as **old** between two syncs. That is how old its data really is; the threshold stays that of its kind. The tooltip of the label shows the refresh interval next to the threshold.

## Observation time and receipt time

Every report has two times: when the source **observed** it and when RackTrace **received** it. A pull source (UniFi, Meraki, FortiGate, Auvik, a JSON URL) observes at the start of the read. A push (the scanner, a JSON push) may send its own time: `observed_at` per scope or for the whole push, or the start time of a scan. The observation time counts for the freshness, as long as it is no more than 5 minutes after the receipt and no more than 24 hours before it — the same window as for monitoring measurements. A JSON push with a time outside that window is refused with a message that says why (check the clock of the sender); a scan whose start time is outside it gets a note on the source and counts from its receipt, as does a push without a time.

So a report observed 10 minutes ago and received now is **10 min** old, and the tooltip shows both times.
