search for: vm_state_change_ev

Displaying 3 results from an estimated 3 matches for "vm_state_change_ev".

2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
...l_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/app/models/vm_state_change_event.rb | 22 +++++++ src/config/environment.rb | 2 +- src/db/migrate/039_add_vm_state_audit.rb | 51 ++++++++++++++++ 5 files changed, 204 insertions(+), 1 deletions(-) create mode 100644 src/app/models/vm_observer.rb create mode 100644 src/app/models/vm_state_change_event....
2009 Jun 24
1
[PATCH server] Vm state change auditing/accounting
...l_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/app/models/vm_state_change_event.rb | 22 +++++++ src/config/environment.rb | 2 +- src/db/migrate/039_add_vm_state_audit.rb | 49 +++++++++++++++ 5 files changed, 202 insertions(+), 1 deletions(-) create mode 100644 src/app/models/vm_observer.rb create mode 100644 src/app/models/vm_state_change_event.r...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...reverse cronological collection of vm history - # each collection item contains host vm was running on, - # time started, and time ended (see VmHostHistory) - has_many :vm_host_histories, - :order => 'time_started DESC', - :dependent => :destroy - - has_many :vm_state_change_events, :order => 'created_at' do def previous_state_with_type(state_type) @@ -59,22 +51,6 @@ class Vm < ActiveRecord::Base validates_format_of :uuid, :with => %r([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}) - FORWARD_VNC_PORT_START = 5901...