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

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r822 r824  
    208208        'Wireless' => array('Type' => 'TNetworkInterfaceWirelessListInterface', 'Caption' => 'Bezdrátové spoje', 'Default' => ''),
    209209        'Ports' => array('Type' => 'TDevicePortListInterface', 'Caption' => 'Síťové porty', 'Default' => ''),
     210        'Latency' => array('Type' => 'TDeviceInterfaceLatencyListInterface', 'Caption' => 'Odezva sítě', 'Default' => ''),
    210211      ),
    211212      'AfterInsert' => array($this, 'AfterInsertNetworkInterface'),
     
    257258        'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),
    258259        'UpDown' => array('Type' => 'TNetworkPortUpDown', 'Caption' => 'Změny stavu', 'Default' => ''),
     260      ),
     261    ));
     262    $this->System->FormManager->RegisterClass('NetworkInterfaceLatency', array(
     263      'Title' => 'Sťová odezva',
     264      'Table' => 'NetworkInterfaceLatency',
     265      'Items' => array(
     266        'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''),
     267        'Interface' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní', 'Default' => ''),
     268        'Value' => array('Type' => 'Float', 'Caption' => 'Hodnota', 'Default' => '0', 'Suffix' => 'ms'),
    259269      ),
    260270    ));
     
    583593      'Type' => 'ManyToOne',
    584594      'Table' => 'NetworkPort',
     595      'Id' => 'Id',
     596      'Ref' => 'Interface',
     597      'Filter' => '1',
     598    ));
     599    $this->System->FormManager->RegisterFormType('TDeviceInterfaceLatencyListInterface', array(
     600      'Type' => 'ManyToOne',
     601      'Table' => 'NetworkInterfaceLatency',
    585602      'Id' => 'Id',
    586603      'Ref' => 'Interface',
Note: See TracChangeset for help on using the changeset viewer.