# airdress.unit.*

{/* Generated by scripts/generate-event-reference.mjs from https://schemas.airdress.co/operator/events/v1.json (operator v0.1.138).
    Do not edit by hand: run `pnpm generate:event-reference` and commit the result. */}

The events in the `airdress.unit` family. How to read a section, and what
each audience means, is on the [event reference](/events/) page.

## `airdress.unit.drift_detected`

Owner warn Functions

A registered unit stopped matching its manifest in one check (`runtime`, `control-target`, `volume`). Reported once per change; the operator never repairs it.

**Audience: owner.** About the airdress as a whole. Only the owner receives it: the owner's devices and the owner's subscriptions.

**Where it goes**

- **The operator's journal**, as one log line at this level, and **the event log**, where `airdress events tail` reads it.
- **Subscriptions** that name it, within its audience.
- **Functions bound to this operator's events** (`source: operator`).

**Versions**

- Version 1: first carried by operator v0.1.136.

**Data**

| Field | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| `check` | string | yes |  |
| `detail` | string | yes |  |
| `now` | string | yes | What it says now. |
| `unit` | string | yes |  |
| `was` | string | yes | What the check said last time: `Pass`, `Fail` or `Unknown`. |

<details>
<summary>JSON Schema</summary>

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "A registered unit stopped matching its manifest in one check (`runtime`, `control-target`, `volume`). Reported once per change; the operator never repairs it.",
  "properties": {
    "check": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "now": {
      "description": "What it says now.",
      "type": "string"
    },
    "unit": {
      "type": "string"
    },
    "was": {
      "description": "What the check said last time: `Pass`, `Fail` or `Unknown`.",
      "type": "string"
    }
  },
  "required": [
    "check",
    "detail",
    "now",
    "unit",
    "was"
  ],
  "title": "UnitDriftDetected",
  "type": "object"
}
```

</details>