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.



1468
1469
1470
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1468

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

Instance Attribute Details

#completedFixnum

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

Returns:

  • (Fixnum)


1446
1447
1448
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1446

def completed
  @completed
end

#failedFixnum

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

Returns:

  • (Fixnum)


1451
1452
1453
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1451

def failed
  @failed
end

#pendingFixnum

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

Returns:

  • (Fixnum)


1456
1457
1458
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1456

def pending
  @pending
end

#totalFixnum

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

Returns:

  • (Fixnum)


1461
1462
1463
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 1461

def total
  @total
end

#unitString

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

Returns:

  • (String)


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