code()
code() : string
The stable dotted code every finding from this tripwire reports under.
Returns
string —For example "frame.digest_mismatch".
A table changed without anything capturing the change.
The coverage proof. Every other tripwire reports something wrong with what was stored; this one reports that something was NOT stored, which is the failure mode a backup system cannot detect any other way. A module writing directly to its own table, a query that ran before the statement tap was enabled, a migration executed outside Drupal - all of them look identical from inside the capture path, and all of them show up here.
It is a warning rather than an error. Drift means the history has a gap for one table, not that anything already stored is wrong, and the repair - capture the table's current rows - is a rebuild that runs without a human.
check(array $observation) : \Drupal\strata\Health\Finding|null
Evaluates the check against one observation.
| array | $observation | Scalars the caller already had in hand. A tripwire reads from this and nothing else. |
A finding when the symptom is present, or NULL when the check is satisfied.