| 1 | <?php |
||
| 17 | class HttpMonitoring extends AbstractMonitoring |
||
| 18 | { |
||
| 19 | private $url; |
||
| 20 | private $pattern; |
||
| 21 | /** |
||
| 22 | * @param array $config |
||
| 23 | * @param String $name |
||
| 24 | */ |
||
| 25 | public function __construct($config, $name) |
||
| 31 | /** |
||
| 32 | * Check solr ping url. |
||
| 33 | * @return metric 0 Ok, 1 KO |
||
| 34 | */ |
||
| 35 | public function getMetric() |
||
| 42 | /** |
||
| 43 | * @return string "None" |
||
| 44 | */ |
||
| 45 | public function getUnit() |
||
| 49 | /** |
||
| 50 | * @return integer 1 |
||
| 51 | */ |
||
| 52 | public function getAlarms() |
||
| 60 | } |
||
| 61 |