code()
code() : string
The stable dotted code every finding from this tripwire reports under.
Returns
string —For example "frame.digest_mismatch".
A file's content is shifting rather than being edited, so fixed blocks are storing most of it.
Fixed blocks make a change cost the blocks it touched, which on a 256 MiB file with a 2 MiB in-place edit is 0.81%. An insertion is the case they cannot follow: every block after it moves, and the same file costs 60.79% on every change. The storage bill is usually the first sign.
A warning rather than an error. Nothing stored is wrong and every version restores exactly; the file is simply costing far more than it needs to, and the fix is a per-file-type decision only a person can make - whole-object storage, or the content-defined chunker at 4.29 MB/s.
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.