Class: Google::Apis::BigqueryV2::JobStatistics
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::JobStatistics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/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.
-
#copy ⇒ Google::Apis::BigqueryV2::JobStatistics5
[Output-only] Statistics for a copy job.
-
#creation_time ⇒ Fixnum
[Output-only] Creation time of this job, in milliseconds since the epoch.
-
#data_masking_statistics ⇒ Google::Apis::BigqueryV2::DataMaskingStatistics
[Output-only] Statistics for data masking.
-
#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.
-
#row_level_security_statistics ⇒ Google::Apis::BigqueryV2::RowLevelSecurityStatistics
[Output-only] [Preview] Statistics for row-level security.
-
#script_statistics ⇒ Google::Apis::BigqueryV2::ScriptStatistics
[Output-only] Statistics for a child job of a script.
-
#session_info ⇒ Google::Apis::BigqueryV2::SessionInfo
[Output-only] [Preview] Information of the session if this job is part of one.
-
#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.
-
#transaction_info ⇒ Google::Apis::BigqueryV2::TransactionInfo
[Output-only] [Alpha] Information of the multi-statement transaction if this job is part of one.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobStatistics
constructor
A new instance of JobStatistics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobStatistics
Returns a new instance of JobStatistics.
4765 4766 4767 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4765 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
4658 4659 4660 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4658 def completion_ratio @completion_ratio end |
#copy ⇒ Google::Apis::BigqueryV2::JobStatistics5
[Output-only] Statistics for a copy job.
Corresponds to the JSON property copy
4663 4664 4665 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4663 def copy @copy 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
4669 4670 4671 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4669 def creation_time @creation_time end |
#data_masking_statistics ⇒ Google::Apis::BigqueryV2::DataMaskingStatistics
[Output-only] Statistics for data masking. Present only for query and extract
jobs.
Corresponds to the JSON property dataMaskingStatistics
4675 4676 4677 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4675 def data_masking_statistics @data_masking_statistics 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
4681 4682 4683 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4681 def end_time @end_time end |
#extract ⇒ Google::Apis::BigqueryV2::JobStatistics4
[Output-only] Statistics for an extract job.
Corresponds to the JSON property extract
4686 4687 4688 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4686 def extract @extract end |
#load ⇒ Google::Apis::BigqueryV2::JobStatistics3
[Output-only] Statistics for a load job.
Corresponds to the JSON property load
4691 4692 4693 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4691 def load @load end |
#num_child_jobs ⇒ Fixnum
[Output-only] Number of child jobs executed.
Corresponds to the JSON property numChildJobs
4696 4697 4698 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4696 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
4701 4702 4703 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4701 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
4706 4707 4708 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4706 def query @query end |
#quota_deferments ⇒ Array<String>
[Output-only] Quotas which delayed this job's start time.
Corresponds to the JSON property quotaDeferments
4711 4712 4713 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4711 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
4723 4724 4725 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4723 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
4716 4717 4718 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4716 def reservation_usage @reservation_usage end |
#row_level_security_statistics ⇒ Google::Apis::BigqueryV2::RowLevelSecurityStatistics
[Output-only] [Preview] Statistics for row-level security. Present only for
query and extract jobs.
Corresponds to the JSON property rowLevelSecurityStatistics
4729 4730 4731 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4729 def row_level_security_statistics @row_level_security_statistics end |
#script_statistics ⇒ Google::Apis::BigqueryV2::ScriptStatistics
[Output-only] Statistics for a child job of a script.
Corresponds to the JSON property scriptStatistics
4734 4735 4736 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4734 def script_statistics @script_statistics end |
#session_info ⇒ Google::Apis::BigqueryV2::SessionInfo
[Output-only] [Preview] Information of the session if this job is part of one.
Corresponds to the JSON property sessionInfo
4739 4740 4741 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4739 def session_info @session_info 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
4746 4747 4748 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4746 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
4752 4753 4754 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4752 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
4757 4758 4759 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4757 def total_slot_ms @total_slot_ms end |
#transaction_info ⇒ Google::Apis::BigqueryV2::TransactionInfo
[Output-only] [Alpha] Information of the multi-statement transaction if this
job is part of one.
Corresponds to the JSON property transactionInfo
4763 4764 4765 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4763 def transaction_info @transaction_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4770 def update!(**args) @completion_ratio = args[:completion_ratio] if args.key?(:completion_ratio) @copy = args[:copy] if args.key?(:copy) @creation_time = args[:creation_time] if args.key?(:creation_time) @data_masking_statistics = args[:data_masking_statistics] if args.key?(:data_masking_statistics) @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) @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics) @script_statistics = args[:script_statistics] if args.key?(:script_statistics) @session_info = args[:session_info] if args.key?(:session_info) @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) @transaction_info = args[:transaction_info] if args.key?(:transaction_info) end |