Class: SoftLayer::NetworkMonitorLevels

Inherits:
Struct
  • Object
show all
Defined in:
lib/softlayer/NetworkMonitor.rb

Overview

This struct represents the network monitor levels of a server. It is roughly equivalent to SoftLayer data type SoftLayer_Network_Monitor_Version1_Query_Host_Stratum

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(monitor_levels_data) ⇒ NetworkMonitorLevels

Returns a new instance of NetworkMonitorLevels.



13
14
15
16
# File 'lib/softlayer/NetworkMonitor.rb', line 13

def initialize(monitor_levels_data)
  self.monitor_level  = monitor_levels_data['monitorLevel']
  self.response_level = monitor_levels_data['responseLevel']
end

Instance Attribute Details

#monitor_levelObject

Returns the value of attribute monitor_level

Returns:

  • (Object)

    the current value of monitor_level



12
13
14
# File 'lib/softlayer/NetworkMonitor.rb', line 12

def monitor_level
  @monitor_level
end

#response_levelObject

Returns the value of attribute response_level

Returns:

  • (Object)

    the current value of response_level



12
13
14
# File 'lib/softlayer/NetworkMonitor.rb', line 12

def response_level
  @response_level
end