Class: Google::Apis::NetappV1::TransferStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/netapp_v1/classes.rb,
lib/google/apis/netapp_v1/representations.rb,
lib/google/apis/netapp_v1/representations.rb

Overview

TransferStats reports all statistics related to replication transfer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransferStats

Returns a new instance of TransferStats.



1935
1936
1937
# File 'lib/google/apis/netapp_v1/classes.rb', line 1935

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

Instance Attribute Details

#lag_durationString

Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content. Corresponds to the JSON property lagDuration

Returns:

  • (String)


1898
1899
1900
# File 'lib/google/apis/netapp_v1/classes.rb', line 1898

def lag_duration
  @lag_duration
end

#last_transfer_bytesFixnum

Last transfer size in bytes. Corresponds to the JSON property lastTransferBytes

Returns:

  • (Fixnum)


1903
1904
1905
# File 'lib/google/apis/netapp_v1/classes.rb', line 1903

def last_transfer_bytes
  @last_transfer_bytes
end

#last_transfer_durationString

Time taken during last transfer. Corresponds to the JSON property lastTransferDuration

Returns:

  • (String)


1908
1909
1910
# File 'lib/google/apis/netapp_v1/classes.rb', line 1908

def last_transfer_duration
  @last_transfer_duration
end

#last_transfer_end_timeString

Time when last transfer completed. Corresponds to the JSON property lastTransferEndTime

Returns:

  • (String)


1913
1914
1915
# File 'lib/google/apis/netapp_v1/classes.rb', line 1913

def last_transfer_end_time
  @last_transfer_end_time
end

#last_transfer_errorString

A message describing the cause of the last transfer failure. Corresponds to the JSON property lastTransferError

Returns:

  • (String)


1918
1919
1920
# File 'lib/google/apis/netapp_v1/classes.rb', line 1918

def last_transfer_error
  @last_transfer_error
end

#total_transfer_durationString

Cumulative time taken across all transfers for the replication relationship. Corresponds to the JSON property totalTransferDuration

Returns:

  • (String)


1923
1924
1925
# File 'lib/google/apis/netapp_v1/classes.rb', line 1923

def total_transfer_duration
  @total_transfer_duration
end

#transfer_bytesFixnum

Cumulative bytes trasferred so far for the replication relatinonship. Corresponds to the JSON property transferBytes

Returns:

  • (Fixnum)


1928
1929
1930
# File 'lib/google/apis/netapp_v1/classes.rb', line 1928

def transfer_bytes
  @transfer_bytes
end

#update_timeString

Time when progress was updated last. Corresponds to the JSON property updateTime

Returns:

  • (String)


1933
1934
1935
# File 'lib/google/apis/netapp_v1/classes.rb', line 1933

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
# File 'lib/google/apis/netapp_v1/classes.rb', line 1940

def update!(**args)
  @lag_duration = args[:lag_duration] if args.key?(:lag_duration)
  @last_transfer_bytes = args[:last_transfer_bytes] if args.key?(:last_transfer_bytes)
  @last_transfer_duration = args[:last_transfer_duration] if args.key?(:last_transfer_duration)
  @last_transfer_end_time = args[:last_transfer_end_time] if args.key?(:last_transfer_end_time)
  @last_transfer_error = args[:last_transfer_error] if args.key?(:last_transfer_error)
  @total_transfer_duration = args[:total_transfer_duration] if args.key?(:total_transfer_duration)
  @transfer_bytes = args[:transfer_bytes] if args.key?(:transfer_bytes)
  @update_time = args[:update_time] if args.key?(:update_time)
end