class Google::Cloud::Bigquery::Job::ReservationUsage

Represents Job resource usage breakdown by reservation.

@attr_reader [String] name The reservation name or “unreserved” for on-demand resources usage. @attr_reader [Fixnum] slot_ms The slot-milliseconds the job spent in the given reservation.

Attributes

name[R]
slot_ms[R]

Public Class Methods

from_gapi(gapi) click to toggle source

@private New ReservationUsage from a statistics.reservation_usage value.

# File lib/google/cloud/bigquery/job.rb, line 531
def self.from_gapi gapi
  new gapi.name, gapi.slot_ms
end
new(name, slot_ms) click to toggle source

@private Creates a new ReservationUsage instance.

# File lib/google/cloud/bigquery/job.rb, line 524
def initialize name, slot_ms
  @name = name
  @slot_ms = slot_ms
end