Class: Google::Apis::BigqueryV2::JobStatistics
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::JobStatistics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Defined Under Namespace
Classes: ReservationUsage
Instance Attribute Summary collapse
-
#completion_ratio ⇒ Float
[TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs.
-
#creation_time ⇒ Fixnum
[Output-only] Creation time of this job, in milliseconds since the epoch.
-
#end_time ⇒ Fixnum
[Output-only] End time of this job, in milliseconds since the epoch.
-
#extract ⇒ Google::Apis::BigqueryV2::JobStatistics4
[Output-only] Statistics for an extract job.
-
#load ⇒ Google::Apis::BigqueryV2::JobStatistics3
[Output-only] Statistics for a load job.
-
#query ⇒ Google::Apis::BigqueryV2::JobStatistics2
[Output-only] Statistics for a query job.
-
#quota_deferments ⇒ Array<String>
[Output-only] Quotas which delayed this job's start time.
-
#reservation_usage ⇒ Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>
[Output-only] Job resource usage breakdown by reservation.
-
#start_time ⇒ Fixnum
[Output-only] Start time of this job, in milliseconds since the epoch.
-
#total_bytes_processed ⇒ Fixnum
[Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
-
#total_slot_ms ⇒ Fixnum
[Output-only] Slot-milliseconds for the job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobStatistics
constructor
A new instance of JobStatistics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ JobStatistics
Returns a new instance of JobStatistics
2226 2227 2228 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completion_ratio ⇒ Float
[TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT
jobs.
Corresponds to the JSON property completionRatio
2169 2170 2171 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2169 def completion_ratio @completion_ratio end |
#creation_time ⇒ Fixnum
[Output-only] Creation time of this job, in milliseconds since the epoch. This
field will be present on all jobs.
Corresponds to the JSON property creationTime
2175 2176 2177 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2175 def creation_time @creation_time end |
#end_time ⇒ Fixnum
[Output-only] End time of this job, in milliseconds since the epoch. This
field will be present whenever a job is in the DONE state.
Corresponds to the JSON property endTime
2181 2182 2183 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2181 def end_time @end_time end |
#extract ⇒ Google::Apis::BigqueryV2::JobStatistics4
[Output-only] Statistics for an extract job.
Corresponds to the JSON property extract
2186 2187 2188 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2186 def extract @extract end |
#load ⇒ Google::Apis::BigqueryV2::JobStatistics3
[Output-only] Statistics for a load job.
Corresponds to the JSON property load
2191 2192 2193 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2191 def load @load end |
#query ⇒ Google::Apis::BigqueryV2::JobStatistics2
[Output-only] Statistics for a query job.
Corresponds to the JSON property query
2196 2197 2198 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2196 def query @query end |
#quota_deferments ⇒ Array<String>
[Output-only] Quotas which delayed this job's start time.
Corresponds to the JSON property quotaDeferments
2201 2202 2203 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2201 def quota_deferments @quota_deferments end |
#reservation_usage ⇒ Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>
[Output-only] Job resource usage breakdown by reservation.
Corresponds to the JSON property reservationUsage
2206 2207 2208 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2206 def reservation_usage @reservation_usage end |
#start_time ⇒ Fixnum
[Output-only] Start time of this job, in milliseconds since the epoch. This
field will be present when the job transitions from the PENDING state to
either RUNNING or DONE.
Corresponds to the JSON property startTime
2213 2214 2215 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2213 def start_time @start_time end |
#total_bytes_processed ⇒ Fixnum
[Output-only] [Deprecated] Use the bytes processed in the query statistics
instead.
Corresponds to the JSON property totalBytesProcessed
2219 2220 2221 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2219 def total_bytes_processed @total_bytes_processed end |
#total_slot_ms ⇒ Fixnum
[Output-only] Slot-milliseconds for the job.
Corresponds to the JSON property totalSlotMs
2224 2225 2226 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2224 def total_slot_ms @total_slot_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2231 def update!(**args) @completion_ratio = args[:completion_ratio] if args.key?(:completion_ratio) @creation_time = args[:creation_time] if args.key?(:creation_time) @end_time = args[:end_time] if args.key?(:end_time) @extract = args[:extract] if args.key?(:extract) @load = args[:load] if args.key?(:load) @query = args[:query] if args.key?(:query) @quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments) @reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage) @start_time = args[:start_time] if args.key?(:start_time) @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms) end |