Class: SoftLayer::NetworkMonitorQueryType

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

Overview

This struct represents a network monitor query type used for creating new network monitors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(query_type_data) ⇒ NetworkMonitorQueryType

Returns a new instance of NetworkMonitorQueryType.



45
46
47
48
49
50
# File 'lib/softlayer/NetworkMonitor.rb', line 45

def initialize(query_type_data)
  self.argument_description = query_type_data['arugmentDescription']
  self.description          = query_type_data['description']
  self.id                   = query_type_data['monitorLevel']
  self.name                 = query_type_data['name']
end

Instance Attribute Details

#argument_descriptionObject

Returns the value of attribute argument_description

Returns:

  • (Object)

    the current value of argument_description



44
45
46
# File 'lib/softlayer/NetworkMonitor.rb', line 44

def argument_description
  @argument_description
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



44
45
46
# File 'lib/softlayer/NetworkMonitor.rb', line 44

def description
  @description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



44
45
46
# File 'lib/softlayer/NetworkMonitor.rb', line 44

def id
  @id
end

#monitor_levelObject

Returns the value of attribute monitor_level

Returns:

  • (Object)

    the current value of monitor_level



44
45
46
# File 'lib/softlayer/NetworkMonitor.rb', line 44

def monitor_level
  @monitor_level
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



44
45
46
# File 'lib/softlayer/NetworkMonitor.rb', line 44

def name
  @name
end