PHP Class EricMakesStuff\ServerMonitor\Monitors\HttpPingMonitor

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

Protected Properties

Property Type Description
$allowRedirects boolean
$checkPhrase boolean | string
$responseCode integer
$responseContainsPhrase boolean
$responseContent string
$timeout integer
$url string

Public Methods

Method Description
__construct ( array $config )
getCheckPhrase ( )
getResponseCode ( )
getResponseContainsPhrase ( )
getResponseContent ( )
getUrl ( )
runMonitor ( )

Protected Methods

Method Description
checkResponseContains ( $html, $phrase )

Method Details

__construct() public method

public __construct ( array $config )
$config array

checkResponseContains() protected method

protected checkResponseContains ( $html, $phrase )

getCheckPhrase() public method

public getCheckPhrase ( )

getResponseCode() public method

public getResponseCode ( )

getResponseContainsPhrase() public method

getResponseContent() public method

public getResponseContent ( )

getUrl() public method

public getUrl ( )

runMonitor() public method

public runMonitor ( )

Property Details

$allowRedirects protected property

protected bool $allowRedirects
return boolean

$checkPhrase protected property

protected bool|string $checkPhrase
return boolean | string

$responseCode protected property

protected int $responseCode
return integer

$responseContainsPhrase protected property

protected bool $responseContainsPhrase
return boolean

$responseContent protected property

protected string $responseContent
return string

$timeout protected property

protected int $timeout
return integer

$url protected property

protected string $url
return string