Class: Softlayer::Monitoring::Robot

Inherits:
Entity show all
Defined in:
lib/softlayer/monitoring/robot.rb,
lib/softlayer/monitoring/robot/status.rb

Defined Under Namespace

Classes: Representer, Status

Constant Summary collapse

SERVICE =
'SoftLayer_Monitoring_Robot'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Softlayer::Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Softlayer::Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#accountObject

Returns the value of attribute account.



11
12
13
# File 'lib/softlayer/monitoring/robot.rb', line 11

def 
  @account
end

#account_idObject

Returns the value of attribute account_id.



6
7
8
# File 'lib/softlayer/monitoring/robot.rb', line 6

def 
  @account_id
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/softlayer/monitoring/robot.rb', line 7

def id
  @id
end

#monitoring_agent_countObject

Returns the value of attribute monitoring_agent_count.



10
11
12
# File 'lib/softlayer/monitoring/robot.rb', line 10

def monitoring_agent_count
  @monitoring_agent_count
end

#monitoring_agentsObject

Returns the value of attribute monitoring_agents.



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

def monitoring_agents
  @monitoring_agents
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/softlayer/monitoring/robot.rb', line 8

def name
  @name
end

#robot_statusObject

Returns the value of attribute robot_status.



13
14
15
# File 'lib/softlayer/monitoring/robot.rb', line 13

def robot_status
  @robot_status
end

#software_componentObject

Returns the value of attribute software_component.



14
15
16
# File 'lib/softlayer/monitoring/robot.rb', line 14

def software_component
  @software_component
end

#status_idObject

Returns the value of attribute status_id.



9
10
11
# File 'lib/softlayer/monitoring/robot.rb', line 9

def status_id
  @status_id
end

Instance Method Details

#check_connectionObject



16
17
18
# File 'lib/softlayer/monitoring/robot.rb', line 16

def check_connection
  request(:check_connection, Boolean)
end

#deploy_monitoring_agents(message) ⇒ Object

configuration_template_group



21
22
23
# File 'lib/softlayer/monitoring/robot.rb', line 21

def deploy_monitoring_agents(message)
  request(:deploy_monitoring_agents, Softlayer::Provisioning::Version1::Transaction, message)
end

#get_accountObject



25
26
27
# File 'lib/softlayer/monitoring/robot.rb', line 25

def 
  request(:get_account, Softlayer::Account)
end

#get_available_configuration_groupsObject



29
30
31
# File 'lib/softlayer/monitoring/robot.rb', line 29

def get_available_configuration_groups
  request(:get_available_configuration_groups, Array[Softlayer::Monitoring::Agent::Configuration::Template::Group])
end

#get_monitoring_agentsObject



33
34
35
# File 'lib/softlayer/monitoring/robot.rb', line 33

def get_monitoring_agents
  request(:get_monitoring_agents, Array[Softlayer::Monitoring::Agent])
end

#get_objectObject



37
38
39
# File 'lib/softlayer/monitoring/robot.rb', line 37

def get_object
  request(:get_object, Softlayer::Monitoring::Robot)
end

#get_robot_statusObject



41
42
43
# File 'lib/softlayer/monitoring/robot.rb', line 41

def get_robot_status
  request(:get_robot_status, Softlayer::Monitoring::Robot::Status)
end

#get_software_componentObject



45
46
47
# File 'lib/softlayer/monitoring/robot.rb', line 45

def get_software_component
  request(:get_software_component, Softlayer::Software::Component)
end

#reset_statusObject



49
50
51
# File 'lib/softlayer/monitoring/robot.rb', line 49

def reset_status
  request(:reset_status, Boolean)
end