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.
-
#num_child_jobs ⇒ Fixnum
[Output-only] Number of child jobs executed.
-
#parent_job_id ⇒ String
[Output-only] If this is a child job, the id of the parent.
-
#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_id ⇒ String
[Output-only] Name of the primary reservation assigned to this job.
-
#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
2856 2857 2858 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2856 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
2782 2783 2784 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2782 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
2788 2789 2790 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2788 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
2794 2795 2796 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2794 def end_time @end_time end |
#extract ⇒ Google::Apis::BigqueryV2::JobStatistics4
[Output-only] Statistics for an extract job.
Corresponds to the JSON property extract
2799 2800 2801 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2799 def extract @extract end |
#load ⇒ Google::Apis::BigqueryV2::JobStatistics3
[Output-only] Statistics for a load job.
Corresponds to the JSON property load
2804 2805 2806 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2804 def load @load end |
#num_child_jobs ⇒ Fixnum
[Output-only] Number of child jobs executed.
Corresponds to the JSON property numChildJobs
2809 2810 2811 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2809 def num_child_jobs @num_child_jobs end |
#parent_job_id ⇒ String
[Output-only] If this is a child job, the id of the parent.
Corresponds to the JSON property parentJobId
2814 2815 2816 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2814 def parent_job_id @parent_job_id end |
#query ⇒ Google::Apis::BigqueryV2::JobStatistics2
[Output-only] Statistics for a query job.
Corresponds to the JSON property query
2819 2820 2821 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2819 def query @query end |
#quota_deferments ⇒ Array<String>
[Output-only] Quotas which delayed this job's start time.
Corresponds to the JSON property quotaDeferments
2824 2825 2826 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2824 def quota_deferments @quota_deferments end |
#reservation_id ⇒ String
[Output-only] Name of the primary reservation assigned to this job. Note that
this could be different than reservations reported in the reservation usage
field if parent reservations were used to execute this job.
Corresponds to the JSON property reservation_id
2836 2837 2838 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2836 def reservation_id @reservation_id end |
#reservation_usage ⇒ Array<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>
[Output-only] Job resource usage breakdown by reservation.
Corresponds to the JSON property reservationUsage
2829 2830 2831 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2829 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
2843 2844 2845 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2843 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
2849 2850 2851 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2849 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
2854 2855 2856 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2854 def total_slot_ms @total_slot_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2861 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) @num_child_jobs = args[:num_child_jobs] if args.key?(:num_child_jobs) @parent_job_id = args[:parent_job_id] if args.key?(:parent_job_id) @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) @reservation_id = args[:reservation_id] if args.key?(:reservation_id) @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 |