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

ApplicationProbe

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

class

ApplicationProbe

ApplicationProbe.php:20

What the application itself says about its health: the metrics its own MetricsController answers (GET api/monitoring/metrics.json) -- php and opcache, the packages and their versions, and whatever the application counts (users, documents, jobs waiting...) through its providers.

class MMO\admin\monitoring\probes\ApplicationProbe extends MMO\admin\monitoring\aProbe
Espace de noms
MMO\admin\monitoring\probes
Étend
aProbe
The route answers a token only, sent as `X-Hub-Token`: a target's `metricsToken` in the hub's credentials file, or the one of `*` for every target. A target without one is not asked. Metrics: the application's, prefixed `app.` (`app.php.memoryPeakMb`, `app.users.active`...). Facts: the application's, prefixed the same. Its checks (`{name, status, message}`) make the reading's status.

Constantes3

DESCRIPTION

const DESCRIPTION = 'the application\'s own metrics and checks (MetricsController)'

KIND

const KIND = 'target'

NAME

const NAME = 'application'

Propriétés1

path

string $path = 'api/monitoring/metrics.json'
Type
string

Méthodes5

parse($data, $reading)

ApplicationProbe.php:60
function parse(array $data, MMO\admin\monitoring\Reading $reading): void
$dataarraywhat MetricsController answered: {metrics, counters, facts, checks}
$readingReadingfilled
retournevoid

probe($subject, $reading, $previous)

ApplicationProbe.php:35
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