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

ReleaseProbe

MMO\admin\monitoring\probes · 1 symbole · générée le 27 Oct 2026

class

ReleaseProbe

ReleaseProbe.php:20

What a target runs, read on the target itself: the release current points at, what its journal says of the last deployment, the releases kept, a lock left behind, the space its folders take and how old its last database dump is.

class MMO\admin\monitoring\probes\ReleaseProbe extends MMO\admin\monitoring\aProbe
Espace de noms
MMO\admin\monitoring\probes
Étend
aProbe
The same files mmo.admin's `status` reads (Target's layout: `current`, `releases/`, `deploy/deployments.json`, `deploy/.lock`, `backups/`), in one script, without the lock: it never writes. Metrics: `release.count`, `release.locked`, `release.ageDays` (since the last applied deployment), `size.releasesMb`, `size.sharedMb`, `size.backupsMb`, `backup.count`, `backup.ageHours` (only for a target with a database). Facts: `release`, `version`, `commit`, `ref`, `deployedAt`, `deployedBy`, `outcome` (of the last deployment, even a failed one), `previous`.

Constantes3

DESCRIPTION

const DESCRIPTION = 'the live release, its journal, a lock, the space taken, the last backup'

KIND

const KIND = 'target'

NAME

const NAME = 'release'

Propriétés1

sizes

bool $sizes = true
Type
bool

Méthodes4

parse($output, $target, $reading)

ReleaseProbe.php:56
function parse( string $output, MMO\admin\entities\Target $target, MMO\admin\monitoring\Reading $reading ): void
$outputstringwhat script printed
$targetTarget
$readingReadingfilled
retournevoid

parseJournal($raw, $current, $now, $reading)

ReleaseProbe.php:87
protected function parseJournal( string $raw, string $current, int $now, MMO\admin\monitoring\Reading $reading ): void
$rawstring
$currentstring
$nowint
$readingReading
retournevoid

probe($subject, $reading, $previous)

ReleaseProbe.php:28
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 (16)
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
appliesTo($subject)aProbe
collect($subject, $previous, $time)aProbeLook at a subject, never throwing: whatever goes wrong is in the reading.
debugName()aProbe
failure($e)aProbe
needsShell()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