class OpenStack::Nova::Compute::ServerUsage

A server usage entry

Attributes

Public Instance Methods

ended_at() click to toggle source

The final date for this server usage entry (can be nil if the server is still alive)

# File lib/open_stack/nova/compute/simple_tenant_usage.rb, line 157
def ended_at
  return nil if @attributes[:ended_at].blank?
  DateTime.parse(@attributes[:ended_at] + ' UTC')
end
started_at() click to toggle source

The initial date for this server usage entry

# File lib/open_stack/nova/compute/simple_tenant_usage.rb, line 152
def started_at
  DateTime.parse(@attributes[:started_at] + ' UTC')
end