/**
  * Get the list of metrics name for a service template
  *
  * @method POST
  * @route /configuration/graphtemplate/listMetrics
  */
 public function getListMetricsAction()
 {
     $di = Di::getDefault();
     $router = $di->get('router');
     $svcTmplId = $router->request()->param('svc_tmpl_id', 0);
     $metrics = GraphView::getMetricsNameByServiceTemplate($svcTmplId);
     $router->response()->json(array('success' => true, 'data' => $metrics));
 }