From 83200bc63ffd27eebf6f17a8c290c3f007ce19e4 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sun, 26 Jul 2015 09:51:05 +0300 Subject: [PATCH] iss #19 - Return two points with from and to time and same value for graph displaying. --- zabbix/helperFunctions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix/helperFunctions.js b/zabbix/helperFunctions.js index a07a1e2..a3711f1 100644 --- a/zabbix/helperFunctions.js +++ b/zabbix/helperFunctions.js @@ -120,8 +120,9 @@ function (angular, _) { this.handleSLAResponse = function (itservice, slaProperty, slaObject) { var targetSLA = slaObject[itservice.serviceid].sla[0]; return { - target: itservice.name, + target: itservice.name + ' ' + slaProperty.name, datapoints: [ + [targetSLA[slaProperty.property], targetSLA.from * 1000], [targetSLA[slaProperty.property], targetSLA.to * 1000] ] };