__construct() __construct(\Drupal\strata\Health\Finding $finding, string $rung = 'observe') : mixed Constructs an event. Parameters \Drupal\strata\Health\Finding $finding What was found. string $rung The repair rung the ladder puts this code on. Returns mixed —
name() name() : string The name this event is dispatched under. Returns string — One of the constants on StrataEvents.
needsAttention() needsAttention() : bool Whether this finding is one a human has to act on. Returns bool — TRUE at ERROR and above.
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.