Class: Fog::Monitoring::OpenStack::Metrics
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #find_by_id, #get, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
11
12
13
|
# File 'lib/fog/monitoring/openstack/models/metrics.rb', line 11
def all(options = {})
load_response(service.list_metrics(options), 'elements')
end
|
#create(attributes) ⇒ Object
19
20
21
|
# File 'lib/fog/monitoring/openstack/models/metrics.rb', line 19
def create(attributes)
super(attributes)
end
|
#create_metric_array(metrics_list = []) ⇒ Object
23
24
25
|
# File 'lib/fog/monitoring/openstack/models/metrics.rb', line 23
def create_metric_array(metrics_list = [])
service.create_metric_array(metrics_list)
end
|
#list_dimension_values(dimension_name, options = {}) ⇒ Object
27
28
29
30
31
32
|
# File 'lib/fog/monitoring/openstack/models/metrics.rb', line 27
def list_dimension_values(dimension_name, options = {})
dimension_value = Fog::Monitoring::OpenStack::DimensionValues.new
dimension_value.load_response(
service.list_dimension_values(dimension_name, options), 'elements'
)
end
|
#list_metric_names(options = {}) ⇒ Object
15
16
17
|
# File 'lib/fog/monitoring/openstack/models/metrics.rb', line 15
def list_metric_names(options = {})
load_response(service.list_metric_names(options), 'elements')
end
|