Drop /show/graph

refs #46
This commit is contained in:
Alexander A. Klimov 2017-09-21 17:06:12 +02:00
parent e299d9c816
commit 6dac5e7dad

View file

@ -40,39 +40,6 @@ class ShowController extends Controller
$this->params->shift('r');
}
public function graphAction()
{
$template = $this->loadTemplate();
$title = $template->getTitle();
if (false === strpos($title, '$')) {
$template->setTitle('$hostname');
} else {
if (false === strpos($title, '$hostname')) {
$template->setTitle('$hostname: ' . $template->getTitle());
}
}
$query = $this->graphiteWeb
->select()
->from(
$template->getFilterString()
);
foreach ($this->params->toArray() as $val) {
$query->where($val[0], urldecode($val[1]));
}
$img = $this->applyGraphParams(current($query->getImages($template)))
->showLegend(false);
$this->_helper->layout()->disableLayout();
$image = $img->fetchImage();
header('Content-Type: image/png');
echo $image;
exit;
}
public function XXXserviceAction()
{
$this->handleDatasourceToggles();