| 1 | <?php |
||
| 16 | class SolrMonitoring extends AbstractMonitoring |
||
| 17 | { |
||
| 18 | private $solrPingUrl; |
||
| 19 | /** |
||
| 20 | * @param array $config |
||
| 21 | * @param String $name |
||
| 22 | */ |
||
| 23 | public function __construct($config, $name) |
||
| 28 | /** |
||
| 29 | * Check solr ping url. |
||
| 30 | * @return metric 0 Ok, 1 KO |
||
| 31 | */ |
||
| 32 | public function getMetric() |
||
| 39 | /** |
||
| 40 | * @return string "None" |
||
| 41 | */ |
||
| 42 | public function getUnit() |
||
| 46 | /** |
||
| 47 | * @return integer 1 |
||
| 48 | */ |
||
| 49 | public function getAlarms() |
||
| 57 | } |
||
| 58 |