\Drupal\strata\Event DrillEvent

A restore drill finished.

Dispatched whatever the verdict. A drill that passed is the signal an operator wants to see arriving on schedule, and its absence is itself information; a channel that only carried failures would make a silent drill indistinguishable from a healthy one.

Summary

Methods
Properties
Constants
__construct
name
isFailure
jsonSerialize
report
No public constants found
body
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$report

$report : \Drupal\strata\Drill\DrillReport

Type

DrillReport

Methods

__construct()

__construct(\Drupal\strata\Drill\DrillReport  $report) : mixed

Constructs an event.

Parameters

\Drupal\strata\Drill\DrillReport $report

What the drill found.

Returns

mixed —

name()

name() : string

The name this event is dispatched under.

Returns

string —

One of the constants on StrataEvents.

isFailure()

isFailure() : bool

Whether this drill is one an operator should be paged about.

Returns

bool —

TRUE when it did not pass.

jsonSerialize()

jsonSerialize() : array<string,mixed>

The payload a webhook sends and a log line records.

Returns

array

The event name, the site, the moment, and the body.

body()

body() : array<string,mixed>

What happened, as data.

Returns

array

The body, without the envelope.