for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the `tvi/monitor-bundle` project.
*
* (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Tvi\MonitorBundle\Check\fs\DiskUsage;
use JMS\Serializer\Annotation as JMS;
use ZendDiagnostics\Check\DiskUsage;
use Tvi\MonitorBundle\Check\CheckAbstract;
* @JMS\ExclusionPolicy("all")
* @author Vladimir Turnaev <[email protected]>
class Check extends CheckAbstract
{
* @var DiskUsage
private $checker;
* @param int $warningThreshold A number between 0 and 100
* @param int $criticalThreshold A number between 0 and 100
* @param string $path The disk path to check, i.e. '/tmp' or 'C:' (defaults to /)
* @throws InvalidArgumentException
public function __construct($warningThreshold, $criticalThreshold, $path = '/')
$this->checker = new DiskUsage($warningThreshold, $criticalThreshold, $path);
}
* {@inheritdoc}
public function check()
return $this->checker->check();