Class: Google::Apis::BigquerydatatransferV1::TransferStatusMetric
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatatransferV1::TransferStatusMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquerydatatransfer_v1/classes.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb
Overview
Metrics for tracking the transfer status.
Instance Attribute Summary collapse
-
#completed ⇒ Fixnum
Optional.
-
#failed ⇒ Fixnum
Optional.
-
#pending ⇒ Fixnum
Optional.
-
#total ⇒ Fixnum
Optional.
-
#unit ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransferStatusMetric
constructor
A new instance of TransferStatusMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransferStatusMetric
Returns a new instance of TransferStatusMetric.
1468 1469 1470 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1468 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completed ⇒ Fixnum
Optional. Number of units transferred successfully.
Corresponds to the JSON property completed
1446 1447 1448 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1446 def completed @completed end |
#failed ⇒ Fixnum
Optional. Number of units that failed to transfer.
Corresponds to the JSON property failed
1451 1452 1453 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1451 def failed @failed end |
#pending ⇒ Fixnum
Optional. Number of units pending transfer.
Corresponds to the JSON property pending
1456 1457 1458 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1456 def pending @pending end |
#total ⇒ Fixnum
Optional. Total number of units for the transfer.
Corresponds to the JSON property total
1461 1462 1463 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1461 def total @total end |
#unit ⇒ String
Optional. Unit for measuring progress (e.g., BYTES).
Corresponds to the JSON property unit
1466 1467 1468 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1466 def unit @unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1473 1474 1475 1476 1477 1478 1479 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1473 def update!(**args) @completed = args[:completed] if args.key?(:completed) @failed = args[:failed] if args.key?(:failed) @pending = args[:pending] if args.key?(:pending) @total = args[:total] if args.key?(:total) @unit = args[:unit] if args.key?(:unit) end |