[Reconnoiter-devel] [reconnoiter commit] r548 - trunk/ui/web/htdocs

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Tue Dec 30 15:39:20 EST 2008


Author: umar
Date: 2008-12-30 15:39:19 -0500 (Tue, 30 Dec 2008)
New Revision: 548

Modified:
   trunk/ui/web/htdocs/graph_panel.inc
   trunk/ui/web/htdocs/index.php
Log:
changes to demonstrate streaming live data

Modified: trunk/ui/web/htdocs/graph_panel.inc
===================================================================
--- trunk/ui/web/htdocs/graph_panel.inc	2008-12-23 23:19:27 UTC (rev 547)
+++ trunk/ui/web/htdocs/graph_panel.inc	2008-12-30 20:39:19 UTC (rev 548)
@@ -46,20 +46,37 @@
         }, { }); 
 }
 
+function plot_iframe_data(uuid, metric_name, ydata, xdata) {
+maingraph.ReconGraphPlotPoint(uuid, metric_name, xdata, ydata);
+}
 
+
 function stream_data() {
-        maingraph.ReconGraphClear();
-//    while(streaming){
-        var starty = 124688.366; 
-        var startx = 1228737600000;
-        for(var i=0; i<10; i++){
-           startx+=10000000;
-           starty += 10000*i;
-	   maingraph.ReconGraphPlotPoint('412', 'average', startx, starty);
-	   maingraph.ReconGraphPlotPoint('313', 'average', startx, starty);
-	   maingraph.ReconGraphPlotPoint('1179', 'allocator_requests', startx, starty);
-        }
-  //  }
+
+/*
+maingraph.modal({
+  containerId: 'StreamingModalContainer',
+  close: 'true',
+  overlayCss: {
+    backgroundColor: '#000000',
+    cursor: 'wait'
+  },
+  containerCss: {
+   backgroundColor: '#FFFFFF',
+   left: '30%',
+   top: '10%',
+   border: '2px solid #000000',
+   padding: '5px'
+  },
+});
+
+maingraph.ReconGraphClear();
+$('#streambox').html('<iframe src="http://postgres83dev.office.omniti.com/reconnoiter/chunked.html"></iframe>');
+*/
+
+maingraph.ReconGraphClear();
+$('#streambox').html('<iframe src="http://bob.office.omniti.com/data"></iframe>');
+
 }
 function set_current_graph_id(id) {
   $(".rememberGraph").fadeOut('fast');
@@ -410,6 +427,7 @@
 		<div class="no modalClose">No</div><div class="yes">Yes</div>
 	</div>
 </div>
+<div id="streambox" style="display:none"></div>
 
 <div>
 	<div id="maingraphHolder">

Modified: trunk/ui/web/htdocs/index.php
===================================================================
--- trunk/ui/web/htdocs/index.php	2008-12-23 23:19:27 UTC (rev 547)
+++ trunk/ui/web/htdocs/index.php	2008-12-30 20:39:19 UTC (rev 548)
@@ -7,6 +7,7 @@
 <link href="css/datepicker.css" rel="stylesheet" type="text/css" />
 <link href="css/colorpicker.css" rel="stylesheet" type="text/css" />
 <link rel="icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" />
+<script>document.domain='omniti.com';</script>
 <script src="js/htmlentities.js"></script>
 <script src="js/json2.js"></script>
 <script src="js/jquery.min.js"></script>



More information about the Reconnoiter-devel mailing list