Show
Ignore:
Timestamp:
11/26/08 21:06:47 (5 years ago)
Author:
Umar Farooq <umar@omniti.com>
git-committer:
Umar Farooq <umar@omniti.com> 1227733607 +0000
git-parent:

[d5f3933236fd3c615389600886bda1a30b0f9870]

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

functionality to use templates to create graphs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/lib/Reconnoiter_DB.php

    rcee63b8 r477b283  
    462462  } 
    463463 
    464   public function get_sid_name($sid) { 
    465     $sql = "select m.name from stratcon.mv_loading_dock_check_s m where m.sid = ?"; 
     464  public function make_name_for_template($sid) { 
     465    $sql = "select m.* from stratcon.mv_loading_dock_check_s m where m.sid = ?"; 
    466466    $binds = array(); 
    467467    if($sid) { 
     
    471471      $row = $sth->fetch(); 
    472472    } 
    473    return $row['name'];  
     473   return $row['target']."`".$row['module']."`".$row['name']."`".$sid; 
    474474  } 
    475475} 
  • ui/web/lib/Reconnoiter_GraphTemplate.php

    r9748163 r477b283  
    1919    } 
    2020  } 
     21  public $num_sids; 
     22 
    2123  public function variables() { 
    2224    return Reconnoiter_GraphTemplate::find_variables($this->row['json']); 
     
    9193  } 
    9294  public function find_sids($json) { 
     95    $this->num_sids = 0; 
    9396    $sids = array(); 
    9497    $vs = Reconnoiter_GraphTemplate::find_variables($json); 
     98    //vs will be multiD array containing variable names, their types (text/sid) and metric  
     99    //names and metric types 
     100     
    95101    foreach($vs as $v => $d) { 
    96102      if(isset($d['SID'])) { 
     103        $this->num_sids++; 
    97104        $sql = "select m.* from stratcon.mv_loading_dock_check_s as m"; 
    98105        $binds = array();