Class: Softlayer::Scale::Policy::Trigger::ResourceUse::Watch
- 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
-
#algorithm ⇒ Object
Returns the value of attribute algorithm.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#delete_flag ⇒ Object
Returns the value of attribute delete_flag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metric ⇒ Object
Returns the value of attribute metric.
-
#modify_date ⇒ Object
Returns the value of attribute modify_date.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#period ⇒ Object
Returns the value of attribute period.
-
#scale_policy_trigger ⇒ Object
Returns the value of attribute scale_policy_trigger.
-
#scale_policy_trigger_id ⇒ Object
Returns the value of attribute scale_policy_trigger_id.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
-
.create_object(message) ⇒ Object
template_object.
Instance Method Summary collapse
- #delete_object ⇒ Object
-
#edit_object(message) ⇒ Object
template_object.
- #get_all_possible_algorithms ⇒ Object
- #get_all_possible_metrics ⇒ Object
- #get_all_possible_operators ⇒ Object
- #get_object ⇒ Object
- #get_scale_policy_trigger ⇒ Object
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
#algorithm ⇒ Object
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_date ⇒ Object
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_flag ⇒ Object
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 |
#id ⇒ Object
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 |
#metric ⇒ Object
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_date ⇒ Object
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 |
#operator ⇒ Object
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 |
#period ⇒ Object
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_trigger ⇒ Object
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_id ⇒ Object
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 |
#value ⇒ Object
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
Instance Method Details
#delete_object ⇒ Object
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() request(:edit_object, Boolean, ) end |
#get_all_possible_algorithms ⇒ Object
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_metrics ⇒ Object
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_operators ⇒ Object
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_object ⇒ Object
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_trigger ⇒ Object
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 |