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.
1514 1515 1516 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completed ⇒ Fixnum
Optional. Number of units transferred successfully.
Corresponds to the JSON property completed
1492 1493 1494 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1492 def completed @completed end |
#failed ⇒ Fixnum
Optional. Number of units that failed to transfer.
Corresponds to the JSON property failed
1497 1498 1499 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1497 def failed @failed end |
#pending ⇒ Fixnum
Optional. Number of units pending transfer.
Corresponds to the JSON property pending
1502 1503 1504 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1502 def pending @pending end |
#total ⇒ Fixnum
Optional. Total number of units for the transfer.
Corresponds to the JSON property total
1507 1508 1509 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1507 def total @total end |
#unit ⇒ String
Optional. Unit for measuring progress (e.g., BYTES).
Corresponds to the JSON property unit
1512 1513 1514 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1512 def unit @unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1519 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 |