Skip to content

Health Indicator Data DTO Reference

The NjoguAmos\Waha\Dto\HealthIndicatorData represents information for a specific health indicator (e.g., disk space, database connection).

status\NjoguAmos\Waha\Enums\HealthIndicatorStatus

The status of the indicator. Usually up or down.

php
$data->status;        // \NjoguAmos\Waha\Enums\HealthIndicatorStatus::UP
$data->status->value; // "up"

pathstring|null

The path being monitored (for disk space indicators).

php
$data->path; // "/tmp/whatsapp-files"

diskPathstring|null

The disk path being monitored (for disk space indicators).

php
$data->diskPath; // "/"

freeint|null

The free space in bytes (for disk space indicators).

php
$data->free; // 132979355648

thresholdint|null

The threshold space in bytes (for disk space indicators).

php
$data->threshold; // 104857600

messagestring|null

A status message (for database connection indicators).

php
$data->message; // "Up and running"

Released under the MIT License.