MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

HttpProbe

MMO\admin\monitoring\probes · 1 symbol · generated 27 Oct 2026

class

HttpProbe

HttpProbe.php:21

Whether a site answers, from here -- what its users see: the status, the time, the text the application alone writes, and how long its certificate has left.

class MMO\admin\monitoring\probes\HttpProbe extends MMO\admin\monitoring\aProbe
Namespace
MMO\admin\monitoring\probes
Extends
aProbe
It asks what the deployment's health check asks: the target's `url` with its `healthPath`, expecting its `healthExpect` (deploy.json), so a site is judged the same way the release that put it there was. `{checksum}` in an expected text (a release's own stamp) is dropped: the hub does not know which release should answer. A site that does not answer, answers an error or lacks the expected text is critical, whatever the thresholds say. Metrics: `http.code`, `http.timeMs`, `http.ttfbMs`, `http.sizeKb`, `tls.daysLeft`. Facts: `url`, `ip`, `server`, `certificate`, `issuer`.

Index

Constants3

DESCRIPTION

const DESCRIPTION = 'answers from here: status, time, expected text, certificate'

KIND

const KIND = 'target'

NAME

const NAME = 'http'

Properties2

expect

bool $expect = true
Type
bool

Methods5

needsShell()

HttpProbe.php:37

it asks from here: a server out of reach does not stop it -- that is when it matters most

function needsShell(): bool
returnsbool

probe($subject, $reading, $previous)

HttpProbe.php:39
protected function probe( MMO\admin\entities\Server|MMO\admin\entities\Target $subject, MMO\admin\monitoring\Reading $reading, ?MMO\admin\monitoring\Reading $previous ): void
$subjectServer | Target
$readingReading
$previousnull | Reading
returnsvoid
Inherited members (14)
ConstantsDeclared byDescription
SERVERaProbea probe of servers
TARGETaProbea probe of targets: the sites of the project, one per client
PropertiesDeclared byDescription
enabledaProbe
hubaProbe
timeoutaProbe
MethodsDeclared byDescription
collect($subject, $previous, $time)aProbeLook at a subject, never throwing: whatever goes wrong is in the reading.
debugName()aProbe
failure($e)aProbe
Number($value)aProbe
Percent($part, $whole)aProbe
run($subject, $script)aProbeRun a script on the subject, stopped after $timeout seconds where timeout exists (a webspace may lack it).
Sections($output)aProbe
shell($subject)aProbe
__construct($options, $hub)aProbe