\Drupal\strata\Event BudgetEvent

Stored bytes or projected spend crossed a configured ceiling.

Summary

Methods
Properties
Constants
__construct
name
jsonSerialize
assessment
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

$assessment

$assessment : \Drupal\strata\Budget\BudgetAssessment

Type

BudgetAssessment

Methods

__construct()

__construct(\Drupal\strata\Budget\BudgetAssessment  $assessment) : mixed

Constructs an event.

Parameters

\Drupal\strata\Budget\BudgetAssessment $assessment

What was measured and what the ladder decided to do about it.

Returns

mixed —

name()

name() : string

The name this event is dispatched under.

Returns

string —

One of the constants on StrataEvents.

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.