Class: VBox::PerformanceCollector

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/performance_collector.rb

Instance Attribute Summary

Attributes inherited from Base

#ref

Instance Method Summary collapse

Methods inherited from Base

#_this, #delete!, #ensure_hash, #initialize, #vbox_class

Constructor Details

This class inherits a constructor from VBox::Base

Instance Method Details

#disable_metrics(args = {}) ⇒ Object

Methods



12
13
14
15
16
17
18
# File 'lib/virtualbox/classes/performance_collector.rb', line 12

def disable_metrics(args={})
  ensure_hash args
  performance_metrics = VBox::WebService.send_request(:i_performance_collector_disable_metrics, _this.merge(args))
  performance_metrics.map do |performance_metric|
    VBox::PerformanceMatric.new(performance_metric)
  end
end

#enable_metrics(args = {}) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/virtualbox/classes/performance_collector.rb', line 20

def enable_metrics(args={})
  ensure_hash args
  performance_metrics = VBox::WebService.send_request(:i_performance_collector_enable_metrics, _this.merge(args))
  performance_metrics.map do |performance_metric|
    VBox::PerformanceMatric.new(performance_metric)
  end
end

#get_metrics(args = {}) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/virtualbox/classes/performance_collector.rb', line 28

def get_metrics(args={})
  ensure_hash args
  performance_metrics = VBox::WebService.send_request(:i_performance_collector_get_metrics, _this.merge(args))
  performance_metrics.map do |performance_metric|
    VBox::PerformanceMatric.new(performance_metric)
  end
end

#metric_namesObject

Attributes



6
7
8
# File 'lib/virtualbox/classes/performance_collector.rb', line 6

def metric_names
  VBox::WebService.send_request(:i_performance_collector_get_metric_names, _this)
end

#query_metrics_data(args = {}) ⇒ Object



36
37
38
39
# File 'lib/virtualbox/classes/performance_collector.rb', line 36

def query_metrics_data(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_performance_collector_query_metrics_data, _this.merge(args))
end

#setup_metrics(args = {}) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/virtualbox/classes/performance_collector.rb', line 41

def setup_metrics(args={})
  ensure_hash args
  performance_metrics = VBox::WebService.send_request(:i_performance_collector_setup_metrics, _this.merge(args))
  performance_metrics.map do |performance_metric|
    VBox::PerformanceMatric.new(performance_metric)
  end
end