Class: Google::Apis::BigquerydatatransferV1::TransferStatusMetric

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransferStatusMetric

Returns a new instance of TransferStatusMetric.



1520
1521
1522
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#completedFixnum

Optional. Number of units transferred successfully. Corresponds to the JSON property completed

Returns:

  • (Fixnum)


1498
1499
1500
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1498

def completed
  @completed
end

#failedFixnum

Optional. Number of units that failed to transfer. Corresponds to the JSON property failed

Returns:

  • (Fixnum)


1503
1504
1505
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1503

def failed
  @failed
end

#pendingFixnum

Optional. Number of units pending transfer. Corresponds to the JSON property pending

Returns:

  • (Fixnum)


1508
1509
1510
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1508

def pending
  @pending
end

#totalFixnum

Optional. Total number of units for the transfer. Corresponds to the JSON property total

Returns:

  • (Fixnum)


1513
1514
1515
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1513

def total
  @total
end

#unitString

Optional. Unit for measuring progress (e.g., BYTES). Corresponds to the JSON property unit

Returns:

  • (String)


1518
1519
1520
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1518

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1525
1526
1527
1528
1529
1530
1531
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1525

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