Ignore:
Timestamp:
Apr 4, 2016, 8:41:19 PM (9 years ago)
Author:
chronos
Message:
  • Added: Network latency periodic measurement of network interfaces with local IP.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r818 r824  
    20052005   $Manager->Execute('ALTER TABLE `NetworkPortUpDown`
    20062006     ADD CONSTRAINT `NetworkPortUpDown_ibfk_1` FOREIGN KEY (`Port`) REFERENCES `NetworkPort` (`Id`);');
     2007}
     2008
     2009function UpdateTo824($Manager)
     2010{
     2011  $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkInterfaceLatency` (
     2012    `Id` int(11) NOT NULL AUTO_INCREMENT,
     2013    `Time` datetime NOT NULL,
     2014    `Interface` int(11) NOT NULL,
     2015    `Value` float NOT NULL,
     2016    PRIMARY KEY (`Id`),
     2017    KEY `Interface` (`Interface`)
     2018    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;');
     2019  $Manager->Execute('ALTER TABLE `NetworkInterfaceLatency`
     2020    ADD CONSTRAINT `NetworkInterfaceLatency_ibfk_1` FOREIGN KEY (`Interface`) REFERENCES `NetworkInterface` (`Id`);');
    20072021}
    20082022
     
    20982112      814 => array('Revision' => 817, 'Function' => 'UpdateTo817'),
    20992113      817 => array('Revision' => 818, 'Function' => 'UpdateTo818'),
     2114      818 => array('Revision' => 824, 'Function' => 'UpdateTo824'),
    21002115    ));
    21012116  }
Note: See TracChangeset for help on using the changeset viewer.