PHP Class EricMakesStuff\ServerMonitor\Monitors\DiskUsageMonitor

Inheritance: extends BaseMonitor
Show file Open project: ericmakesstuff/laravel-server-monitor Class Usage Examples

Protected Properties

Property Type Description
$alarmPercentage integer
$freeSpace integer
$path string
$percentageUsed float
$totalSpace integer
$usedSpace integer

Public Methods

Method Description
__construct ( array $config )
getAlarmPercentage ( ) : string
getFreeSpace ( ) : string
getPath ( ) : mixed | string
getPercentageUsed ( ) : string
getTotalSpace ( ) : string
getUsedSpace ( ) : string
runMonitor ( )

Method Details

__construct() public method

public __construct ( array $config )
$config array

getAlarmPercentage() public method

public getAlarmPercentage ( ) : string
return string

getFreeSpace() public method

public getFreeSpace ( ) : string
return string

getPath() public method

public getPath ( ) : mixed | string
return mixed | string

getPercentageUsed() public method

public getPercentageUsed ( ) : string
return string

getTotalSpace() public method

public getTotalSpace ( ) : string
return string

getUsedSpace() public method

public getUsedSpace ( ) : string
return string

runMonitor() public method

public runMonitor ( )

Property Details

$alarmPercentage protected property

protected int $alarmPercentage
return integer

$freeSpace protected property

protected int $freeSpace
return integer

$path protected property

protected string $path
return string

$percentageUsed protected property

protected float $percentageUsed
return float

$totalSpace protected property

protected int $totalSpace
return integer

$usedSpace protected property

protected int $usedSpace
return integer