MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

HttpProbe

MMO\admin\monitoring\probes · 1 symbole · générée le 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
Espace de noms
MMO\admin\monitoring\probes
Étend
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

Constantes3

DESCRIPTION

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

KIND

const KIND = 'target'

NAME

const NAME = 'http'

Propriétés2

expect

bool $expect = true
Type
bool

Méthodes5

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
retournebool

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
retournevoid
Membres hérités (14)
ConstantesDéclaré parDescription
SERVERaProbea probe of servers
TARGETaProbea probe of targets: the sites of the project, one per client
PropriétésDéclaré parDescription
enabledaProbe
hubaProbe
timeoutaProbe
MéthodesDéclaré parDescription
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