Method: OneviewSDK::API200::Switch#statistics

Defined in:
lib/oneview-sdk/resource/api200/switch.rb

#statistics(port_name = nil) ⇒ Hash

Get statistics for a switch or for the specified port.

Parameters:

  • port_name (String) (defaults to: nil)

    port to retrieve statistics

Returns:

  • (Hash)

    Switch statistics



71
72
73
74
# File 'lib/oneview-sdk/resource/api200/switch.rb', line 71

def statistics(port_name = nil)
  response = @client.rest_get("#{@data['uri']}/statistics/#{port_name}")
  response.body
end