Add Grafana

This commit is contained in:
Steffen Lange 2019-08-19 14:00:45 +02:00
parent df52860488
commit 153b86bf4e

14
modules/Grafana.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class Grafana extends PatchBase {
function __construct() {
parent::__construct('Grafana Labs', 'Grafana', 'https://grafana.com/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/grafana/grafana/releases/latest', true))
return $this->parse_json('tag_name');
return false;
}
}
?>