Class: SoftLayer::NetworkMonitorLevels
- Inherits:
-
Struct
- Object
- Struct
- SoftLayer::NetworkMonitorLevels
- 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
-
#monitor_level ⇒ Object
Returns the value of attribute monitor_level.
-
#response_level ⇒ Object
Returns the value of attribute response_level.
Instance Method Summary collapse
-
#initialize(monitor_levels_data) ⇒ NetworkMonitorLevels
constructor
A new instance of NetworkMonitorLevels.
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_level ⇒ Object
Returns the value of attribute monitor_level
12 13 14 |
# File 'lib/softlayer/NetworkMonitor.rb', line 12 def monitor_level @monitor_level end |
#response_level ⇒ Object
Returns the value of attribute response_level
12 13 14 |
# File 'lib/softlayer/NetworkMonitor.rb', line 12 def response_level @response_level end |