Class: Fog::OpenStack::Monitoring::Metrics
- Inherits:
-
Collection
- Object
- Collection
- Collection
- Fog::OpenStack::Monitoring::Metrics
show all
- Defined in:
- lib/fog/openstack/monitoring/models/metrics.rb
Instance Attribute Summary
Attributes inherited from Collection
#response
Instance Method Summary
collapse
Methods inherited from Collection
#destroy, #find_by_id, #get, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
11
12
13
|
# File 'lib/fog/openstack/monitoring/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/openstack/monitoring/models/metrics.rb', line 19
def create(attributes)
super(attributes)
end
|
#create_metric_array(metrics_list = []) ⇒ Object
23
24
25
|
# File 'lib/fog/openstack/monitoring/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/openstack/monitoring/models/metrics.rb', line 27
def list_dimension_values(dimension_name, options = {})
dimension_value = Fog::OpenStack::Monitoring::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/openstack/monitoring/models/metrics.rb', line 15
def list_metric_names(options = {})
load_response(service.list_metric_names(options), 'elements')
end
|