anmolbabu has uploaded a new change for review.

Change subject: gluster-nagios-monitoring : refactored service names
......................................................................

gluster-nagios-monitoring : refactored service names

refactored service names in accordance with new
service names.

Change-Id: I999d76bb9ecc695d631defe0d5c6b704f853acc9
Signed-off-by: Anmol Babu <anb...@redhat.com>
---
M gluster-nagios-monitoring/src/js/trends.js
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/samples-uiplugins 
refs/changes/39/27439/1

diff --git a/gluster-nagios-monitoring/src/js/trends.js 
b/gluster-nagios-monitoring/src/js/trends.js
index 85347f4..81ca8cb 100644
--- a/gluster-nagios-monitoring/src/js/trends.js
+++ b/gluster-nagios-monitoring/src/js/trends.js
@@ -71,7 +71,7 @@
                 switch (selectedEntityType) {
                 case "Host":
                     hosts[0] = selectedEntity;
-                    services =  ["Cpu_Utilization" , "Memory_Utilization" , 
"Network_Utilization" , "Disk_Utilization"];
+                    services =  ["Cpu Utilization" , "Memory Utilization" , 
"Network Utilization" , "Disk Utilization"];
                     
this.setGraphs(graphUtils.getGraphs(pnp4NagiosUrl,hosts,services));
                     break;
                 case "Volume":
@@ -100,7 +100,7 @@
                             }
                         }
                         
-                        services = ["Volume_Utilization_-_" + treeEntity];
+                        services = ["Volume Utilization - " + treeEntity];
                         graphUrls = 
graphUtils.getGraphs(pnp4NagiosUrl,hosts,services);
                         var length = graphUrls.length;
                         volumeService.getBricks(clusterId, 
treeParentId).then(function(bricks) {
@@ -124,7 +124,7 @@
                     break;
                 case "Hosts" :
                     hostService.getHosts().then(function(tHosts) {
-                        services[0] = "Cpu_Utilization";
+                        services[0] = "Cpu Utilization";
                         for(var i = 0 ; i < tHosts.length; i++) {
                             if(tHosts[i].cluster.id == treeParentId) {
                                 hosts[j] = tHosts[i].name;
@@ -140,7 +140,7 @@
                     hosts[0] = treeEntity;
                     
volumeService.getVolumes(treeParentId).then(function(volumes) {
                        for(var i = 0 ; i < volumes.length ; i++) {
-                           services[i] = ["Volume_Utilization_-_" + 
volumes[i].name];
+                           services[i] = ["Volume Utilization - " + 
volumes[i].name];
                        }
                        
caller.setGraphs(graphUtils.getGraphs(pnp4NagiosUrl,hosts,services));
                     });
@@ -148,7 +148,7 @@
                 case "System" :
                 default :
                     clusterService.getClusters().then(function(clusters) {
-                        services[0] = "Cluster_Utilization";
+                        services[0] = "Cluster Utilization";
                         for(var i = 0 ; i < clusters.length ; i++) {
                             hosts[i] = clusters[i].name;
                         }


-- 
To view, visit http://gerrit.ovirt.org/27439
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I999d76bb9ecc695d631defe0d5c6b704f853acc9
Gerrit-PatchSet: 1
Gerrit-Project: samples-uiplugins
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anb...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to