\Drupal\strata\Verify VerifyReport

What one verify pass found.

Counted rather than described: a pass over a year of history touches millions of frames, so the report holds totals plus the findings, and the findings are already clamped by Finding itself.

A pass that read everything and found nothing is the only clean result. Anything else names what it could not read, which is what makes "the backups work" a measured claim rather than an assumption.

Summary

Methods
Properties
Constants
__construct
isClean
worst
byCode
summary
jsonSerialize
commits
trees
frames
segments
bytes
findings
seconds
complete
No public constants found
No protected methods found
No protected properties found
No protected constants found
humanBytes
No private properties found
No private constants found

Properties

$commits

$commits : int

Type

int

$trees

$trees : int

Type

int

$frames

$frames : int

Type

int

$segments

$segments : int

Type

int

$bytes

$bytes : int

Type

int

$findings

$findings : array

Type

array<string|int, mixed>

$seconds

$seconds : float

Type

float

$complete

$complete : bool

Type

bool

Methods

__construct()

__construct(int  $commits = 0, int  $trees = 0, int  $frames = 0, int  $segments = 0, int  $bytes = 0, list<\Drupal\strata\Health\Finding>  $findings = [], float  $seconds = 0.0, bool  $complete = true) : mixed

Constructs a report.

Parameters

int $commits

Commits walked.

int $trees

Tree nodes read.

int $frames

Frames fetched and decoded.

int $segments

Segment manifests read.

int $bytes

Decoded bytes verified.

list<\Drupal\strata\Health\Finding> $findings

What went wrong, in the order it was found.

float $seconds

How long the pass took.

bool $complete

FALSE when the pass stopped at a limit rather than reaching the root of history, so a clean result covers only what it walked.

Returns

mixed —

isClean()

isClean() : bool

Whether everything the pass touched read back correctly.

Returns

bool —

TRUE when nothing was found.

worst()

worst() : int

The worst severity found.

Returns

int —

A Finding severity ordinal, or Finding::INFO when the pass was clean.

byCode()

byCode() : array<string,int>

How many findings there are per code.

Returns

array

Finding code keyed to count, highest first.

summary()

summary() : string

A one-line summary for a log entry or a command's output.

Returns

string —

The summary.

jsonSerialize()

jsonSerialize() : array<string,mixed>

{@inheritdoc}

Returns

array

The report as a plain array.

humanBytes()

humanBytes(int  $bytes) : string

Renders a byte count at a readable scale.

Parameters

int $bytes

The count.

Returns

string —

For example "4.0 MiB".