search for: total_uptim

Displaying 8 results from an estimated 8 matches for "total_uptim".

Did you mean: total_uptime
2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
Adds VmStateChangeEvent class and uses VmObserver to track/audit state changes for Vm objects. Callbacks in VmObserver also update the new total_uptime and total_uptime_timestamp attributes of Vm class, which allows easy calculation of time spent in running states for user resource use accounting. --- src/app/models/vm.rb | 34 +++++++++++ src/app/models/vm_observer.rb | 96 ++++++++++++++++++++++++++++++ src/a...
2009 Jun 24
1
[PATCH server] Vm state change auditing/accounting
Adds VmStateChangeEvent class and uses VmObserver to track/audit state changes for Vm objects. Callbacks in VmObserver also update the new total_uptime and total_uptime_timestamp attributes of Vm class, which allows easy calculation of time spent in running states for user resource use accounting. --- src/app/models/vm.rb | 34 +++++++++++ src/app/models/vm_observer.rb | 96 ++++++++++++++++++++++++++++++ src/a...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...< PoolController def vms_json svc_show(params[:id]) - super(:full_items => @pool.vms, :find_opts => {}, :include_pool => :true) + super(:full_items => @pool.vms, :find_opts => {:select => "*, case + when state='running' then + (cast(total_uptime || ' sec' as interval) + + (now() - total_uptime_timestamp)) + else cast(total_uptime || ' sec' as interval) + end as calc_uptime"}, :include_pool => :true) end def delete diff --git a/src/app/controllers/smart_pools_controller.rb b/src/app/c...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...a/src/app/models/vm.rb b/src/app/models/vm.rb index d4696cf..f0eaf94 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -420,14 +420,23 @@ class Vm < ActiveRecord::Base return i end + def self.calc_uptime + "*, case when state='running' then + (cast(total_uptime || ' sec' as interval) + + (now() - total_uptime_timestamp)) + else cast(total_uptime || ' sec' as interval) + end as calc_uptime" + end + # Make method for calling paginated vms easier for clients. # TODO: Might want to have an optional param for per_pag...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...a/src/app/models/vm.rb b/src/app/models/vm.rb index d4696cf..f0eaf94 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -420,14 +420,23 @@ class Vm < ActiveRecord::Base return i end + def self.calc_uptime + "*, case when state='running' then + (cast(total_uptime || ' sec' as interval) + + (now() - total_uptime_timestamp)) + else cast(total_uptime || ' sec' as interval) + end as calc_uptime" + end + # Make method for calling paginated vms easier for clients. # TODO: Might want to have an optional param for per_pag...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...rc/app/models/vm.rb b/src/app/models/vm.rb index d4696cf..6d0f864 100644 --- a/src/app/models/vm.rb +++ b/src/app/models/vm.rb @@ -420,14 +420,23 @@ class Vm < ActiveRecord::Base return i end + def self.calc_uptime + "vms.*, case when state='running' then + (cast(total_uptime || ' sec' as interval) + + (now() - total_uptime_timestamp)) + else cast(total_uptime || ' sec' as interval) + end as calc_uptime" + end + # Make method for calling paginated vms easier for clients. # TODO: Might want to have an optional param for per_pag...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...is not NULL", - :order => 'forward_vnc_port ASC' ).each{ |vm| - break if vm.forward_vnc_port > i - i = i + 1 - } - return i - end - def self.calc_uptime "vms.*, case when state='running' then (cast(total_uptime || ' sec' as interval) + diff --git a/src/app/models/vm_host_history.rb b/src/app/models/vm_host_history.rb deleted file mode 100644 index bd61ddc..0000000 --- a/src/app/models/vm_host_history.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2008 Red Hat, Inc. -# Written by Mohammed Mors...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together