Class: Softlayer::Metric::Tracking::Object
- Inherits:
-
Entity
show all
- Defined in:
- lib/softlayer/metric/tracking/object.rb,
lib/softlayer/metric/tracking/object/data.rb,
lib/softlayer/metric/tracking/object/type.rb,
lib/softlayer/metric/tracking/object/virtual.rb,
lib/softlayer/metric/tracking/object/abstract.rb,
lib/softlayer/metric/tracking/object/bandwidth.rb,
lib/softlayer/metric/tracking/object/data/network.rb,
lib/softlayer/metric/tracking/object/hardware_server.rb,
lib/softlayer/metric/tracking/object/virtual/storage.rb,
lib/softlayer/metric/tracking/object/bandwidth/summary.rb,
lib/softlayer/metric/tracking/object/virtual_dedicated_rack.rb,
lib/softlayer/metric/tracking/object/virtual/storage/repository.rb,
lib/softlayer/metric/tracking/object/data/network/content_delivery.rb,
lib/softlayer/metric/tracking/object/data/network/content_delivery/account.rb
Defined Under Namespace
Modules: Bandwidth, Virtual
Classes: Abstract, Data, HardwareServer, Representer, Type, VirtualDedicatedRack
Constant Summary
collapse
- SERVICE =
'SoftLayer_Metric_Tracking_Object'
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#get_backbone_bandwidth_graph(graph_title = nil) ⇒ Object
-
#get_bandwidth_data(start_date_time = nil, end_date_time = nil, type = nil, rollup_seconds = nil) ⇒ Object
-
#get_bandwidth_graph(start_date_time = nil, end_date_time = nil, graph_type = nil, font_size = nil, graph_width = nil, graph_height = nil, do_not_show_time_zone = nil) ⇒ Object
-
#get_bandwidth_total(start_date_time = nil, end_date_time = nil, direction = nil, type = nil) ⇒ Object
-
#get_custom_graph_data(graph_container = nil) ⇒ Object
-
#get_details_for_date_range(start_date = nil, end_date = nil, graph_type = nil) ⇒ Object
-
#get_graph(start_date_time = nil, end_date_time = nil, graph_type = nil) ⇒ Object
-
#get_metric_data_types ⇒ Object
-
#get_object ⇒ Object
-
#get_summary(graph_type = nil) ⇒ Object
-
#get_summary_data(start_date_time = nil, end_date_time = nil, valid_types = nil, summary_period = nil) ⇒ Object
-
#get_type ⇒ Object
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
Returns the value of attribute data.
13
14
15
|
# File 'lib/softlayer/metric/tracking/object.rb', line 13
def data
@data
end
|
Returns the value of attribute id.
14
15
16
|
# File 'lib/softlayer/metric/tracking/object.rb', line 14
def id
@id
end
|
Returns the value of attribute label.
15
16
17
|
# File 'lib/softlayer/metric/tracking/object.rb', line 15
def label
@label
end
|
#resource_table_id ⇒ Object
Returns the value of attribute resource_table_id.
16
17
18
|
# File 'lib/softlayer/metric/tracking/object.rb', line 16
def resource_table_id
@resource_table_id
end
|
#start_date ⇒ Object
Returns the value of attribute start_date.
17
18
19
|
# File 'lib/softlayer/metric/tracking/object.rb', line 17
def start_date
@start_date
end
|
Returns the value of attribute type.
18
19
20
|
# File 'lib/softlayer/metric/tracking/object.rb', line 18
def type
@type
end
|
Instance Method Details
#get_backbone_bandwidth_graph(graph_title = nil) ⇒ Object
20
21
22
23
|
# File 'lib/softlayer/metric/tracking/object.rb', line 20
def get_backbone_bandwidth_graph(graph_title = nil)
message = {graph_title: graph_title}
request(:get_backbone_bandwidth_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
end
|
#get_bandwidth_data(start_date_time = nil, end_date_time = nil, type = nil, rollup_seconds = nil) ⇒ Object
25
26
27
28
|
# File 'lib/softlayer/metric/tracking/object.rb', line 25
def get_bandwidth_data(start_date_time = nil, end_date_time = nil, type = nil, rollup_seconds = nil)
message = {start_date_time: start_date_time, end_date_time: end_date_time, type: type, rollup_seconds: rollup_seconds}
request(:get_bandwidth_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
end
|
#get_bandwidth_graph(start_date_time = nil, end_date_time = nil, graph_type = nil, font_size = nil, graph_width = nil, graph_height = nil, do_not_show_time_zone = nil) ⇒ Object
30
31
32
33
|
# File 'lib/softlayer/metric/tracking/object.rb', line 30
def get_bandwidth_graph(start_date_time = nil, end_date_time = nil, graph_type = nil, font_size = nil, graph_width = nil, graph_height = nil, do_not_show_time_zone = nil)
message = {start_date_time: start_date_time, end_date_time: end_date_time, graph_type: graph_type, font_size: font_size, graph_width: graph_width, graph_height: graph_height, do_not_show_time_zone: do_not_show_time_zone}
request(:get_bandwidth_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
end
|
#get_bandwidth_total(start_date_time = nil, end_date_time = nil, direction = nil, type = nil) ⇒ Object
35
36
37
38
|
# File 'lib/softlayer/metric/tracking/object.rb', line 35
def get_bandwidth_total(start_date_time = nil, end_date_time = nil, direction = nil, type = nil)
message = {start_date_time: start_date_time, end_date_time: end_date_time, direction: direction, type: type}
request(:get_bandwidth_total, BigDecimal, message)
end
|
#get_custom_graph_data(graph_container = nil) ⇒ Object
40
41
42
43
|
# File 'lib/softlayer/metric/tracking/object.rb', line 40
def get_custom_graph_data(graph_container = nil)
message = {graph_container: graph_container}
request(:get_custom_graph_data, Softlayer::Container::Graph, message)
end
|
#get_details_for_date_range(start_date = nil, end_date = nil, graph_type = nil) ⇒ Object
45
46
47
48
|
# File 'lib/softlayer/metric/tracking/object.rb', line 45
def get_details_for_date_range(start_date = nil, end_date = nil, graph_type = nil)
message = {start_date: start_date, end_date: end_date, graph_type: graph_type}
request(:get_details_for_date_range, Array[Softlayer::Container::Metric::Tracking::Object::Details], message)
end
|
#get_graph(start_date_time = nil, end_date_time = nil, graph_type = nil) ⇒ Object
50
51
52
53
|
# File 'lib/softlayer/metric/tracking/object.rb', line 50
def get_graph(start_date_time = nil, end_date_time = nil, graph_type = nil)
message = {start_date_time: start_date_time, end_date_time: end_date_time, graph_type: graph_type}
request(:get_graph, Softlayer::Container::Bandwidth::GraphOutputs, message)
end
|
#get_metric_data_types ⇒ Object
55
56
57
|
# File 'lib/softlayer/metric/tracking/object.rb', line 55
def get_metric_data_types
request(:get_metric_data_types, Array[Softlayer::Container::Metric::Data::Type])
end
|
#get_summary(graph_type = nil) ⇒ Object
63
64
65
66
|
# File 'lib/softlayer/metric/tracking/object.rb', line 63
def get_summary(graph_type = nil)
message = {graph_type: graph_type}
request(:get_summary, Softlayer::Container::Metric::Tracking::Object::Summary, message)
end
|
#get_summary_data(start_date_time = nil, end_date_time = nil, valid_types = nil, summary_period = nil) ⇒ Object
68
69
70
71
|
# File 'lib/softlayer/metric/tracking/object.rb', line 68
def get_summary_data(start_date_time = nil, end_date_time = nil, valid_types = nil, summary_period = nil)
message = {start_date_time: start_date_time, end_date_time: end_date_time, valid_types: valid_types, summary_period: summary_period}
request(:get_summary_data, Array[Softlayer::Metric::Tracking::Object::Data], message)
end
|