Changeset 6da11a18f2e863fcd07c4589db9714d81692d05f

Show
Ignore:
Timestamp:
12/30/08 20:39:19 (9 years ago)
Author:
Umar Farooq <umar@omniti.com>
git-committer:
Umar Farooq <umar@omniti.com> 1230669559 +0000
git-parent:

[4b269cd5ec5afe986462728c72d16ad3daf0018e]

git-author:
Umar Farooq <umar@omniti.com> 1230669559 +0000
Message:

changes to demonstrate streaming live data

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/graph_panel.inc

    r4b269cd r6da11a1  
    4747} 
    4848 
     49function plot_iframe_data(uuid, metric_name, ydata, xdata) { 
     50maingraph.ReconGraphPlotPoint(uuid, metric_name, xdata, ydata); 
     51} 
     52 
    4953 
    5054function stream_data() { 
    51         maingraph.ReconGraphClear(); 
    52 //    while(streaming){ 
    53         var starty = 124688.366;  
    54         var startx = 1228737600000; 
    55         for(var i=0; i<10; i++){ 
    56            startx+=10000000; 
    57            starty += 10000*i; 
    58            maingraph.ReconGraphPlotPoint('412', 'average', startx, starty); 
    59            maingraph.ReconGraphPlotPoint('313', 'average', startx, starty); 
    60            maingraph.ReconGraphPlotPoint('1179', 'allocator_requests', startx, starty); 
    61         } 
    62   //  } 
     55 
     56/* 
     57maingraph.modal({ 
     58  containerId: 'StreamingModalContainer', 
     59  close: 'true', 
     60  overlayCss: { 
     61    backgroundColor: '#000000', 
     62    cursor: 'wait' 
     63  }, 
     64  containerCss: { 
     65   backgroundColor: '#FFFFFF', 
     66   left: '30%', 
     67   top: '10%', 
     68   border: '2px solid #000000', 
     69   padding: '5px' 
     70  }, 
     71}); 
     72 
     73maingraph.ReconGraphClear(); 
     74$('#streambox').html('<iframe src="http://postgres83dev.office.omniti.com/reconnoiter/chunked.html"></iframe>'); 
     75*/ 
     76 
     77maingraph.ReconGraphClear(); 
     78$('#streambox').html('<iframe src="http://bob.office.omniti.com/data"></iframe>'); 
     79 
    6380} 
    6481function set_current_graph_id(id) { 
     
    411428        </div> 
    412429</div> 
     430<div id="streambox" style="display:none"></div> 
    413431 
    414432<div> 
  • ui/web/htdocs/index.php

    rcee63b8 r6da11a1  
    88<link href="css/colorpicker.css" rel="stylesheet" type="text/css" /> 
    99<link rel="icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" /> 
     10<script>document.domain='omniti.com';</script> 
    1011<script src="js/htmlentities.js"></script> 
    1112<script src="js/json2.js"></script>