$measurement
$measurement : \Drupal\strata\Estimate\Measurement
What a measurement is projected to cost.
Broken down rather than totalled, because the total answers no question anybody asks. An operator looking at a bill wants to know which realm is spending it, and the answer is almost always one of two things: files, which are most of the bytes and get almost none of the compression benefit, or the tree, which scales with how many subjects a site has rather than how busy it is.
Storage and requests are reported separately for the same reason. They are priced on different axes and pulled by different dials: bytes by retention and by what is captured, requests by the flush interval alone.
$measurement : \Drupal\strata\Estimate\Measurement
__construct(\Drupal\strata\Estimate\Measurement $measurement, array$realmBytes = [], int $treeBytes = 0, int $codeBytes = 0, int $fileBytes = 0, float $opsPerDay = 0.0, int $writesPerMonth = 0, int $readsPerMonth = 0, float $compressionRatio = 1.0, float $deltaReduction = 0.0, float $collapse = 1.0, list $notes = []) : mixed
Constructs a projection.
| \Drupal\strata\Estimate\Measurement | $measurement | What was projected. |
| array |
$realmBytes | Realm value keyed to stored bytes over the retention period. |
| int | $treeBytes | Stored bytes of base manifests over the retention period. |
| int | $codeBytes | Stored bytes of the code realm over the retention period. |
| int | $fileBytes | Stored bytes of file content, zero when the file realm is off. |
| float | $opsPerDay | Operations captured a day. |
| int | $writesPerMonth | Write requests a month, which is the flush count plus what compaction rewrites. |
| int | $readsPerMonth | Read requests a month, which only verification and restore generate. |
| float | $compressionRatio | The ratio applied to journal bytes. |
| float | $deltaReduction | Share of journal bytes delta coding removed before compression. |
| float | $collapse | The byte-weighted collapse factor the retention ladder achieves. |
| list |
$notes | What the reader should know about this projection, such as a dial that is doing most of the work or an input that was clamped. |