ovirt_metrics 1.4.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +0 -1
- data/lib/active_record/connection_adapters/ovirt_postgresql_adapter.rb +30 -0
- data/lib/ovirt_metrics.rb +9 -9
- data/lib/ovirt_metrics/column_definitions.rb +4 -4
- data/lib/ovirt_metrics/models/host_configuration.rb +0 -14
- data/lib/ovirt_metrics/models/host_samples_history.rb +1 -1
- data/lib/ovirt_metrics/models/vm_device_history.rb +1 -0
- data/lib/ovirt_metrics/models/vm_samples_history.rb +1 -1
- data/lib/ovirt_metrics/version.rb +1 -1
- data/spec/models/host_samples_history_spec.rb +10 -10
- data/spec/models/vm_disk_samples_history_spec.rb +4 -4
- data/spec/models/vm_samples_history_spec.rb +3 -8
- data/spec/ovirt_metrics_spec.rb +30 -0
- data/spec/support/active_record.rb +0 -6
- metadata +15 -58
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/column.rb +0 -15
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/database_statements.rb +0 -170
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/explain_pretty_printer.rb +0 -42
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid.rb +0 -31
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/array.rb +0 -70
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bit.rb +0 -52
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bit_varying.rb +0 -13
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bytea.rb +0 -15
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/cidr.rb +0 -48
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/date_time.rb +0 -21
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/decimal.rb +0 -13
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/enum.rb +0 -19
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/hstore.rb +0 -59
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/inet.rb +0 -13
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/json.rb +0 -10
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/jsonb.rb +0 -23
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/money.rb +0 -39
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/point.rb +0 -43
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/rails_5_1_point.rb +0 -50
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/range.rb +0 -93
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/specialized_string.rb +0 -15
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/type_map_initializer.rb +0 -109
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/uuid.rb +0 -21
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/vector.rb +0 -26
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/xml.rb +0 -28
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/quoting.rb +0 -116
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/referential_integrity.rb +0 -49
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_definitions.rb +0 -180
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_dumper.rb +0 -47
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_statements.rb +0 -682
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/type_metadata.rb +0 -35
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql/utils.rb +0 -77
- data/lib/active_record/connection_adapters/ovirt_legacy_postgresql_adapter.rb +0 -856
- data/spec/models/host_configuration_spec.rb +0 -31
- data/spec/schemas/schema_rhev30.rb +0 -655
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7f0ba1b25053d917e9c2d6f5e7f9cb235deef53a597bad8cb9523329cfa5ce74
|
4
|
+
data.tar.gz: 4a6bc156bf7fccad545193483265a57e19c11beca06aa5ff49071cc4fbce531f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 623f858aa39b3a53716a72e8d20a1e9fbb31b68d23737e200a5b9223de4b199f9c5d356da898936929d4082f25949b84153dd823c88bd3b32dc134f785234e66
|
7
|
+
data.tar.gz: bf77f0ac83a14b57b22f6b5e7b6590487c84bfca65fd58acf17183deb4247703763f8d8806a9b46da5198a4152ff02a760850616b0de665f039ce923477adab1
|
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
[![Build Status](https://travis-ci.org/ManageIQ/ovirt_metrics.svg?branch=master)](https://travis-ci.org/ManageIQ/ovirt_metrics)
|
5
5
|
[![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/ovirt_metrics.svg)](https://codeclimate.com/github/ManageIQ/ovirt_metrics)
|
6
6
|
[![Coverage Status](http://img.shields.io/coveralls/ManageIQ/ovirt_metrics.svg)](https://coveralls.io/r/ManageIQ/ovirt_metrics)
|
7
|
-
[![Dependency Status](https://gemnasium.com/ManageIQ/ovirt_metrics.svg)](https://gemnasium.com/ManageIQ/ovirt_metrics)
|
8
7
|
|
9
8
|
OvirtMetrics is an ActiveRecord-based gem for reading the oVirt History database.
|
10
9
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
module ConnectionHandling # :nodoc:
|
3
|
+
def ovirt_postgresql_connection(config)
|
4
|
+
conn_params = config.symbolize_keys
|
5
|
+
|
6
|
+
conn_params.delete_if { |_, v| v.nil? }
|
7
|
+
|
8
|
+
conn_params[:user] = conn_params.delete(:username) if conn_params[:username]
|
9
|
+
conn_params[:dbname] = conn_params.delete(:database) if conn_params[:database]
|
10
|
+
|
11
|
+
valid_conn_param_keys = PG::Connection.conndefaults_hash.keys + [:requiressl]
|
12
|
+
conn_params.slice!(*valid_conn_param_keys)
|
13
|
+
|
14
|
+
ConnectionAdapters::OvirtPostgreSQLAdapter.new(nil, logger, conn_params, config)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module ConnectionAdapters
|
19
|
+
class OvirtPostgreSQLAdapter < PostgreSQLAdapter
|
20
|
+
ADAPTER_NAME = "OvirtPostgreSQL"
|
21
|
+
|
22
|
+
def check_version
|
23
|
+
msg = "The version of PostgreSQL (#{postgresql_version}) is too old (9.2+ required)"
|
24
|
+
if postgresql_version < 90200
|
25
|
+
raise msg
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/lib/ovirt_metrics.rb
CHANGED
@@ -27,14 +27,10 @@ module OvirtMetrics
|
|
27
27
|
opts ||= {}
|
28
28
|
opts[:port] ||= 5432
|
29
29
|
opts[:database] ||= DEFAULT_HISTORY_DATABASE_NAME
|
30
|
-
opts[:adapter]
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
else
|
35
|
-
'postgresql'
|
36
|
-
end
|
37
|
-
end
|
30
|
+
opts[:adapter] = begin
|
31
|
+
require "active_record/connection_adapters/ovirt_postgresql_adapter"
|
32
|
+
'ovirt_postgresql'
|
33
|
+
end
|
38
34
|
|
39
35
|
# Don't allow accidental connections to localhost. A blank host will
|
40
36
|
# connect to localhost, so don't allow that at all.
|
@@ -111,8 +107,12 @@ module OvirtMetrics
|
|
111
107
|
VmDeviceHistory.where(:vm_id => vm_id).disks.attached.pluck('DISTINCT device_id')
|
112
108
|
end
|
113
109
|
|
110
|
+
def self.vms_nic_ids_for(vm_id)
|
111
|
+
VmDeviceHistory.where(:vm_id => vm_id).nics.attached.pluck("DISTINCT device_id")
|
112
|
+
end
|
113
|
+
|
114
114
|
def self.query_vm_nic_realtime_metrics(vm_id, start_time = nil, end_time = nil)
|
115
|
-
nic_ids =
|
115
|
+
nic_ids = vms_nic_ids_for(vm_id)
|
116
116
|
VmInterfaceSamplesHistory.where(:vm_interface_id => nic_ids).with_time_range(start_time, end_time)
|
117
117
|
end
|
118
118
|
|
@@ -21,7 +21,7 @@ module OvirtMetrics
|
|
21
21
|
:counter_key => "cpu_usagemhz_rate_average",
|
22
22
|
:instance => "",
|
23
23
|
:capture_interval => "20",
|
24
|
-
:precision =>
|
24
|
+
:precision => 1,
|
25
25
|
:rollup => "average",
|
26
26
|
:unit_key => "megahertz",
|
27
27
|
:capture_interval_name => "realtime"
|
@@ -55,7 +55,7 @@ module OvirtMetrics
|
|
55
55
|
:counter_key => "disk_usage_rate_average",
|
56
56
|
:instance => "",
|
57
57
|
:capture_interval => "20",
|
58
|
-
:precision =>
|
58
|
+
:precision => 1,
|
59
59
|
:rollup => "average",
|
60
60
|
:unit_key => "kilobytespersecond",
|
61
61
|
:capture_interval_name => "realtime"
|
@@ -69,7 +69,7 @@ module OvirtMetrics
|
|
69
69
|
:counter_key => "net_usage_rate_average",
|
70
70
|
:instance => "",
|
71
71
|
:capture_interval => "20",
|
72
|
-
:precision =>
|
72
|
+
:precision => 1,
|
73
73
|
:rollup => "average",
|
74
74
|
:unit_key => "kilobytespersecond",
|
75
75
|
:capture_interval_name => "realtime"
|
@@ -89,7 +89,7 @@ module OvirtMetrics
|
|
89
89
|
:counter_key => "net_usage_rate_average",
|
90
90
|
:instance => "",
|
91
91
|
:capture_interval => "20",
|
92
|
-
:precision =>
|
92
|
+
:precision => 1,
|
93
93
|
:rollup => "average",
|
94
94
|
:unit_key => "kilobytespersecond",
|
95
95
|
:capture_interval_name => "realtime"
|
@@ -3,19 +3,5 @@ module OvirtMetrics
|
|
3
3
|
has_many :host_interface_configurations, :foreign_key => :host_configuration_version
|
4
4
|
|
5
5
|
belongs_to :cluster_configuration, :foreign_key => :cluster_configuration_version
|
6
|
-
|
7
|
-
GHZ_REGEX = /.*\@\s*(\d+\.\d+)GHz/
|
8
|
-
MHZ_REGEX = /.*\@\s*(\d+\.\d+)MHz/
|
9
|
-
def speed_in_mhz
|
10
|
-
if self.cpu_model.respond_to?(:match)
|
11
|
-
match = self.cpu_model.match(GHZ_REGEX)
|
12
|
-
return (match[1].to_f * 1024) if match
|
13
|
-
|
14
|
-
match = self.cpu_model.match(MHZ_REGEX)
|
15
|
-
return match[1].to_f if match
|
16
|
-
end
|
17
|
-
|
18
|
-
return nil
|
19
|
-
end
|
20
6
|
end
|
21
7
|
end
|
@@ -4,7 +4,7 @@ module OvirtMetrics
|
|
4
4
|
|
5
5
|
def cpu_usagemhz_rate_average
|
6
6
|
return 0.0 if self.host_configuration.nil?
|
7
|
-
speed_of_host = self.host_configuration.
|
7
|
+
speed_of_host = self.host_configuration.cpu_speed_mh.to_f * self.host_configuration.number_of_cores.to_i
|
8
8
|
return (speed_of_host * (self.cpu_usage_percent.to_f / 100.0))
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module OvirtMetrics
|
|
4
4
|
belongs_to :vm_configuration, :foreign_key => :vm_configuration_version
|
5
5
|
|
6
6
|
def cpu_usagemhz_rate_average
|
7
|
-
speed_of_host = self.host_configuration.try(:
|
7
|
+
speed_of_host = self.host_configuration.try(:cpu_speed_mh).to_f
|
8
8
|
|
9
9
|
# TODO: Research if self.host_configuration.speed_in_mhz is aggregate or per core/socket
|
10
10
|
# enumerator = self.vm_configuration.cpu_per_socket * self.vm_configuration.number_of_sockets
|
@@ -9,25 +9,25 @@ describe OvirtMetrics::HostSamplesHistory do
|
|
9
9
|
|
10
10
|
context "when host_configuration exists" do
|
11
11
|
before(:each) { @host_configuration = OvirtMetrics::HostConfiguration.new }
|
12
|
-
it "and
|
12
|
+
it "and cpu_speed_mh and number_of_cores is nil" do
|
13
13
|
host_history = described_class.new(:host_configuration => @host_configuration)
|
14
14
|
expect(host_history.cpu_usagemhz_rate_average).to eq(0)
|
15
15
|
end
|
16
16
|
|
17
|
-
it "and
|
17
|
+
it "and cpu_speed_mh is nil and number_of_cores is numeric" do
|
18
18
|
host_history = described_class.new(:host_configuration => @host_configuration)
|
19
19
|
allow(@host_configuration).to receive_messages(:number_of_cores => 1)
|
20
20
|
expect(host_history.cpu_usagemhz_rate_average).to eq(0)
|
21
21
|
end
|
22
22
|
|
23
|
-
it "and
|
23
|
+
it "and cpu_speed_mh is numeric and number_of_cores is nil" do
|
24
24
|
host_history = described_class.new(:host_configuration => @host_configuration)
|
25
|
-
allow(@host_configuration).to receive_messages(:
|
25
|
+
allow(@host_configuration).to receive_messages(:cpu_speed_mh => 2048.0)
|
26
26
|
expect(host_history.cpu_usagemhz_rate_average).to eq(0)
|
27
27
|
end
|
28
28
|
|
29
|
-
it "and
|
30
|
-
allow(@host_configuration).to receive_messages(:
|
29
|
+
it "and cpu_speed_mh is numeric and number_of_cores is numeric" do
|
30
|
+
allow(@host_configuration).to receive_messages(:cpu_speed_mh => 2048.0)
|
31
31
|
allow(@host_configuration).to receive_messages(:number_of_cores => 2)
|
32
32
|
|
33
33
|
host_history = described_class.new(
|
@@ -40,13 +40,13 @@ describe OvirtMetrics::HostSamplesHistory do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
context "RHEV 3.
|
44
|
-
before(:each) {
|
43
|
+
context "RHEV 3.1" do
|
44
|
+
before(:each) { load_rhev_31 }
|
45
45
|
it_should_behave_like "HostSamplesHistory"
|
46
46
|
end
|
47
47
|
|
48
|
-
context "RHEV
|
49
|
-
before(:each) {
|
48
|
+
context "RHEV 4" do
|
49
|
+
before(:each) { load_rhev_40 }
|
50
50
|
it_should_behave_like "HostSamplesHistory"
|
51
51
|
end
|
52
52
|
end
|
@@ -30,13 +30,13 @@ describe OvirtMetrics::VmDiskSamplesHistory do
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
context "RHEV 3.
|
34
|
-
before(:each) {
|
33
|
+
context "RHEV 3.1" do
|
34
|
+
before(:each) { load_rhev_31 }
|
35
35
|
it_should_behave_like "VmDiskSamplesHistory"
|
36
36
|
end
|
37
37
|
|
38
|
-
context "RHEV
|
39
|
-
before(:each) {
|
38
|
+
context "RHEV 4" do
|
39
|
+
before(:each) { load_rhev_40 }
|
40
40
|
it_should_behave_like "VmDiskSamplesHistory"
|
41
41
|
end
|
42
42
|
end
|
@@ -9,14 +9,14 @@ describe OvirtMetrics::VmSamplesHistory do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
context "when host_configuration exists" do
|
12
|
-
it "and
|
12
|
+
it "and cpu_speed_mh is nil" do
|
13
13
|
vm_history = described_class.new(:host_configuration => OvirtMetrics::HostConfiguration.new)
|
14
14
|
expect(vm_history.cpu_usagemhz_rate_average).to eq(0)
|
15
15
|
end
|
16
16
|
|
17
|
-
it "and
|
17
|
+
it "and cpu_speed_mh is not nil" do
|
18
18
|
host_configuration = OvirtMetrics::HostConfiguration.new
|
19
|
-
allow(host_configuration).to receive_messages(:
|
19
|
+
allow(host_configuration).to receive_messages(:cpu_speed_mh => 2048.0)
|
20
20
|
|
21
21
|
vm_history = described_class.new(
|
22
22
|
:cpu_usage_percent => 50,
|
@@ -28,11 +28,6 @@ describe OvirtMetrics::VmSamplesHistory do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
context "RHEV 3.0" do
|
32
|
-
before(:each) { load_rhev_30 }
|
33
|
-
it_should_behave_like "VmSamplesHistory"
|
34
|
-
end
|
35
|
-
|
36
31
|
context "RHEV 3.1" do
|
37
32
|
before(:each) { load_rhev_31 }
|
38
33
|
it_should_behave_like "VmSamplesHistory"
|
data/spec/ovirt_metrics_spec.rb
CHANGED
@@ -31,6 +31,36 @@ describe OvirtMetrics do
|
|
31
31
|
it { is_expected.not_to include("device_that_was_deleted") }
|
32
32
|
end
|
33
33
|
|
34
|
+
describe ".vms_nic_ids_for" do
|
35
|
+
before(:each) do
|
36
|
+
@vm1_id = 1
|
37
|
+
@device_id1 = "device1"
|
38
|
+
@device_id2 = "device2"
|
39
|
+
generic_params = {
|
40
|
+
:vm_id => @vm1_id,
|
41
|
+
:device_id => @device_id1,
|
42
|
+
:type => "interface",
|
43
|
+
:address => "address",
|
44
|
+
:create_date => 1.week.ago
|
45
|
+
}
|
46
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params)
|
47
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params.merge(:address => "duplicate_with_same_device_id"))
|
48
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params.merge(:device_id => @device_id2))
|
49
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params.merge(:vm_id => 2, :device_id => "disk_from_other_vm"))
|
50
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params.merge(:type => "disk",
|
51
|
+
:device_id => "device_of_non_nic_type"))
|
52
|
+
OvirtMetrics::VmDeviceHistory.create(generic_params.merge(:device_id => "device_that_was_deleted",
|
53
|
+
:delete_date => 2.days.ago))
|
54
|
+
end
|
55
|
+
|
56
|
+
subject { described_class.vms_nic_ids_for(@vm1_id) }
|
57
|
+
|
58
|
+
it { is_expected.to match_array([@device_id1, @device_id2]) }
|
59
|
+
it { is_expected.not_to include("nic_from_other_vm") }
|
60
|
+
it { is_expected.not_to include("device_of_non_nic_type") }
|
61
|
+
it { is_expected.not_to include("device_that_was_deleted") }
|
62
|
+
end
|
63
|
+
|
34
64
|
context ".vm_realtime" do
|
35
65
|
it "when vm_id finds no matches" do
|
36
66
|
expect(described_class.vm_realtime(42)).to eq([{}, {}])
|
@@ -29,12 +29,6 @@ RSpec.configure do |config|
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
def load_rhev_30
|
33
|
-
ActiveRecord::Schema.verbose = false
|
34
|
-
load File.join(File.dirname(__FILE__), %w{.. schemas schema_rhev30.rb})
|
35
|
-
reset_models
|
36
|
-
end
|
37
|
-
|
38
32
|
def load_rhev_31
|
39
33
|
ActiveRecord::Schema.verbose = false
|
40
34
|
load File.join(File.dirname(__FILE__), %w{.. schemas schema_rhev31.rb})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt_metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Barenboim
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '0'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,16 +71,16 @@ dependencies:
|
|
71
71
|
name: sqlite3
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - "
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 1.3.6
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - "
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
83
|
+
version: 1.3.6
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: coveralls
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,22 +99,16 @@ dependencies:
|
|
99
99
|
name: activerecord
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 4.2.3
|
105
102
|
- - "<"
|
106
103
|
- !ruby/object:Gem::Version
|
107
|
-
version: '
|
104
|
+
version: '6.1'
|
108
105
|
type: :runtime
|
109
106
|
prerelease: false
|
110
107
|
version_requirements: !ruby/object:Gem::Requirement
|
111
108
|
requirements:
|
112
|
-
- - ">="
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 4.2.3
|
115
109
|
- - "<"
|
116
110
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
111
|
+
version: '6.1'
|
118
112
|
- !ruby/object:Gem::Dependency
|
119
113
|
name: pg
|
120
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,39 +135,7 @@ files:
|
|
141
135
|
- ".rspec"
|
142
136
|
- LICENSE.txt
|
143
137
|
- README.md
|
144
|
-
- lib/active_record/connection_adapters/
|
145
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/database_statements.rb
|
146
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/explain_pretty_printer.rb
|
147
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid.rb
|
148
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/array.rb
|
149
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bit.rb
|
150
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bit_varying.rb
|
151
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/bytea.rb
|
152
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/cidr.rb
|
153
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/date_time.rb
|
154
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/decimal.rb
|
155
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/enum.rb
|
156
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/hstore.rb
|
157
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/inet.rb
|
158
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/json.rb
|
159
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/jsonb.rb
|
160
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/money.rb
|
161
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/point.rb
|
162
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/rails_5_1_point.rb
|
163
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/range.rb
|
164
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/specialized_string.rb
|
165
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/type_map_initializer.rb
|
166
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/uuid.rb
|
167
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/vector.rb
|
168
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/oid/xml.rb
|
169
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/quoting.rb
|
170
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/referential_integrity.rb
|
171
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_definitions.rb
|
172
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_dumper.rb
|
173
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/schema_statements.rb
|
174
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/type_metadata.rb
|
175
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql/utils.rb
|
176
|
-
- lib/active_record/connection_adapters/ovirt_legacy_postgresql_adapter.rb
|
138
|
+
- lib/active_record/connection_adapters/ovirt_postgresql_adapter.rb
|
177
139
|
- lib/ovirt_metrics.rb
|
178
140
|
- lib/ovirt_metrics/column_definitions.rb
|
179
141
|
- lib/ovirt_metrics/configurator.rb
|
@@ -221,13 +183,11 @@ files:
|
|
221
183
|
- lib/ovirt_metrics/models/vm_samples_history.rb
|
222
184
|
- lib/ovirt_metrics/nic_metrics.rb
|
223
185
|
- lib/ovirt_metrics/version.rb
|
224
|
-
- spec/models/host_configuration_spec.rb
|
225
186
|
- spec/models/host_samples_history_spec.rb
|
226
187
|
- spec/models/vm_disk_samples_history_spec.rb
|
227
188
|
- spec/models/vm_samples_history_spec.rb
|
228
189
|
- spec/nic_metrics_spec.rb
|
229
190
|
- spec/ovirt_metrics_spec.rb
|
230
|
-
- spec/schemas/schema_rhev30.rb
|
231
191
|
- spec/schemas/schema_rhev31.rb
|
232
192
|
- spec/schemas/schema_rhev40.rb
|
233
193
|
- spec/spec_helper.rb
|
@@ -244,26 +204,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
204
|
requirements:
|
245
205
|
- - ">="
|
246
206
|
- !ruby/object:Gem::Version
|
247
|
-
version:
|
207
|
+
version: 2.3.1
|
248
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
209
|
requirements:
|
250
210
|
- - ">="
|
251
211
|
- !ruby/object:Gem::Version
|
252
212
|
version: '0'
|
253
213
|
requirements: []
|
254
|
-
|
255
|
-
rubygems_version: 2.5.1
|
214
|
+
rubygems_version: 3.0.6
|
256
215
|
signing_key:
|
257
216
|
specification_version: 4
|
258
217
|
summary: OvirtMetrics is an ActiveRecord-based gem for reading the oVirt History database.
|
259
218
|
test_files:
|
260
|
-
- spec/models/host_configuration_spec.rb
|
261
219
|
- spec/models/host_samples_history_spec.rb
|
262
220
|
- spec/models/vm_disk_samples_history_spec.rb
|
263
221
|
- spec/models/vm_samples_history_spec.rb
|
264
222
|
- spec/nic_metrics_spec.rb
|
265
223
|
- spec/ovirt_metrics_spec.rb
|
266
|
-
- spec/schemas/schema_rhev30.rb
|
267
224
|
- spec/schemas/schema_rhev31.rb
|
268
225
|
- spec/schemas/schema_rhev40.rb
|
269
226
|
- spec/spec_helper.rb
|