Opened 12 years ago

Last modified 12 years ago

#138 new

NetworkStats measurement type should be valid for ResourceMapping, Resource, or Interface objects

Reported by: chaos@bbn.com Owned by: somebody
Priority: major Milestone: GEC15 demo
Component: Clients Version:
Keywords: v1.1.0 Cc:
Dependencies:

Description (last modified by chaos@bbn.com)

The network_stats measurement should be valid for any of a ResourceMapping object (a sliver on a resource), an Interface object (an interface on a resource), or a Resource object (total measurements for a resource, not broken down by sliver or interface).

When i try to attach NetworkStats to a vmserver resource, the code:

   for hostname in workers.keys():
      network_stats = gmoc.NetworkStats()
      wstats = {}
      for stat_type in ['rx_bps', 'tx_bps', 'rx_pps', 'tx_pps']:
        wstats[stat_type] = worker_traffic[hostname][stat_type] 
      network_stats.addData(worker_traffic[hostname]['check_time'], wstats)
      workers[hostname].addMeasurement(network_stats)

yields:

Error: Measurement type 'network_stats' is not valid for Resource objects.

Change History (2)

comment:1 Changed 12 years ago by chaos@bbn.com

Description: modified (diff)
Summary: NetworkStats measurement type should be valid for Resource objectsNetworkStats measurement type should be valid for ResourceMapping, Resource, or Interface objectss

comment:2 Changed 12 years ago by chaos@bbn.com

Summary: NetworkStats measurement type should be valid for ResourceMapping, Resource, or Interface objectssNetworkStats measurement type should be valid for ResourceMapping, Resource, or Interface objects
Note: See TracTickets for help on using tickets.