Class: Softlayer::Scale::Policy::Trigger::ResourceUse::Watch

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/scale/policy/trigger/resource_use/watch.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Scale_Policy_Trigger_ResourceUse_Watch'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from 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 Model::Operations

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

Instance Attribute Details

#algorithmObject

Returns the value of attribute algorithm.



8
9
10
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 8

def algorithm
  @algorithm
end

#create_dateObject

Returns the value of attribute create_date.



9
10
11
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 9

def create_date
  @create_date
end

#delete_flagObject

Returns the value of attribute delete_flag.



10
11
12
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 10

def delete_flag
  @delete_flag
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 11

def id
  @id
end

#metricObject

Returns the value of attribute metric.



12
13
14
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 12

def metric
  @metric
end

#modify_dateObject

Returns the value of attribute modify_date.



13
14
15
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 13

def modify_date
  @modify_date
end

#operatorObject

Returns the value of attribute operator.



14
15
16
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 14

def operator
  @operator
end

#periodObject

Returns the value of attribute period.



15
16
17
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 15

def period
  @period
end

#scale_policy_triggerObject

Returns the value of attribute scale_policy_trigger.



18
19
20
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 18

def scale_policy_trigger
  @scale_policy_trigger
end

#scale_policy_trigger_idObject

Returns the value of attribute scale_policy_trigger_id.



16
17
18
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 16

def scale_policy_trigger_id
  @scale_policy_trigger_id
end

#valueObject

Returns the value of attribute value.



17
18
19
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 17

def value
  @value
end

Class Method Details

.create_object(message) ⇒ Object

template_object



21
22
23
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 21

def self.create_object(message)
  request(:create_object, Softlayer::Scale::Policy::Trigger::ResourceUse::Watch, message)
end

Instance Method Details

#delete_objectObject



25
26
27
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 25

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



30
31
32
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 30

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_all_possible_algorithmsObject



34
35
36
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 34

def get_all_possible_algorithms
  request(:get_all_possible_algorithms, Array[String])
end

#get_all_possible_metricsObject



38
39
40
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 38

def get_all_possible_metrics
  request(:get_all_possible_metrics, Array[String])
end

#get_all_possible_operatorsObject



42
43
44
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 42

def get_all_possible_operators
  request(:get_all_possible_operators, Array[String])
end

#get_objectObject



46
47
48
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 46

def get_object
  request(:get_object, Softlayer::Scale::Policy::Trigger::ResourceUse::Watch)
end

#get_scale_policy_triggerObject



50
51
52
# File 'lib/softlayer/scale/policy/trigger/resource_use/watch.rb', line 50

def get_scale_policy_trigger
  request(:get_scale_policy_trigger, Softlayer::Scale::Policy::Trigger::ResourceUse)
end